nån som har nån erfarenhet av detta system: http://webshop.grosseharen.se/product.h ... egory_id=9
Ser väldigt intressant ut och jag funderar på att slå till och byta ut mina nexa prylar mot detta.
All info mottages tacksamt

Kod: Markera allt
--[[
%% properties
%% autostart
7 value
%% globals
--]]
local temperatur = fibaro:getValue(7, "value")
local sourceTrigger = fibaro:getSourceTrigger();
if (sourceTrigger["type"] == "autostart") then
while true do
local currentDate = os.date("*t");
local startSource = fibaro:getSourceTrigger();
if (
( (tonumber(os.date("%H%M")) >= tonumber("00" .. "00") and tonumber(os.date("%H%M")) <= tonumber("23" .. "59")) and (math.floor(os.time()/60)-math.floor(1359241200/60))%1 == 0 )
)
then
os.execute ('curl "http://www.temperatur.nu/rapportera.php?s=hofors&id=xxxxxxx&t=' .. temperatur .. '"')
end
fibaro:sleep(60*1000);
end
else
local currentDate = os.date("*t");
local startSource = fibaro:getSourceTrigger();
if (
( (tonumber(os.date("%H%M")) >= tonumber("00" .. "00") and tonumber(os.date("%H%M")) <= tonumber("23" .. "59")) )
or
startSource["type"] == "other"
)
then
os.execute ('curl "http://www.temperatur.nu/rapportera.php?s=hofors&id=xxxxxxx&t=' .. temperatur .. '"')
end
end