Sending raw live data somewhere else

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
kasei
Posts: 2
Joined: Saturday 06 May 2017 14:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Sending raw live data somewhere else

Post by kasei »

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 !
User avatar
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

Post by jvdz »

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)

Code: Select all

commandArray = {}

if devicechanged("Temp") then
	tempval =  otherdevices_svalues['Temp']
	commandArray['OpenURL']='website/url?temp=' .. tostring(tempval)
EndFunc

return commandArray
Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
asjmcguire
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

Post by asjmcguire »

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)

Code: Select all

commandArray = {}

if devicechanged("Temp") then
	tempval =  otherdevices_svalues['Temp']
	commandArray['OpenURL']='website/url?temp=' .. tostring(tempval)
EndFunc

return commandArray
Jos
Shouldn't this devicechanged test be using:

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

Post by Lebo2d9 »

With mqtt?

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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest