I am just starting with Reactor and would like to convert my LUA code into Reactor sensors. I have successfully added a ‘Notify’ when my solar panels stop producing (RCD trip).
I also upload current temperature and solar live output to PVOutput.com and would like to be notified when this upload fails.
I get the temperature from an API call to wunderground.com. In the LUA code this returns two variables (wstatus and wresult).
local wurl = "https://api.weather.com/v2/pws/observations/current?stationId=ILOUGHBO8&format=json&units=m&apiKey=<MyAPIKey>" local wstatus,wresult = luup.inet.wget(wurl, 5)
I hoped I could migrate this to Reactor with HTTP Request Get. However I cannot see a way to get Reactor to accept the two returned variables?
If not possible, I could use the ‘Run LUA’ Activity to get the returned variables, but cannot see how to then use the variables as a condition to initiate a ‘Notify’ activity within the same Reactor sensor?
Any help gratefully received