This part describes running the app to grab all sensors data in a raspberry pi setup
Steps to get the first dataset:
clone this repo to /home/pi
git clone https://github.com/sookah/weewx-grovepi
cd weewx-grovepi
# copy supervisor conf
sudo cp app/conf/supervisord.conf /etc/supervisor/
# restart with rereading new supervisor configuration
sudo service supervisor stop
sudo service supervisor start
# for process monitoring supervisor is used:
sudo apt-get install supervisor
Integrating GrovePi with Weewx platform
This is a driver for weewx that interfaces GrovePI and its weather station components.
-
install weewx (see the weewx user guide)
-
download the driver
wget -O weewx-grovepi.zip https://github.com/sookah/weewx-grovepi/archive/master.zip
-
install the driver
sudo wee_extension --install weewx-grovepi.zip
-
configure the driver
sudo wee_config --reconfigure
-
start weewx
sudo /etc/init.d/weewx start
Here is a extension info from weewx:
https://github.com/weewx/weewx/wiki/extensions#how-to-install-an-extension
Following additional packages are needed for the package (also in setup.py)
sudo pip install config
http://weewx.com/docs/utilities.htm#wee_config_utility
run the test_driver.sh
with:
# make it executable
sudo chmod +x test_driver.sh
# run
./test_driver.sh
Common files location
Configuration : /etc/weewx/weewx.conf
Status : sudo service weewx status
Force generate a report : sudo wee_reports weewx.conf
- Start weewx
sudo /etc/init.d/weewx start
Since we have our own driver we will have to use this approach. This approach will work on any weewx installation for both standard and custom drivers.
- Stop weewx
sudo /etc/init.d/weewx stop
-
Modify weewx.conf
For example, to specify the Vantage driver for Davis Vantage Pro2 hardware:
[Station]
...
station_type = Vantage
[Vantage]
type = serial
port = /dev/ttyUSB0
driver = weewx.drivers.vantage
- Start weewx
sudo /etc/init.d/weewx start
This approach will work on any weewx installation for standard drivers and/or drivers in the user directory.
- Stop weewx
sudo /etc/init.d/weewx stop
- Run wee_config with the reconfigure option:
sudo wee_config --reconfigure
- Start weewx
sudo /etc/init.d/weewx start
The wee_config command should prompt for the station parameters, including the station type and any options required by the station.