vaneeten / domoticz-wudirect Goto Github PK
View Code? Open in Web Editor NEWDomoticz Python plugin for direct reception and parsing of Wunderground-formatted Personal Weather Station data
Domoticz Python plugin for direct reception and parsing of Wunderground-formatted Personal Weather Station data
In Domoticz are a few combined devices, which split up in 2 devices with the same caption in 2 tabs.
I have added 2 devices to be able to have different captions.
THB device added TH for just only temperature and humidity in 1 device. Barometer has his own device.
WTC device added Wind device for just wind without temperature and humidity.
Perhaps you could include those.
'TH' : { 'nr' : 105, 'type' : "Temp+Hum", 'src' : ['tempf','humidity','_humstat,humidity,tempf'] }, 'Wind' : { 'nr' : 106, 'type' : "Wind", 'src' : ['winddir','_winddir,winddir','_windms10,windspeedmph','_windms10,windgustmph','tempf','windchillf$ }
Hi,
I found an other issue ...
Perhaps due to the fact that my PWS is rebooting every morning It seems to send invalid data for the INDOOR sensors ....
In the database I see values that are way off. something like -5500 deg for temp and a value like that for pressure ...
It is only for the INTERNAL sensors and that might be because of they have to sync with the PWS after an connection reset between the PWS and the internal sensor.
Because of this, all combined sensers using this data also show these spikes
Is it possible to add some generic check for data "way off" ?
Got this error to day after installing the plugin.
2022-04-07 14:11:32.135 Error: PWS: Call to function 'onMessage' failed, exception details: 2022-04-07 14:11:32.136 Error: PWS: Traceback (most recent call last): 2022-04-07 14:11:32.136 Error: PWS: File "/home/pi/domoticz/plugins/domoticz-wudirect/plugin.py", line 442, in onMessage 2022-04-07 14:11:32.136 Error: PWS: _plugin.onMessage(Connection, Data) 2022-04-07 14:11:32.136 Error: PWS: File "/home/pi/domoticz/plugins/domoticz-wudirect/plugin.py", line 376, in onMessage 2022-04-07 14:11:32.136 Error: PWS: value = self.Data[src] 2022-04-07 14:11:32.136 Error: PWS: KeyError: 'tempf'
If you need debug output, please let me know.
19 devices are created, but not updated.
I am using:
Version: 2022.1 (build 14285)
Build Hash: 7cac83ba6
Compile Date: 2022-03-17 08:46:22
dzVents Version: 3.1.8
Python Version: 3.7.3 (default, Jan 22 2021, 20:04:44) [GCC 8.3.0]
This the URL I get from the PWS:
2022-04-07 17:20:31.864 PWS: URL CALLED: ID=a&PASSWORD=b&indoortempf=75.0&tempf=69.1&dewptf=41.7&windchillf=69.1&indoorhumidity=33&humidity=37&windspeedmph=0.0&windgustmph=0.0&winddir=193&absbaromin=29.038&baromin=29.988&rainin=0.000&dailyrainin=0.000&weeklyrainin=0.000&monthlyrainin=0.000&solarradiation=0.24&UV=0&dateutc=2022-04-07%2015:20:30&softwaretype=EasyWeatherV1.6.4&action=updateraw&realtime=1&rtfreq=5
Hi,
the value of baro drops to 0 (zero) a couple of times per day, causes the graph to be wrong ...
I recall you added a min and max on baro to prevent this but it seems not to work.
Is it possible to modify the code to ignore a value like this and NOT write it to the database ?
the bottom line is 0 (zero)
I found the logging below this morning ..
Aug 3 08:26:01 domoticz domoticz: WuDirect: (WuDirect) onConnect called
Aug 3 08:26:01 domoticz domoticz: WuDirect: (WuDirect) onMessage called for connection: 127.0.0.1:49774
Aug 3 08:26:01 domoticz domoticz: WuDirect: (WuDirect) Sensor value for device 15 out of range and discarded: -5572.8
Aug 3 08:26:01 domoticz domoticz: WuDirect: (WuDirect) Sensor value for device 10 out of range and discarded: -9999.0
Aug 3 08:26:01 domoticz domoticz: WuDirect: (WuDirect) Sensor value for device 6 out of range and discarded: -338566.1
Aug 3 08:26:01 domoticz domoticz: WuDirect: (WuDirect) 'onMessage' failed 'TypeError':'sequence item 3: expected str instance, int found'.
Aug 3 08:26:01 domoticz domoticz: WuDirect: (WuDirect) ----> Line 430 in '/home/pi/domoticz/plugins/domoticz-wudirect/plugin.py', function onMessage
Aug 3 08:26:01 domoticz domoticz: WuDirect: (WuDirect) ----> Line 374 in '/home/pi/domoticz/plugins/domoticz-wudirect/plugin.py', function onMessage````
??
Nov 27 17:20:11 domoticz domoticz[17479]: WuDirect: 'onMessage' failed 'TypeError':'unsupported operand type(s) for *: 'NoneType' and 'float''.
Nov 27 17:20:11 domoticz domoticz[17479]: WuDirect: Exception traceback:
Nov 27 17:20:11 domoticz domoticz[17479]: WuDirect: ----> Line 432 in '/home/pi/domoticz/plugins/domoticz-wudirect/plugin.py', function onMessage
Nov 27 17:20:11 domoticz domoticz[17479]: WuDirect: ----> Line 364 in '/home/pi/domoticz/plugins/domoticz-wudirect/plugin.py', function onMessage
See enclosed log:
2021-11-18 12:09:08.002 Status: PWS: Stop directive received.
2021-11-18 12:09:08.424 Status: PWS: Exiting work loop.
2021-11-18 12:09:08.507 Status: PWS: Stopping threads.
2021-11-18 12:09:08.508 Status: PWS: Stopped.
2021-11-18 12:09:08.348 Error: (FindModule) Domoticz/DomoticzEx modules not found in interpreter.
2021-11-18 12:09:08.348 Error: (FindModule) Domoticz/DomoticzEx modules not found in interpreter.
2021-11-18 12:09:45.202 Status: PWS: Started.
2021-11-18 12:09:45.202 Status: PWS: Entering work loop.
2021-11-18 12:09:45.423 Status: PWS: Initialized version 0.2.2, author 'mveeten'
After updating or stopping/starting the WUDirect hardware in Domoticz This error FindModule appears.
Domoticz is at build 13872
today I got some new error in my logging
2022-04-06 08:11:57.114 Error: WuDirect: Call to function 'onMessage' failed, exception details:
2022-04-06 08:11:57.115 Error: WuDirect: Traceback (most recent call last):
2022-04-06 08:11:57.115 Error: WuDirect: File "/home/pi/domoticz/plugins/domoticz-wudirect/plugin.py", line 434, in onMessage
2022-04-06 08:11:57.115 Error: WuDirect: _plugin.onMessage(Connection, Data)
2022-04-06 08:11:57.115 Error: WuDirect: File "/home/pi/domoticz/plugins/domoticz-wudirect/plugin.py", line 366, in onMessage
2022-04-06 08:11:57.115 Error: WuDirect: value = floatToString( parseFloatValue(self.Data[params[0]]) * 10.0 /3.6 )
2022-04-06 08:11:57.115 Error: WuDirect: TypeError: unsupported operand type(s) for *: 'NoneType' and 'float'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.