Hello,
So I get temperature and humidity readings thanks to an RFLink connected to my raspberry pi.
Domoticz is set to read data from the rflink.
I'd like to send temperature and humidity values to another website as they come (via POST or GET)
any idea ?
thanks in advance !
Sending raw live data somewhere else
Moderators: leecollings, remb0
- jvdz
- Posts: 2328
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: Sending raw live data somewhere else
Should be fairly simple when you use for example lua.
You simply make a device script which tests for the devicechanged() containing the information and do an OpenUrl command.
Something like this: (untested)
Jos
You simply make a device script which tests for the devicechanged() containing the information and do an OpenUrl command.
Something like this: (untested)
Code: Select all
commandArray = {}
if devicechanged("Temp") then
tempval = otherdevices_svalues['Temp']
commandArray['OpenURL']='website/url?temp=' .. tostring(tempval)
EndFunc
return commandArray
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
-
- Posts: 71
- Joined: Saturday 13 July 2013 2:45
- Target OS: Linux
- Domoticz version: 3.5877
- Location: Scotland
- Contact:
Re: Sending raw live data somewhere else
Shouldn't this devicechanged test be using:jvdz wrote:Should be fairly simple when you use for example lua.
You simply make a device script which tests for the devicechanged() containing the information and do an OpenUrl command.
Something like this: (untested)JosCode: Select all
commandArray = {} if devicechanged("Temp") then tempval = otherdevices_svalues['Temp'] commandArray['OpenURL']='website/url?temp=' .. tostring(tempval) EndFunc return commandArray
devicechanged['Temp_Temperature'] ?
AEOTEC ZStick, 11 ZWave Nodes, RFXCOMM, 50ish Byron Sockets.. HE851 (PIR), 2x HE852 (DoorContact)
WS2300, CM180, CC128, 2xTHGR122NX, 2xPiZeroW w/DS18B20, 8Ch 1W Relay Board.
8 Panasonic IP Cams, 1 16ch CCTV DVR + 15 CCTV Cams
WS2300, CM180, CC128, 2xTHGR122NX, 2xPiZeroW w/DS18B20, 8Ch 1W Relay Board.
8 Panasonic IP Cams, 1 16ch CCTV DVR + 15 CCTV Cams
-
- Posts: 139
- Joined: Tuesday 06 September 2016 20:39
- Target OS: Raspberry Pi / ODroid
- Domoticz version: L stab
- Location: Belgium
- Contact:
Re: Sending raw live data somewhere else
With mqtt?
Verstuurd vanaf mijn SM-G920F met Tapatalk
Verstuurd vanaf mijn SM-G920F met Tapatalk
Domoicz on RPI3 (wifi) directly connected 3x ds18b20 for CV temp, Evohome (9 zone), 1 remote 220V switch based on ESP-12. RFXtrx433E, 16x AMST-606, 5 Somfy RTS motors
Domoticz on RPI3(wifi) as slave for terraruim control
More to come
Domoticz on RPI3(wifi) as slave for terraruim control
More to come
Who is online
Users browsing this forum: No registered users and 1 guest