I found the answer myself. Create a virtual sensor (millivolt) as unit and write a lua script
commandArray = {}
file = io.open("/sys/class/saradc/ch0", "r")
io.input(file)
value = math.floor(io.read()*1700/1024)
io.close(file)
commandArray['UpdateDevice'] = '55|0|'..value..''
return ...
Search found 4 matches
- Sunday 09 February 2020 10:18
- Forum: DIY Hardware and Protocols
- Topic: ODROID C2 analogue GPIO inputs
- Replies: 1
- Views: 1022
- Sunday 09 February 2020 10:12
- Forum: Temperature and Weather
- Topic: scale error windspeeds Wunderground
- Replies: 3
- Views: 870
Re: scale error windspeeds Wunderground
I found the answer myself, make a new variable and convert the values trough a lua script.
- Saturday 04 January 2020 13:31
- Forum: Temperature and Weather
- Topic: scale error windspeeds Wunderground
- Replies: 3
- Views: 870
scale error windspeeds Wunderground
When I import weather data from any Wunderground weather station, Domoticz shows wind speeds that are 3,6 times the value that is indicated on the according weather station in Wunderground. I suppose a conversion error is present in Domoticz ( 1m/s = 3,6km/h). Can this be solved by one of the brains ...
- Tuesday 24 December 2019 6:53
- Forum: DIY Hardware and Protocols
- Topic: ODROID C2 analogue GPIO inputs
- Replies: 1
- Views: 1022
ODROID C2 analogue GPIO inputs
Hello,
I recently installed Domoticz on my Odroid C2. Works fine, digital GPIO pins are easily accessable.
However, the Odroid C2 has 2 analogue GPIO input pins. Can somebody help me how to integrate the values of these analogue inputs into Domoticz ?
I recently installed Domoticz on my Odroid C2. Works fine, digital GPIO pins are easily accessable.
However, the Odroid C2 has 2 analogue GPIO input pins. Can somebody help me how to integrate the values of these analogue inputs into Domoticz ?