Weather station GARNI 935PC - compatibility with Weewx?

645 views
Skip to first unread message

Vladimír Skoták

unread,
Feb 22, 2020, 5:24:42 AM2/22/20
to weewx-user
Dear weewx users,

is there please any possibility how to check if the GARNI 935PC weather station is compatible with Weewx? I did install the software, it runs fine, but even if I tried several weather station setup it does not connect (most probably because the drivers selected were not compatible and another one needs to be used).
I run the weewx via respberrypiPi Zero W, which is connected via WIFI. The station unit is connected wireless to the weather station and the unit itself via USB directly to raspberry pi. My vision is to be able to upload the data to WeatherCloud. Thus I did download and install the weewx extension and also did include the connection ID and key as described here:
however I did stuck on the choice of the weather station setup. This weather station is not directly mentioned in the compatible device manual, but I have seen that in some cases the stations are clones of some on the list and can be connected...
Anyone who has any experience on this?

Thank you very much and have a nice day.

Vladimír Skoták (Czech republic)

Bob Atchley

unread,
Feb 23, 2020, 12:51:55 PM2/23/20
to weewx-user
Hi Vladimir,

Looking at the Garni 935PC image it looks to be identical to the Youshiko YC9388 which I have (and also the Bresser 6 in 1 and probably others as well)
If that is the case then sadly it is not compatible ... yet.
I have managed to reverse engineer the USB connection and have a test programme working (on a raspberry Pi 2), but not yet had time to incorporate this into Weewx

Regards 
Bob

Vladimír Skoták

unread,
Feb 24, 2020, 7:43:53 AM2/24/20
to weewx-user
Hi Bob,
thanks a lot for your message. I also did check based on your info and those devices really look to be minimally very similar :-). I am unfortunatelly usually the WIN user, so this is the second time I tried to tackle something via Linux based OS/programm. Thus bit afraid I cannot help you much in this way, but in case anything I could help would pop up in your mind, please just let me know and I will do my best.

Regards Vladimir

Bob Atchley

unread,
Mar 15, 2020, 12:40:19 PM3/15/20
to weewx-user
Hi Vladimir,

I have uploaded the new driver for the 6 in 1 weather stations with PC connected consoles:
Youshiko YC9388
Bresser PC 6 in 1
Garni 935PC
Ventus W835
If you go to the weewx wiki and search for the ws6in1 driver and follow the link hopefully the readme.txt will give you enough information to get going.
I have over a weeks data and had no issues so far.
I'm afraid this very much a beta release.  Please feedback any issues.
I should probably add that all my testing has been with weewx 4.0.0b13, but I have no reason to think it won't work with weewx version 3.9.2

Regards Bob
Message has been deleted
Message has been deleted

Vladimír Skoták

unread,
Mar 20, 2020, 1:01:01 PM3/20/20
to weewx-user
Hi Bob,

thanks a lot for the driver and for the detailed manual and apologize for late reply. I tried to install it and everything was ok till the step 4:

4) configure the driver

wee_config --reconfigure There I should choose the driver again, but ws6in1 is not on the menu there, did I understand something incorrectly, should I skip this step? Thank you very much and have a nice day. Vladimír Skoták

Bob Atchley

unread,
Mar 20, 2020, 3:26:53 PM3/20/20
to weewx-user
Hi Vladimir

OK I'm not sure what is wrong.  I initially tested this on a raspberry pi and have just repeated my install instructions on a laptop (xubuntu 18.04) with a weewx 3.9.2 installation.
For step 4 the "Installed drivers include:" has WS6in1 as the 0th item (i.e. first in the list).

What version of weewx are you using ?  Are you installing on Raspberry Pi or something else

I did have to use sudo with steps 3 and 4 to avoid permission problems

Regards

Bob

Vladimír Skoták

unread,
Mar 21, 2020, 5:41:47 AM3/21/20
to weewx-user
Hi Bob,

thank you for good advice, it was really because of the missing "sudo" order (I did not spot any problems there, when runnning it without  it, but it must be there). Now I have all installed, I have connected the module, but unfortunatelly still something seem to be missing as I do not see the station to be contected to the web page. I use Rpi zero W and would like to upload the data to WeatherCloud.
Do I have to adjust somehow the weewx.conf.dist file as I did for weewx.conf, or is it sufficient to mention the link just in the weewx.conf ? Any experience on that?
Thank you a lot and apologize for another questions.

Vladimír Skoták

Bob Atchley

unread,
Mar 21, 2020, 1:16:41 PM3/21/20
to weewx-user

Hi Vladimir

Ok some progress.  Before looking at uploading to weathercloud (for which I''m afraid I have no knowledge to help you, but others hopefully can) we need to establish whether the ws6in1 driver is doing its job.
When you start weewx can you take a look at the syslog file /var/log/syslog and report any errors.  If all is well you should see weewxd LOOP entries with the weather data.  You could also check whether the data is being written to the database

Regards

Bob

Vladimír Skoták

unread,
Mar 22, 2020, 12:36:06 PM3/22/20
to weewx-user
Hi Bob,

thanks a lot for help, unfortunatelly this seems to become more and more above my skills...I opened the log file after starting the weewx, I can see there that the USB device was connected, but that is all..no further activity as far as I see. But as mentioned, the only logs I work with are those from some simple SAS programs and that is all, so most probably I am overlooking something important.

Where is the data stored, is it in /var/lib/weewx location in weewx.sdb file? If so, then the data are not flowing there.

Honestly I think here are more skilled people, you can help, so I would fully understand if you invest your time in those :-).

Vladimír Skoták


Bob Atchley

unread,
Mar 22, 2020, 4:45:08 PM3/22/20
to weewx-user
Hi Vladimir,

We can do this ...

I don't have any experience with a rpi zero, but I'm assuming you access it via ssh like my rpi2.

I use mysql for the database, but if you are using the default sqlite database it should be here
/home/weewx/archive/weewx.sdb
or here
/var/lib/weewx/weewx.sdb

depending on how you installed weewx.  If things are working it should have a timestamp less than 5 minutes old and not empty !!

The 2 log files of particular interest are messages and syslog

$ grep weewx /var/log/messages

$ grep weewx /var/log/syslog

use sudo if you get permission  problems.  If you stop and then start weewx and post the results of the above commands from the time of restarting weewx
For reference my syslog gives:
Mar 22 19:20:57 rpi2 systemd[1]: Started weewx weather station data gatherer.
Mar 22 19:20:58 rpi2 weewx[10561] INFO __main__: Initializing weewx version 4.0.0b13
Mar 22 19:20:58 rpi2 weewx[10561] INFO __main__: Using Python 2.7.16 (default, Oct 10 2019, 22:02:15) #012[GCC 8.3.0]
Mar 22 19:20:58 rpi2 weewx[10561] INFO __main__: Platform Linux-4.19.97-v7+-armv7l-with-debian-10.3
Mar 22 19:20:58 rpi2 weewx[10561] INFO __main__: Locale is 'en_US.UTF-8'
Mar 22 19:20:58 rpi2 weewx[10561] INFO __main__: Using configuration file /home/weewx/weewx.conf
Mar 22 19:20:58 rpi2 weewx[10561] INFO weewx.engine: Loading station type WS6in1 (user.ws6in1)
Mar 22 19:20:58 rpi2 weewx[10561] INFO weewx.engine: StdConvert target unit is 0x1
Mar 22 19:20:58 rpi2 weewx[10561] INFO weewx.wxservices: The following values will be calculated: pressure=prefer_hardware, altimeter=prefer_hardware, appTemp=prefer_hardware, barometer=prefer_hardware, beaufort=prefer_hardware, cloudbase=prefer_hardware, dewpoint=prefer_hardware, ET=prefer_hardware, heatindex=prefer_hardware, humidex=prefer_hardware, inDewpoint=prefer_hardware, maxSolarRad=prefer_hardware, rainRate=prefer_hardware, windchill=prefer_hardware, windrun=prefer_hardware
Mar 22 19:20:58 rpi2 weewx[10561] INFO weewx.wxservices: The following algorithms will be used for calculations: altimeter=aaASOS, maxSolarRad=RS
Mar 22 19:20:58 rpi2 weewx[10561] INFO weewx.engine: Archive will use data binding wx_binding
Mar 22 19:20:58 rpi2 weewx[10561] INFO weewx.engine: Record generation will be attempted in 'software'
Mar 22 19:20:58 rpi2 weewx[10561] INFO weewx.engine: Using archive interval of 300 seconds (software record generation)
Mar 22 19:20:58 rpi2 weewx[10561] INFO weewx.restx: StationRegistry: Registration not requested.
Mar 22 19:20:58 rpi2 weewx[10561] INFO weewx.restx: Wunderground: Posting not enabled.
Mar 22 19:20:58 rpi2 weewx[10561] INFO weewx.restx: PWSweather: Posting not enabled.
Mar 22 19:20:58 rpi2 weewx[10561] INFO weewx.restx: CWOP: Posting not enabled.
Mar 22 19:20:58 rpi2 weewx[10561] INFO weewx.restx: WOW: Posting not enabled.
Mar 22 19:20:58 rpi2 weewx[10561] INFO weewx.restx: AWEKAS: Posting not enabled.
Mar 22 19:20:58 rpi2 weewx[10561] INFO __main__: Starting up weewx version 4.0.0b13
Mar 22 19:20:58 rpi2 weewx[10561] INFO weewx.engine: Using binding 'wx_binding' to database 'weewx'
Mar 22 19:20:58 rpi2 weewx[10561] INFO weewx.manager: Starting backfill of daily summaries
Mar 22 19:20:58 rpi2 weewx[10561] INFO weewx.engine: Starting main packet loop.
Mar 22 19:20:58 rpi2 kernel: [1374477.298713] usb 1-1.4.1: reset full-speed USB device number 6 using dwc_otg
Mar 22 19:22:13 rpi2 weewxd[10561]: starting read loop ...
Mar 22 19:22:13 rpi2 weewxd[10561]: success getting dev
Mar 22 19:22:13 rpi2 weewxd[10561]: dev.bLength            = 18
Mar 22 19:22:13 rpi2 weewxd[10561]: dev.bNumConfigurations = 1
Mar 22 19:22:13 rpi2 weewxd[10561]: dev.bDeviceClass       = 0
Mar 22 19:22:13 rpi2 weewxd[10561]: success getting configuration
Mar 22 19:22:13 rpi2 weewxd[10561]: myCfg.bConfigurationValue = 1
Mar 22 19:22:13 rpi2 weewxd[10561]: myCfg.bNumInterfaces      = 1
Mar 22 19:22:13 rpi2 weewxd[10561]: Exception setting idle
Mar 22 19:22:13 rpi2 weewxd[10561]: HID Descriptor got
Mar 22 19:22:13 rpi2 weewxd[10561]: yielding
Mar 22 19:22:13 rpi2 weewxd[10561]: LOOP:   2020-03-22 19:21:04 UTC (1584904864) altimeter: 30.3430608143, appTemp: 39.0065061611, barometer: 30.3272971625, beaufort: 0, cloudbase: 2569.20041857, dateTime: 1584904864, dayRain: 0.0, dewpoint: 32.18, heatindex: 42.62, hourRain: 0.0, humidex: 42.62, inDewpoint: 50.8556671112, inHumidity: 46, inTemp: 72.86, maxSolarRad: None, outHumidity: 67, outTemp: 42.62, pressure: 30.061527275, rain: 0.0, rainRate: 0, usUnits: 1, UV: 0, windchill: 42.62, windDir: 38, windGust: 0.186411820995, windSpeed: 0.186411820995

And my messages gives:
Mar 22 19:20:58 rpi2 weewx[10561] INFO __main__: Initializing weewx version 4.0.0b13
Mar 22 19:20:58 rpi2 weewx[10561] INFO __main__: Using Python 2.7.16 (default, Oct 10 2019, 22:02:15) #012[GCC 8.3.0]
Mar 22 19:20:58 rpi2 weewx[10561] INFO __main__: Platform Linux-4.19.97-v7+-armv7l-with-debian-10.3
Mar 22 19:20:58 rpi2 weewx[10561] INFO __main__: Locale is 'en_US.UTF-8'
Mar 22 19:20:58 rpi2 weewx[10561] INFO __main__: Using configuration file /home/weewx/weewx.conf
Mar 22 19:20:58 rpi2 weewx[10561] INFO weewx.engine: Loading station type WS6in1 (user.ws6in1)
Mar 22 19:20:58 rpi2 weewx[10561] INFO weewx.engine: StdConvert target unit is 0x1
Mar 22 19:20:58 rpi2 weewx[10561] INFO weewx.wxservices: The following values will be calculated: pressure=prefer_hardware, altimeter=prefer_hardware, appTemp=prefer_hardware, barometer=prefer_hardware, beaufort=prefer_hardware, cloudbase=prefer_hardware, dewpoint=prefer_hardware, ET=prefer_hardware, heatindex=prefer_hardware, humidex=prefer_hardware, inDewpoint=prefer_hardware, maxSolarRad=prefer_hardware, rainRate=prefer_hardware, windchill=prefer_hardware, windrun=prefer_hardware
Mar 22 19:20:58 rpi2 weewx[10561] INFO weewx.wxservices: The following algorithms will be used for calculations: altimeter=aaASOS, maxSolarRad=RS
Mar 22 19:20:58 rpi2 weewx[10561] INFO weewx.engine: Archive will use data binding wx_binding
Mar 22 19:20:58 rpi2 weewx[10561] INFO weewx.engine: Record generation will be attempted in 'software'
Mar 22 19:20:58 rpi2 weewx[10561] INFO weewx.engine: Using archive interval of 300 seconds (software record generation)
Mar 22 19:20:58 rpi2 weewx[10561] INFO weewx.restx: StationRegistry: Registration not requested.
Mar 22 19:20:58 rpi2 weewx[10561] INFO weewx.restx: Wunderground: Posting not enabled.
Mar 22 19:20:58 rpi2 weewx[10561] INFO weewx.restx: PWSweather: Posting not enabled.
Mar 22 19:20:58 rpi2 weewx[10561] INFO weewx.restx: CWOP: Posting not enabled.
Mar 22 19:20:58 rpi2 weewx[10561] INFO weewx.restx: WOW: Posting not enabled.
Mar 22 19:20:58 rpi2 weewx[10561] INFO weewx.restx: AWEKAS: Posting not enabled.
Mar 22 19:20:58 rpi2 weewx[10561] INFO __main__: Starting up weewx version 4.0.0b13
Mar 22 19:20:58 rpi2 weewx[10561] INFO weewx.engine: Using binding 'wx_binding' to database 'weewx'
Mar 22 19:20:58 rpi2 weewx[10561] INFO weewx.manager: Starting backfill of daily summaries
Mar 22 19:20:58 rpi2 weewx[10561] INFO weewx.engine: Starting main packet loop.
Mar 22 19:20:58 rpi2 kernel: [1374477.298713] usb 1-1.4.1: reset full-speed USB device number 6 using dwc_otg
Mar 22 19:25:22 rpi2 weewx[10561] INFO weewx.manager: Added record 2020-03-22 19:25:00 UTC (1584905100) to database 'weewx'
Mar 22 19:25:22 rpi2 weewx[10561] INFO weewx.manager: Added record 2020-03-22 19:25:00 UTC (1584905100) to daily summary in 'weewx'
Mar 22 19:25:32 rpi2 weewx[10561] INFO weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 9.65 seconds
Mar 22 19:25:35 rpi2 weewx[10561] INFO weewx.imagegenerator: Generated 14 images for report SeasonsReport in 2.79 seconds
Mar 22 19:25:35 rpi2 weewx[10561] INFO weewx.reportengine: Copied 5 files to /home/weewx/public_html
Mar 22 19:25:36 rpi2 weewx[10561] INFO weeutil.rsyncupload: rsync executed in 1.00 seconds

Hope this helps

Regards

Bob




Vladimír Skoták

unread,
Mar 29, 2020, 5:07:10 PM3/29/20
to weewx-user
Hi Bob,

apologize for such late reply, but I wanted to start from scratch, so I am completely sure that none  of the steps I did in the past has a negative influence on the results....and luckily it was a good idea....it works...The log shows the connection message for the station and it also shows the messages about sending the data as it is shown in your log. So thanks a lot for help, it was really useful to show me what to try to find :-).

I know that you already told that you have no experience with the connecting the station to the web e.g. Wunderground, or Weathercloud...but do you expect some complications regarding this? Is the driver for 6in1 modificated drastically, so just adding the ID into /etc/weewx/weewx.conf would not be sufficient?

Anyway....thank you a lot for your help and take care in these hard days.

Vladimír Skoták

Bob Atchley

unread,
Mar 31, 2020, 3:56:00 PM3/31/20
to weewx-user
Hi Vladimir,

Really please its working.  And yes it should be as simple as updating the weewx.conf file, the ws6in1 driver simply provides the interface between weewx and the weather station, it should not interfere with sending data to Wundercloud etc, though I have not tried this yet

Bob

Vladimír Skoták

unread,
Apr 8, 2020, 4:28:42 PM4/8/20
to weewx-user
Hi Bob,
finally I have tried to connect the Weewx with your driver on RPI zero to the Weathercloud and it works!!!!!! :-) Honestly in the very beginning (in January) I was really on doubts if I will ever be able to make it work. And now it works. But without your help I would not succed. My father does not speak English, but he asked me to thank you a lot and wish you all the best :-).
As you have seen I am not much technical skilled person , but in case I could somehow help you, please let me know. Otherwise I can just say a big thanks to you! :-)

Just one bottom line remark...it was really that easy to link it to Weathercloud, however just adding the details into the weewx.conf file was not all I had to do...also the Weathercloud extension mentioned in the manual on Weathercloud web was necessary to download and install...but that was all.

Once again thank you a lot and I wish the same good mood as we now have (after it works) also to you.

Vladimír

Pavel Pavlik

unread,
Apr 12, 2020, 8:47:22 AM4/12/20
to weewx-user
Hi Bob,

Thanks a lot for the driver. I have the same weather station connected to rasbperry and it works well. Just missing two things, automatic time adjustment of the display clock and the extra sensors outputs (ch1 - ch7) - if these were there in the weewx output, this station could be used as the all-room-in-the-house temperature and humidity data collector for (not even) domoticz home automation system I use. I would like to ask you for help. I am not a programmer but have some info about the API of the station. If you want, I will send it to you, just please give me your email address, I do not want to spread the documentation publicly. My email is radiom...@gmail.com.

Thank you again and wish you a nice day.

Pavel


Dne neděle 15. března 2020 17:40:19 UTC+1 Bob Atchley napsal(a):

Bob Atchley

unread,
Apr 12, 2020, 4:47:27 PM4/12/20
to weewx-user
Hi Pavel,

I'm glad the WS6in1 driver is  working for you.  

I know how to add the extra sensor outputs  - but I don't have any extra sensors so can't test it.  I will make the changes and let you know when its complete, but I will have to rely on you testing that the correct values are returned.
I do not have any information on how to set the time on the console, although I know this is supported by the provided official software.  Could you provide details of just this if possible. 

thanks

Bob

Bob Atchley

unread,
Apr 13, 2020, 4:31:05 PM4/13/20
to weewx-user
Hi Pavel,

I have written a setTime function (not yet tested).  I then looked in the weewx engine to see how this is invoked ... and we have a problem.  The engine calls the getTime function first, so that also needs writing.  I know how to write this but unfortunately the ws6in1 protocol only provides the time to the minute so will always be between 0 and 59 seconds out from the correct time.  So it seems a bit pointless to write it.  Instead I 'm thinking of automatically setting the time once every 24 hours (i.e. ignoring the engine).  Just not yet quite comfortable with that.  So more thinking time ....

The setTime also poses 2 problems:
1) I have no idea how it deals with time zones.  This is not a problem for me I have my rpi2 set at permanent UTC time (no summer time correction) - but maybe for others (so please let me know if this causes a problem)
2) The evidence I have shows that when setting the date and time the crc checksum bytes are sent the wrong way around.  It could be because of a defect in the console, or a defect in the official software and the console doesn't actually check the crc checksum.  Initially I'm sending the bytes in the correct order - once I test the updated driver I will know  the answer

So work in progress, but I'm confident I can provide both setting the console time and the 7 extra sensor data that you are after

Bob 

Pavel Pavlik

unread,
Apr 13, 2020, 5:49:16 PM4/13/20
to weewx-user
Hi Bob,

Thanks for your reply. I would say it would be great to send there the computer time every midnight. This would avoid both the timezone and the "minute" problem, also the time difference between the displayed time and computer time would be marginal, it is just 24hrs., the internal clock will make it. The computer has the right timezone set by user, I suppose that using the same time would be ok.

Not sure about the crc checksum error, the documentation should be actual. I keep my fingers crossed...

Thank you and have a nice day.

Pavel



Dne pondělí 13. dubna 2020 22:31:05 UTC+2 Bob Atchley napsal(a):
Message has been deleted

Pavel Pavlik

unread,
Apr 26, 2020, 6:00:45 AM4/26/20
to weewx-user
Hi Bob,

How are you? I would like to ask you if you have any news for me.

Thanks a lot & have a nice day.

Pavel



Dne pondělí 13. dubna 2020 22:31:05 UTC+2 Bob Atchley napsal(a):
Hi Pavel,

Bob Atchley

unread,
Apr 26, 2020, 11:59:44 AM4/26/20
to weewx-user
Hi Pavel,

Quite good timing, I have a new version of the WS6in1 driver working on my system.  I want to let it run for 24 hours or so on my system to make sure it is stable before I release it

I will write a changelog but basically the changes are:

1) setTime implemented.  This is run from the driver on startup and once every 24 hours

2) Implemented decoding for the 7 extra sensors.  I do not have an extra sensor so my testing has been limited

Bob

Bob Atchley

unread,
Apr 27, 2020, 3:54:36 PM4/27/20
to weewx-user

Hi Pavel,

The 0.2 release of the WS6in1 driver is now available.
As stated I don't have an additional sensor to test the decode of the extra sensors, so please let me know how you get on

Good luck

Bob

Pavel Pavlik

unread,
Apr 27, 2020, 5:32:30 PM4/27/20
to weewx-user
Hi Bob,

Thanks a lot for the good news :-)
I will test it with the extra sensors and let you know. I have two sensors, the sensors can be set as ch1-7 by an internal switch so I can test all the channels, one by one.

Have a nice day.

Pavel



Dne pondělí 27. dubna 2020 21:54:36 UTC+2 Bob Atchley napsal(a):

Jarda Uher

unread,
May 3, 2020, 4:40:32 AM5/3/20
to weewx-user
Hi Bob
Very thank you for your new driver for the Garni 935 PC weather station. I am using two sensors and please help me how to set the display of both sensors. I use WeeWX with the Neowx skin.
thank you
Jarda


Dne pondělí 27. dubna 2020 21:54:36 UTC+2 Bob Atchley napsal(a):

Bob Atchley

unread,
May 3, 2020, 1:51:43 PM5/3/20
to weewx-user

Hi Jarda,

Very glad the WS6in1 driver is working for you.
I don't have the extra sensors so have been unable to test them.  Can you confirm that the correct values are being written to the database for humidity and temperature for your 2 extra sensors.

I don't use the Neowx skin (I'm just using the default skin as its just about perfect for me).  Neowx has a very pretty website but I couldn't see anything on how to extend it for the extra sensors.  At a guess I would say you need to add the fields to the skin.conf file.  Assuming the extra sensor information is getting to the database correctly, if I were you I would write a new message to this group with 'Neowx' in the subject line.  Its a great community and I'm sure someone will be able to help

Good luck

Bob

Jarda Uher

unread,
May 6, 2020, 5:40:47 AM5/6/20
to weewx-user
Hi Bob
Thanks for the reply.
 I checked weewx.sdb and I think there is no data from the external sensor. Only inTemp, outTemp have values, extraTemp1,2,3 have null.
thank you
Jarda

Dne neděle 3. května 2020 19:51:43 UTC+2 Bob Atchley napsal(a):

Pavel Pavlik

unread,
May 6, 2020, 7:40:16 AM5/6/20
to weewx-user
Hi Bob, ahoj Jardo,

I am apologize for the delay with the testing promised, had to go out for business, have tested the driver just partially. I managed to connect just one of the external sensors I have and now I can see its output in csv file (https://github.com/weewx/weewx/wiki/csv), both temperature and humidity values are there. On the default screen there is no external sensors graphs, I did not search how to add them, use just the csv output. Anyway, I should be home tomorrow, will finish the testing of both sensors together in all 7 channels possible, one by one, and let you know.

Attaching the current csv file with the one external sensor connected in ch1.

Thanks again for the driver & have a nice day.

Pavel



Dne pondělí 27. dubna 2020 23:32:30 UTC+2 Pavel Pavlik napsal(a):
data.csv

Jarda Uher

unread,
May 6, 2020, 11:14:44 AM5/6/20
to weewx-user
Ahoj Pavle, hi Bob
Pavle thanks for the tip on csv. But even though I have a sensor connected on channel 1, but I don't see it in the protocol.
Jarda

Dne středa 6. května 2020 13:40:16 UTC+2 Pavel Pavlik napsal(a):

Bob Atchley

unread,
May 6, 2020, 1:52:52 PM5/6/20
to weewx-user
Hi Jarda,

Pavel seems to think it might be working, so I'll wait until he finishes testing before I look further but a few questions for you:

If you look in the /var/log/syslog file on your raspberry pi are the extra sensor data set to None or do they have values ?
Do you see the extra sensor data on the console (i.e. are they working) ?
Are you are using version 0.2 of the WS6in1 driver (version 0.1 did not support the extra sensors) ?

thanks

Bob

Pavel Pavlik

unread,
May 6, 2020, 2:26:24 PM5/6/20
to weewx-user
Ahoj Jardo,

Sure, firstly I tried to read the db there some way but unfortunately I was not able to make it properly so I used the plugin to dump it to csv file. I suppose you did the same, it is really easy to install. So the question is: does your csv file have the columns named ExtraTempX and ExtraHumidX? If not, you probably use the original version of the driver with no support for the external sensors.

Good luck.

Pavel




Dne středa 6. května 2020 17:14:44 UTC+2 Jarda Uher napsal(a):

Jarda Uher

unread,
May 6, 2020, 3:04:01 PM5/6/20
to weewx-user
Hi Bob
I was looking into the syslog, but I didn't see the sensor data. I have a functional sensor on the console on channel 1. I installed version 0.2 of the driver, but I don't have raspbery pi, but the system runs on Ubuntu 18.04


Dne středa 6. května 2020 19:52:52 UTC+2 Bob Atchley napsal(a):

Jarda Uher

unread,
May 6, 2020, 3:05:41 PM5/6/20
to weewx-user
Ahoj Pavle
I also browsed the database, (DB Browser for SQLite) there are extraTemp1,2,3 items but they are null. These are missing in the csv file.
Jarda

Dne středa 6. května 2020 20:26:24 UTC+2 Pavel Pavlik napsal(a):

Pavel Pavlik

unread,
May 6, 2020, 3:40:16 PM5/6/20
to weewx-user
Ahoj Jardo,

There should be 7 columns, not just the three you mentioned. Can you see the values of ch1 on the display of the station? If so, the problem could be in the wrong version of the driver. In that case you should try reinstalling the driver.

Good luck.

Pavel



Dne středa 6. května 2020 21:05:41 UTC+2 Jarda Uher napsal(a):

Jarda Uher

unread,
May 6, 2020, 3:40:32 PM5/6/20
to weewx-user
Hi Bob, ahoj Pavle
Once again I checked setting weewx with wee_config --list-drivers and I really had the original version 0.1 drivers. After a new installation and check, everything is fine, version 0.2 also reads the external sensor on channel 1. There is a link to the functional output http://jardauher.cz/wp-content/www/html/weewx/
thank you for good work 
Jarda


Dne středa 6. května 2020 21:05:41 UTC+2 Jarda Uher napsal(a):

Pavel Pavlik

unread,
May 7, 2020, 4:51:38 PM5/7/20
to weewx-user
Hi Bob,

I have just checked the second external sensor I have, it is posted as ch7 with both values, please see the csv file attached. Thanks again for all your effort, it is great to have all the sensors there.

Have a nice day.

Pavel


Dne středa 6. května 2020 13:40:16 UTC+2 Pavel Pavlik napsal(a):
data-2.csv

Jarda Uher

unread,
May 8, 2020, 1:21:32 AM5/8/20
to weewx-user
Hi Bob, ahoj Pavle
Thanks again for the help.
It's already okay with the data for me too(viz my attached file csv). I wanted to ask you if you haven't solved the possibility of downloading data directly from the weather station, similar to Weathertool
Thanks a lot and have a nice day
Jarda

Dne čtvrtek 7. května 2020 22:51:38 UTC+2 Pavel Pavlik napsal(a):
data-2020-05.csv

Bob Atchley

unread,
May 8, 2020, 4:07:02 AM5/8/20
to weewx-user
Hi Jarda, Pavel,

I'm extremely happy that the updated driver is working ... I might even buy myself an extra sensor at some point !

I do know how to download the data history stored on the console, but I haven't explored how to use this.  I think weewx can use this to fill in missing data in case of a server outage etc.  So probably a 0.3 version of the driver in the near future.  I might explore a standalone tool just to download the data into a csv file (suitable for import into weewx) as well.

I'll post a WS6in1 update message when I add any features

Many thanks for helping with the testing

Bob

Ondrej Vozar

unread,
Jun 15, 2020, 2:17:39 AM6/15/20
to weewx-user
Hello Bob, 

First af all, thanks for the WS6in1 driver! You have done great job. 
I can see how you helped to Jarda and Pave. Maybe you can give me some advise to my problem. 

I am having some difficulty to get proper values of my Garni 935PC out to the html output. I use Raspberry Pi 4, it is running Raspbian, but I tested also Ubuntu. The version of driver is 0.6.
In both OS versions the driver works, but a bit differently. In Raspbian the "Simulator" is not on the top position under "0" index, but on a thrid position with index "3". 
My problem is, that values for Out temperature and humidity are strange. The display shows 17 degrees of Celsia from external sensor, but the html output shows -0.3. The humidity outside last night was on display 98%, but the html output was showing 80% for outside. Also rain precip rate was showing zero even though the sensore detected about 30mm as well as the wind was showing always zero. Additionally, the external temperature and humidity was copied to the place where should be values from internal sensor. So values for internal sensor were those from the external 6in1 unit. 

Can you please help how to troubleshoot this?

Thanks in advance. 

Regards - Ondrej

Dňa piatok, 8. mája 2020 10:07:02 UTC+2 Bob Atchley napísal(a):

Bob Atchley

unread,
Jun 15, 2020, 3:20:08 AM6/15/20
to weewx-user
Hi Ondrej

I don't understand the behaviour you are seeing and I need a bit more information.

Are you trying to run with the weewx Simulator and the WS6in1 at the same time ?  You should only be using WS6in1.

The results you are seeing cannot be conversion errors they are something completely different.

Could you set the debug to '1' (in the weewx.conf file), restart weewx and then post the relevant output from the /var/log/syslog 

If you are familiar with databases it might be worth looking at the entries in the database to see whats actually been stored (i.e is it what you are expecting from the console or the same as the erroneous data being displayed)

Good luck

Bob

Ondrej Vozar

unread,
Jun 16, 2020, 6:42:36 AM6/16/20
to weewx...@googlegroups.com
Hi Bob, 

Thanks for sending me your advice. I checked the syslog and found a couple of problems. 

The main problem was that my raspberry pi had two versions of python installed - python 2 and python 3. 
This in conjunction of parameter WEEWX_PYTHON=python2 in the weewx.conf file located in /etc/default/ have caused that your program was running under incompatible version of python 2. 
It then caused that ws6in1 driver was not added to the list of available drivers. Once the parameter was changed to python3, the driver was accepted. 

There was, however, another bug which I had to fix. The syslog was showing this message and the driver had struggled to start

******************
Jun 16 01:43:09 raspberrypi weewx[6975] CRITICAL weewx.engine:     ****  Traceback (most recent call last):
Jun 16 01:43:09 raspberrypi weewx[6975] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/engine.py", line 103, in setupStation
Jun 16 01:43:09 raspberrypi weewx[6975] CRITICAL weewx.engine:     ****      self.console = loader_function(config_dict, self)
Jun 16 01:43:09 raspberrypi weewx[6975] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/user/ws6in1.py", line 393, in loader
Jun 16 01:43:09 raspberrypi weewx[6975] CRITICAL weewx.engine:     ****      return ws6in1(**config_dict[DRIVER_NAME])
Jun 16 01:43:09 raspberrypi weewx[6975] CRITICAL weewx.engine:     ****    File "/usr/lib/python3/dist-packages/configobj.py", line 554, in __getitem__
Jun 16 01:43:09 raspberrypi weewx[6975] CRITICAL weewx.engine:     ****      val = dict.__getitem__(self, key)
Jun 16 01:43:09 raspberrypi weewx[6975] CRITICAL weewx.engine:     ****  KeyError: 'WS6in1'
Jun 16 01:43:09 raspberrypi weewx[6975] CRITICAL __main__: Unable to load driver: 'WS6in1'
Jun 16 01:43:09 raspberrypi weewx[6975] CRITICAL __main__:     ****  Exiting...
******************

What I did to fix it wa that I modified your code on the line 377 to this

DRIVER_NAME = 'ws6in1'

I only made the driver's name lower case. 
After this it suddenly started to work. 

It might be something specific for my raspberry pi unit, but the code had to be modified to get it working. 

In any case, your suggestions helped me to work my issue out. 

PS: I noticed your new version of ws6in1 driver. 
I installed it and after modification od the driver name value it also works well. :-)

Kind regards - Ondrej


po 15. 6. 2020 o 9:20 Bob Atchley <bob.a...@gmail.com> napísal(a):
--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/1d18b31b-8813-4397-9046-df27bc109801o%40googlegroups.com.

Bob Atchley

unread,
Jun 16, 2020, 12:51:47 PM6/16/20
to weewx-user
Hi Ondrej,

Really pleased you have everything working.

The WS6in1 driver should be compatible with Python2 and 3 - though I strongly recommend 3.  I'm using Python3 and it could be I've inadvertently introduced a Python3 feature that I shouldn't have, I'll check.

I don't understand why you had to change the driver name to lower case ws6in1, I've not seen that fault before and I'd like to get this right for future users.

In my weewx.conf file under [Station] I have:
station_type = WS6in1

And then in the driver section I have:
[WS6in1]
    # This section is for the 6in1 series of weather stations.
    # no data needed !
    
    # The driver to use:
    driver = user.ws6in1

Ignoring the comments (#) Have you got the same in your weewx.conf file including the case.  If its different do you know why ?  Did you use the install script ?

Regards

Bob

Ondrej Vozar

unread,
Jun 18, 2020, 8:29:28 AM6/18/20
to weewx...@googlegroups.com
Hi Bob, 

I must admit that I was not thinking about the issue with upper case of the driver name this way. 
Yes, the problem was in the /etc/weewx/weewx.conf file. The name of the station and the driver section label were written with lower case. And - yes I did insert these manually. The reason for this was a problem with the python version. That is why I have inserted the driver settings into this file manually, when I was troubleshooting all the errors - it wouldn't install itself when on python2. 

Now when I changed everything back and used the name WS6in1, all works fine. 
Thanks for your kind support. 

I would have another question with regards to the weewx software - have you tested it with a different type of database? 
I mean I would try mariaDB, but I don't want to spend another 20 hours of troubleshooting any errors. 

Regards - Ondrej

ut 16. 6. 2020 o 18:51 Bob Atchley <bob.a...@gmail.com> napísal(a):
--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.

Bob Atchley

unread,
Jun 18, 2020, 12:15:44 PM6/18/20
to weewx-user
Hi Ondrej,

All good then, I just need to work out why the Python2 install didn't work (possibly because you had added the Python3 dependencies not the Python2 ones ?  If so that would make sense)

The rest of weewx is much more reliable than my driver !!
I have been using mariaDB from day 1 and never had a single issue with it
(well it is consuming 14% of the memory of my 1GB raspberryPi 2 - that may be a concern ?)

Regards

Bob

Reply all
Reply to author
Forward
0 new messages