Author Topic: Install driver gw1000  (Read 1717 times)

0 Members and 1 Guest are viewing this topic.

Offline Geornat

  • Member
  • *
  • Posts: 35
Install driver gw1000
« on: January 07, 2021, 03:59:20 AM »
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?

Offline Jim Ace

  • Senior Member
  • **
  • Posts: 75
    • Hewlett Point Beach
Re: Install driver gw1000
« Reply #1 on: January 07, 2021, 12:51:44 PM »
Are you running the most current Weewx ver? I did a new install and the driver worked fine.
KNYEASTR4
Ecowitt WS65
AWEKAS 14894
PWS
WeatherCloud
Windy
Weewx
CumulusMX
CWOP FW3861

Online Gyvate

  • Forecaster
  • *****
  • Posts: 3324
Re: Install driver gw1000
« Reply #2 on: January 07, 2021, 03:19:26 PM »
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-driver
and 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-driver

then 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.
« Last Edit: January 07, 2021, 03:22:06 PM by Gyvate »
WS2350 1.6.7, GW1000(3) 1.7.7,WH2650 WiFi (2) 1.7.7 (test/backup), GW1100 2.3.1, GW2000(3) 3.1.1, HP2551 1.9.5,5.1.5;HP3500 1.7.2,WS3800 1.2.8, WN1910 1.2.3,WN1980 1.2.3;
Ecowitt WS90(2)1.3.5/1.4.0, WS80(2)1.2.5, WS68, WS69, WH40, WH31, WH31-EP, WN30, WN34L, WN35, WH32, WH32-EP, WH32B, WH57 [Lightning], WH41 [PM2.5], WH51, WH45, WH55
MeteobridgePro(2)[test,prod] 5.8 Mar 01 2024, 15185 - Blake-Larsen Sun Recorder - RPi4/weewx 4.8.0/4.10.2/CumulusMX 3283/Meteobridge RPi4B-2GB(3169)
Barani Meteoshield Pro, MetSpec Rad02 - Ecowitt 5763,34418;WU ISAARB3(WH4000SE),ISAARB22(HP2553), http://meshka.eu

Offline Geornat

  • Member
  • *
  • Posts: 35
Re: Install driver gw1000
« Reply #3 on: January 08, 2021, 11:54:56 AM »
Hello
I had not put python3 in the command. Now it works the report is displayed.
I continue the discovery of Weewx.
Thank you for your help [tup]

Offline Geornat

  • Member
  • *
  • Posts: 35
Re: Install driver gw1000
« Reply #4 on: January 10, 2021, 05:27:39 AM »
Hello
I have several config file which is created. I do not understand. Which one is used when starting weewx? [ You are not allowed to view attachments ]

Online Gyvate

  • Forecaster
  • *****
  • Posts: 3324
Re: Install driver gw1000
« Reply #5 on: January 10, 2021, 01:50:26 PM »
Hello
I have several config file which is created. I do not understand. Which one is used when starting weewx? [ You are not allowed to view attachments ]
usually the file /etc/weewx/weewx.conf is used (unless you made some other configuration in the start script(s) ).

Somehow your attachments are not readable.

Can you copy and paste the console output in a text file or in the post itself !?
Otherwise it's like reading in the coffee grounds (=reading tea leaves) ....
WS2350 1.6.7, GW1000(3) 1.7.7,WH2650 WiFi (2) 1.7.7 (test/backup), GW1100 2.3.1, GW2000(3) 3.1.1, HP2551 1.9.5,5.1.5;HP3500 1.7.2,WS3800 1.2.8, WN1910 1.2.3,WN1980 1.2.3;
Ecowitt WS90(2)1.3.5/1.4.0, WS80(2)1.2.5, WS68, WS69, WH40, WH31, WH31-EP, WN30, WN34L, WN35, WH32, WH32-EP, WH32B, WH57 [Lightning], WH41 [PM2.5], WH51, WH45, WH55
MeteobridgePro(2)[test,prod] 5.8 Mar 01 2024, 15185 - Blake-Larsen Sun Recorder - RPi4/weewx 4.8.0/4.10.2/CumulusMX 3283/Meteobridge RPi4B-2GB(3169)
Barani Meteoshield Pro, MetSpec Rad02 - Ecowitt 5763,34418;WU ISAARB3(WH4000SE),ISAARB22(HP2553), http://meshka.eu

Offline Geornat

  • Member
  • *
  • Posts: 35
Re: Install driver gw1000
« Reply #6 on: January 19, 2021, 03:52:29 AM »
Hello
I just wanted to know why there are 4 config files in etc/weewx 
Thank you

Online Gyvate

  • Forecaster
  • *****
  • Posts: 3324
Re: Install driver gw1000
« Reply #7 on: January 19, 2021, 04:04:03 AM »
Hello
I just wanted to know why there are 4 config files in etc/weewx 
Thank you
which ones are you talking about ?

can you copy the ls -l of /etc/weewx in here ?

copy and paste the text here as your attachments don't seem to be accepted by the forum software.

Usually there should be only weewx.conf - and (usually) only weewx.conf is loaded/used by weewx at startup/restart.
There may be exceptions for some experienced users - but most likely not you.  ;)

Unless you installed extensions, made updates etc. and the update procedures created safety copies/backup copies of your weewx.conf file - or you, yourself, created some copies there.
The automatically created copies usually are named weewx.conf.timestamp
e.g. weewx.conf.20210116185347
« Last Edit: January 19, 2021, 04:09:44 AM by Gyvate »
WS2350 1.6.7, GW1000(3) 1.7.7,WH2650 WiFi (2) 1.7.7 (test/backup), GW1100 2.3.1, GW2000(3) 3.1.1, HP2551 1.9.5,5.1.5;HP3500 1.7.2,WS3800 1.2.8, WN1910 1.2.3,WN1980 1.2.3;
Ecowitt WS90(2)1.3.5/1.4.0, WS80(2)1.2.5, WS68, WS69, WH40, WH31, WH31-EP, WN30, WN34L, WN35, WH32, WH32-EP, WH32B, WH57 [Lightning], WH41 [PM2.5], WH51, WH45, WH55
MeteobridgePro(2)[test,prod] 5.8 Mar 01 2024, 15185 - Blake-Larsen Sun Recorder - RPi4/weewx 4.8.0/4.10.2/CumulusMX 3283/Meteobridge RPi4B-2GB(3169)
Barani Meteoshield Pro, MetSpec Rad02 - Ecowitt 5763,34418;WU ISAARB3(WH4000SE),ISAARB22(HP2553), http://meshka.eu

Offline Geornat

  • Member
  • *
  • Posts: 35
Re: Install driver gw1000
« Reply #8 on: January 19, 2021, 04:13:50 AM »
pi@raspberrypi:~ $ ls -l /etc/weewx
total 136
drwxr-xr-x 3 root root  4096 janv. 12 08:56 apache
drwxr-xr-x 2 root root  4096 janv. 12 08:56 import
drwxr-xr-x 2 root root  4096 janv. 12 08:56 logrotate.d
drwxr-xr-x 4 root root  4096 janv. 12 08:56 logwatch
drwxr-xr-x 2 root root  4096 janv. 12 08:56 rsyslog.d
drwxr-xr-x 2 root root  4096 janv. 12 08:56 scripts
drwxr-xr-x 8 root root  4096 janv. 12 08:56 skins
drwxr-xr-x 3 root root  4096 janv. 12 08:56 udev
-rw-r--r-- 1 root root 27974 janv. 17 08:14 weewx.conf
-rw-r--r-- 1 root root 22919 janv. 19 09:22 weewx.conf.20210112085815
-rw-r--r-- 1 root root 27834 janv. 19 09:25 weewx.conf.20210112091253
-rw-r--r-- 1 root root 22459 janv.  4 20:43 weewx.conf.dist

Online Gyvate

  • Forecaster
  • *****
  • Posts: 3324
Re: Install driver gw1000
« Reply #9 on: January 19, 2021, 04:44:01 AM »
obviously your /etc/weewx content corresponds to what I described earlier - automatically created safety/backup copies.
And where the .dist comes from ... - no idea. Maybe just a different automated backup naming concept.
But weewx will only use weewx.conf to operate.
WS2350 1.6.7, GW1000(3) 1.7.7,WH2650 WiFi (2) 1.7.7 (test/backup), GW1100 2.3.1, GW2000(3) 3.1.1, HP2551 1.9.5,5.1.5;HP3500 1.7.2,WS3800 1.2.8, WN1910 1.2.3,WN1980 1.2.3;
Ecowitt WS90(2)1.3.5/1.4.0, WS80(2)1.2.5, WS68, WS69, WH40, WH31, WH31-EP, WN30, WN34L, WN35, WH32, WH32-EP, WH32B, WH57 [Lightning], WH41 [PM2.5], WH51, WH45, WH55
MeteobridgePro(2)[test,prod] 5.8 Mar 01 2024, 15185 - Blake-Larsen Sun Recorder - RPi4/weewx 4.8.0/4.10.2/CumulusMX 3283/Meteobridge RPi4B-2GB(3169)
Barani Meteoshield Pro, MetSpec Rad02 - Ecowitt 5763,34418;WU ISAARB3(WH4000SE),ISAARB22(HP2553), http://meshka.eu

Offline Geornat

  • Member
  • *
  • Posts: 35
Re: Install driver gw1000
« Reply #10 on: January 19, 2021, 04:54:22 AM »
So if I have understood correctly each time I modify my config, a new weewx.config is created in the style weewx.config.20210112091253.

Online Gyvate

  • Forecaster
  • *****
  • Posts: 3324
Re: Install driver gw1000
« Reply #11 on: January 19, 2021, 05:01:11 AM »
So if I have understood correctly each time I modify my config, a new weewx.config is created in the style weewx.config.20210112091253.
No - not like that.
Each time you modify your weewx.conf it will be saved under the same name (unless you change that - "save as ...") and it will get the timestamp of the change - but as a file attribute only, which can be seen e.g. with ls -l. The files weewx.conf.yyyymmddhhmmss were created by a weewx update/upgrade or extension installation procedure.
You must either have updated/upgraded your weewx some time ago (with apt-get update) or have installed one or more weewx extensions.
So this only happens occasionally.
Your changes made in weewx.conf will only reflect in the operating system timestamp - not in the name of the file.
WS2350 1.6.7, GW1000(3) 1.7.7,WH2650 WiFi (2) 1.7.7 (test/backup), GW1100 2.3.1, GW2000(3) 3.1.1, HP2551 1.9.5,5.1.5;HP3500 1.7.2,WS3800 1.2.8, WN1910 1.2.3,WN1980 1.2.3;
Ecowitt WS90(2)1.3.5/1.4.0, WS80(2)1.2.5, WS68, WS69, WH40, WH31, WH31-EP, WN30, WN34L, WN35, WH32, WH32-EP, WH32B, WH57 [Lightning], WH41 [PM2.5], WH51, WH45, WH55
MeteobridgePro(2)[test,prod] 5.8 Mar 01 2024, 15185 - Blake-Larsen Sun Recorder - RPi4/weewx 4.8.0/4.10.2/CumulusMX 3283/Meteobridge RPi4B-2GB(3169)
Barani Meteoshield Pro, MetSpec Rad02 - Ecowitt 5763,34418;WU ISAARB3(WH4000SE),ISAARB22(HP2553), http://meshka.eu

Offline Geornat

  • Member
  • *
  • Posts: 35
Re: Install driver gw1000
« Reply #12 on: January 19, 2021, 05:56:39 AM »
Ok. now I will try to install the belchertown skin.
Thank you for your help.

Offline Geornat

  • Member
  • *
  • Posts: 35
Re: Install driver gw1000
« Reply #13 on: January 19, 2021, 06:01:39 AM »

Online Gyvate

  • Forecaster
  • *****
  • Posts: 3324
Re: Install driver gw1000
« Reply #14 on: January 19, 2021, 06:16:49 AM »
interesting layout - good luck with the Belchertown skin.
Bonne chance.
I'm so far quite happy with the seasons skin.
http://arklys.dyndns.org:8480/weewx/
(accessible for 24h from now)
It's for personal use only - for the public I use meteotemplate and Weather34.
See links in my signature.
Meteotemplate can also be fed by weewx - and you can customize it online.
There are many things (weather station templates) available on the "market"  8-)
« Last Edit: January 19, 2021, 06:18:43 AM by Gyvate »
WS2350 1.6.7, GW1000(3) 1.7.7,WH2650 WiFi (2) 1.7.7 (test/backup), GW1100 2.3.1, GW2000(3) 3.1.1, HP2551 1.9.5,5.1.5;HP3500 1.7.2,WS3800 1.2.8, WN1910 1.2.3,WN1980 1.2.3;
Ecowitt WS90(2)1.3.5/1.4.0, WS80(2)1.2.5, WS68, WS69, WH40, WH31, WH31-EP, WN30, WN34L, WN35, WH32, WH32-EP, WH32B, WH57 [Lightning], WH41 [PM2.5], WH51, WH45, WH55
MeteobridgePro(2)[test,prod] 5.8 Mar 01 2024, 15185 - Blake-Larsen Sun Recorder - RPi4/weewx 4.8.0/4.10.2/CumulusMX 3283/Meteobridge RPi4B-2GB(3169)
Barani Meteoshield Pro, MetSpec Rad02 - Ecowitt 5763,34418;WU ISAARB3(WH4000SE),ISAARB22(HP2553), http://meshka.eu

 

anything