Giter Club home page Giter Club logo

domoticz-wudirect's People

Contributors

vaneeten avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

domoticz-wudirect's Issues

huge spikes in indoor data

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 ....
Screenshot 2021-06-03 at 07 54 03
Screenshot 2021-06-03 at 07 54 17
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" ?

new error today

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' 

baro value drops to 0 a couple of times per day

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 ?
Screenshot 2021-11-22 at 20 19 34

the bottom line is 0 (zero)

error ?

??

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

(FindModule) Domoticz/DomoticzEx modules not found in interpreter.

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

Addition to the plugin.

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$ }

Error in plugin

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

error found in logging today ... plugin stops and reconnects

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````

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.