Hello
Trying to install the GW1000 API driver according to the instructions:
https://github.com/gjr80/weewx-gw1000
I am stuck on Step 5. When I try to test the driver using the provided Command it doesn't work. Any ideas on what I need to do?
Can you provide the feedback from the console ?
you enter:
sudo PYTHONPATH=/usr/share/weewx python -m user.gw1000 --test-driverand then what ? what is the reaction of the operating system ?
(maybe the path to be used is: /home/weewx/bin depending on your weewx installation procedure;
maybe "python" needs to be replaced by "python2" or "python3")
but whatever you do, there will be a feedback at the console - and this feedback we need to see in order to give you further advice.
what works with me is:
sudo PYTHONPATH=/usr/share/weewx python3 -m user.gw1000 --test-driverthen I get an console output like this: (end the program with CTRL+C)
Using configuration file /etc/weewx/weewx.conf
Interrogating GW1000 at 192.168.1.27:45000
2021-01-07 21:15:16 CET (1610050516): UV: 0, co2: 1022, co2_24hav: 983, dateTime: 1610050516, dayRain: 0.0, daymaxwind: 5.2, extraHumid1: 93, extraHumid17: 52, extraHumid2: 98, extraHumid3: 96, extraHumid4: 97, extraTemp1: 0.4, extraTemp17: 19.9, extraTemp2: 0.9, extraTemp3: 0.2, extraTemp4: 0.6, inHumidity: 58, inTemp: 18.2, lightning_distance: None, lightning_last_det_time: None, lightning_strike_count: None, luminosity: 0.0, monthRain: 3.3, outHumidity: 93, outTemp: 0.4, pm10: 25.7, pm2_5: 27.0, pm2_51_24hav: 17.9, pm2_52: 31.0, pm2_52_24hav: 34.0, pm2_55: 23.4, pm2_55_24hav: 12.0, pressure: 983.0, rain: None, rainEvent: 0.0, rainRate: 0.0, relbarometer: 1012.1, soilMoist1: 51, soilMoist2: 57, soilMoist3: 53, soilMoist4: 41, soilMoist5: 60, usUnits: 17, uvradiation: 0.0, weekRain: 1.8, wh25_batt: 0, wh25_sig: 4, wh31_ch1_batt: 0, wh31_ch1_sig: 4, wh31_ch2_batt: 0, wh31_ch2_sig: 4, wh31_ch3_batt: 0, wh31_ch3_sig: 4, wh31_ch4_batt: 0, wh31_ch4_sig: 4, wh41_ch1_batt: 4, wh41_ch1_sig: 4, wh41_ch2_batt: 4, wh41_ch2_sig: 4, wh51_ch1_batt: 0, wh51_ch1_sig: 4, wh51_ch2_batt: 0, wh51_ch2_sig: 4, wh51_ch3_batt: 0, wh51_ch3_sig: 4, wh51_ch4_batt: 0, wh51_ch4_sig: 4, wh51_ch5_batt: 0, wh51_ch5_sig: 2, wh57_batt: 4, wh57_sig: 4, wh65_batt: 0, wh65_sig: 4, windDir: 87, windGust: 2.4, windSpeed: 2.2, ws80_batt: 2.7600000000000002, ws80_sig: 4, yearRain: 3.3
^Cpi@raspberrypi:
entering "PYTHONPATH=/usr/share/weewx python3 -m user.gw1000 --test-driver" without "sudo" in front will not work.
You need to launch the program with root rights (that's what "sudo" does).
I've underlined the critical portions of the command.
that portion (sudo) is missing in the installation instructions.