S_WIND
Posted: Thursday 21 January 2016 22:26
Hi,
I am building a wind speed sensor node, but I am having diffictulty's in getting it to work
The sensor I am using has a 0 to 5V analog output for windspeeds from 0 to 32,4 m/s.
So what I did right now is I took the lightsensor example code (Arduino) and changed the formula to give me the value in m/s instead of lux, this already works.
And the node sends wind in m/s to Domoticz, but Domotics thinks it is LUX (makes sense because of the S and V LIGHT_LEVEL)
But now I would also like it that my Domoticz gateway would also see it as a wind speed sensor instead of a light sensor.
So changed V_LIGHT_LEVEL and S_LIGHT_LEVEL to S_WIND and V_WIND, unfortunatly than it doenst work anymore.
I can see in the log file that the node reports itself to Domoticz but that is it.
At this moment I am running Domoticz on a RaspberryPi with build version 2.4269
Any hints/tips/help would be greatly appriciated!
Greetz Johan
(FYI I am only 4 days old with Domoticz)
I am building a wind speed sensor node, but I am having diffictulty's in getting it to work
The sensor I am using has a 0 to 5V analog output for windspeeds from 0 to 32,4 m/s.
So what I did right now is I took the lightsensor example code (Arduino) and changed the formula to give me the value in m/s instead of lux, this already works.
And the node sends wind in m/s to Domoticz, but Domotics thinks it is LUX (makes sense because of the S and V LIGHT_LEVEL)
But now I would also like it that my Domoticz gateway would also see it as a wind speed sensor instead of a light sensor.
So changed V_LIGHT_LEVEL and S_LIGHT_LEVEL to S_WIND and V_WIND, unfortunatly than it doenst work anymore.
I can see in the log file that the node reports itself to Domoticz but that is it.
At this moment I am running Domoticz on a RaspberryPi with build version 2.4269
Any hints/tips/help would be greatly appriciated!
Greetz Johan
(FYI I am only 4 days old with Domoticz)