i also need to mention that the house were we live now is a 'koppelbouw' in Dutch :p
and the other house they are renovating it now, but it's completely open now, no doors, no windows. So i also think/hope, when the renovation from the house beside us is done, we also will have a warmer feeling from that house?
OMG 10m³ per day?
For the last 30 days I have an average of 2,4m³ per day.
The 'biggest' day was 4,37m³.
Don't think the other house has much to do about it. There should be isolation between the two.
Ha no, I've floor heating that was manually adjusted per room.
-> By manually adjusting the flowrate (waterzijdig inregelen).
So if the temp in the livingroom is like 20 degrees the bathroom is 21-22 and the other rooms 18/19 or 20.
Floor heating takes a lot of time so I keep the temp 20 during the day / 19 during night time... but if it freezes outside it stays at 20. All done via Opentherm.
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
A good addition thanks to @Waaren at viewtopic.php?p=264686#p264686
With that lua script a lot less calls are made to the webserver and the pass2php script doens't need to check for them anymore.
First of all, a Happy newyear to everyone and may everyone have a good health,... yeah same shit like every year
A question regarding how you guys store data to influxDB, you do it in the php script?
Or you let Domoticz handle it? (with https://www.domoticz.com/wiki/HttpLink)
All of its buttons work with PASS2PHP, only the up (+) and long up (L +) buttons do not.
When the LUA script runs, it still has a "+" sign, but if I call the PHP file using curl or wget, it will already be there, with an empty character going through. " " character instead of "+" and "L" character instead of "L +". They lose the + character.
@ropske: I don't use influxdb, think you need to be with Sincze for that/
@kispalsz: can you post the code that you're using for the Tradfri? And how do you get that signal in Domoticz?
Egregius wrote: ↑Monday 04 January 2021 7:09
@ropske: I don't use influxdb, think you need to be with Sincze for that/
@kispalsz: can you post the code that you're using for the Tradfri? And how do you get that signal in Domoticz?
If I put this it in the LUA file before calling pass2php.php it will work properly. I haven't looked at how many ms slowdowns this operation will result
if s=="+" then s="%2B" end
if s=="L +" then s="L %2B" end
for d,s in pairs(devicechanged)
do
if s=="+" then s="%2B" end
if s=="L +" then s="L %2B" end
os.execute('wget -O /dev/null -o /dev/null "http://127.0.0.1/secure/pass2php.php?d='..d..'&s='..s..'" &')
end
commandArray={}
I would say you need to search either 'url encode' or 'html entities'.
But I doubt that any function or framework will be faster than your solution.
One tiny thing that you can change:
for d,s in pairs(devicechanged)
do
if s=="+" then s="%2B" end
elseif s=="L +" then s="L %2B" end
os.execute('wget -O /dev/null -o /dev/null "http://127.0.0.1/secure/pass2php.php?d='..d..'&s='..s..'" &')
end
commandArray={}
Egregius wrote: ↑Monday 04 January 2021 17:24
I would say you need to search either 'url encode' or 'html entities'.
But I doubt that any function or framework will be faster than your solution.
One tiny thing that you can change:
for d,s in pairs(devicechanged)
do
if s=="+" then s="%2B" end
elseif s=="L +" then s="L %2B" end
os.execute('wget -O /dev/null -o /dev/null "http://127.0.0.1/secure/pass2php.php?d='..d..'&s='..s..'" &')
end
commandArray={}
There is one end too many in that code
If it is a urlEncode type of issue I would expect the space also to be a problem (and some other chars) but normally this will be handled by wget when using double quotes around your url string.
commandArray = {}
local function isRealSensor(name)
return otherdevices_idx[name]
end
for d, s in pairs(devicechanged) do
if isRealSensor(d) then
if s == '+' then s = '%2B' elseif s == 'L +' then s = 'L %2B' end
os.execute('wget -O /dev/null -o /dev/null "http://127.0.0.1/secure/pass2php.php?d='..d..'&s='..s..'" &')
end
end
return commandArray
ropske wrote: ↑Sunday 03 January 2021 17:25
First of all, a Happy newyear to everyone and may everyone have a good health,... yeah same shit like every year
A question regarding how you guys store data to influxDB, you do it in the php script?
Or you let Domoticz handle it? (with https://www.domoticz.com/wiki/HttpLink)