|
Post by luksmann on Aug 16, 2017 3:19:37 GMT -8
Hi guys, I could not find a driver for the WeatherPi for the open-source weather station software weewx. So I wrote one, based on the SwitchDoc GrovePi.py python code. The driver can be implemented into weewx and generate packets standard packets, so it works seamlessly, just as any other compatible weather station would. Right now the code is highly adapted to my system and rather quick & dirty, with lots of things commented out and stuff. If there is an interest in the community I could clean up the code and post it on GitHub. I just wanted to check here first, before I get work - maybe nobody is interested anyway So just let me know and I'll gladly share my code, maybe somebody can improve it or extend it! Greetings, luksmann
|
|
|
Post by SDL on Aug 16, 2017 7:29:32 GMT -8
luksman,
We are interested! We have scheduled acting weewx into GWP for the next major software release so let us see your code!
BP
|
|
|
Post by luksmann on Aug 20, 2017 22:06:11 GMT -8
Hi,
okay, great! I'll do some refactoring in the following days and post the code here!
|
|
|
Post by jmaurin on Aug 30, 2017 7:19:11 GMT -8
Hi! Any news on this?
|
|
|
Post by luksmann on Aug 31, 2017 10:53:46 GMT -8
Hi, sorry, I didn't get around to doing the refactoring. I can post the code if you want to, but it is adapted to my system and does't use some of the sensors. So no guarantee that it will work on your system! Here goes: pastebin.com/YtdYfLZJQuick installation guide: put the driver in /usr/share/weewx/user/GrovePi.py create a section in weewx.conf: /etc/weewx/weewx.conf and add: ############################################################################## [GrovePi] driver = user.GrovePi poll_interval = 30 ############################################################################## Set the station type in weewx.conf to station_type = GrovePi The driver will expect all libraries to be in the folder "/home/pi/WeatherNew/" and the corresponding subfolders. You can change that in GrovePi.py and adapt it to your system. The driver currently reads the following sensors (starting on line 306): barometer, pressure, windspeed, winddir, windgust, outhumidity and rain. To dos: Big parts of the code are either redundant or commented out, so could be deleted. I also think that it's not necessesary to always re-initialize all sensors, probably the GrovePi.py file could be split into to parts, one for start up of the weather station and the other one as the driver itself. I didn't know any python at all - I thought myself for this project, so no warranties Have fun!
|
|
|
Post by luksmann on Sept 8, 2017 4:42:42 GMT -8
Hi guys,
has anybody tried the driver? Does it work for you?
Greets, luksmann
|
|
lee
New Member
Posts: 36
|
Post by lee on Dec 29, 2017 10:38:22 GMT -8
Hi Luksmann!
I for one am VERY Interested, especially due to the shortcomings of the Apple-only interface that's available now! As soon as I get my system completely up and running, I'll move on to seeing how WeeWX works!!
THANK YOU!!!
|
|
lee
New Member
Posts: 36
|
Post by lee on Mar 15, 2018 11:59:45 GMT -8
Any news on this?
|
|
|
Post by SDL on Mar 15, 2018 15:03:37 GMT -8
Did you see the Luksmann posting? Hi, sorry, I didn't get around to doing the refactoring. I can post the code if you want to, but it is adapted to my system and does't use some of the sensors. So no guarantee that it will work on your system! Here goes: pastebin.com/YtdYfLZJ Quick installation guide: put the driver in /usr/share/weewx/user/GrovePi.py create a section in weewx.conf: /etc/weewx/weewx.conf and add: ############################################################################## [GrovePi] driver = user.GrovePi poll_interval = 30 ############################################################################## Set the station type in weewx.conf to station_type = GrovePi The driver will expect all libraries to be in the folder "/home/pi/WeatherNew/" and the corresponding subfolders. You can change that in GrovePi.py and adapt it to your system. The driver currently reads the following sensors (starting on line 306): barometer, pressure, windspeed, winddir, windgust, outhumidity and rain. To dos: Big parts of the code are either redundant or commented out, so could be deleted. I also think that it's not necessesary to always re-initialize all sensors, probably the GrovePi.py file could be split into to parts, one for start up of the weather station and the other one as the driver itself. I didn't know any python at all - I thought myself for this project, so no warranties Have fun! Read more: forum.switchdoc.com/thread/323/weewx-driver#ixzz59rTgJ6KB
|
|
|
Post by riccardo on Jun 1, 2018 2:36:54 GMT -8
Hi guys, has anybody tried the driver? Does it work for you? Greets, luksmann Hi I'm using the code, and it has been working great for me,
|
|
phate
New Member
Posts: 43
|
Post by phate on Mar 4, 2019 19:57:26 GMT -8
luksman, We are interested! We have scheduled acting weewx into GWP for the next major software release so let us see your code! BP Has this ever been implemented. I’ve seen it mentioned many times that weewx would be supported but I cannot find anything solid but a few other users attempts. This is the big major hurdle that’s been holding up a sensor project I have for years. Really hoping weewx is now supported. Any help is much appreciated.
|
|
|
Post by SDL on Mar 5, 2019 12:00:04 GMT -8
Phate,
The Weewx driver above is the only one that has been done to this point. Are you looking for one integrated into the main code branch?
John
|
|
|
Post by SDL on Mar 5, 2019 12:00:12 GMT -8
Phate,
The Weewx driver above is the only one that has been done to this point. Are you looking for one integrated into the main code branch?
BP
|
|
phate
New Member
Posts: 43
|
Post by phate on Mar 5, 2019 18:00:56 GMT -8
Phate, The Weewx driver above is the only one that has been done to this point. Are you looking for one integrated into the main code branch? BP Exactly. I’ve seen mention that it was going to be added to the main code. RasPiConnect. And blynk look pretty and all but don’t even come close to something like weewx. Plus weewx doesn’t cost yet more money like the other 2.
|
|
phate
New Member
Posts: 43
|
Post by phate on Mar 5, 2019 19:35:32 GMT -8
It seems we may have finally got this plugin to work. 🤗
Within the main script would we awsome tho.
Now to try and add the extra sensors. Dust etc etc.
|
|