Graaddagen with kWh
Posted: Wednesday 12 December 2018 20:45
Dear all [ perhaps more Dutchies ]
I use a Heatpump
Now i did use a CV unit, and i did monitor my gas with www.mindergas.nl so i can use Graaddagen https://www.mindergas.nl/degree_days_ca ... xplanation The only good way to monitor your gas usage...
Only now i have a problem.
All my Old data i cannot use any more ..
Because my heatpump use 220 volts in stead of gas.
So i found a DZ vents script that is using a formula for gas to see how many gas i use per graaddag.
Where i use in the GAS counter my Zwave kWh counter [ my heatpump usage ]
And i need 2 kWh power for 1M³ Gas.. so i give in this part a * 2
For testing i use this option evry 5 minute, only when it is working i run this script once a day 23.55
I am looking for some other options..
What i hope some can script is a dummy where i can see the "graaddagen " and they are counting for days months and years..
Other option should be very great...
The "gas" [ calculatie with my powerusage ] usage uploading to mindergas.nl so i can compare my Old gas usage with the new "Dummy Gas"
I did use with my gas meter this script for uploding to mindergas.
So i hope some will help me with this script...
I cannot script..unfortunately
So my your help will be great for my!!!
I use a Heatpump
Now i did use a CV unit, and i did monitor my gas with www.mindergas.nl so i can use Graaddagen https://www.mindergas.nl/degree_days_ca ... xplanation The only good way to monitor your gas usage...
Only now i have a problem.
All my Old data i cannot use any more ..
Because my heatpump use 220 volts in stead of gas.
So i found a DZ vents script that is using a formula for gas to see how many gas i use per graaddag.
Code: Select all
return {
on = { timer = { "every minute"}},--at 23:55
execute = function(domoticz)
local Date = domoticz.time.year..domoticz.time.month..domoticz.time.day
local meantempOutside = domoticz.devices('D.M.: Gemiddeld Buiten D').temperature
local baseTemp = 18
local factor = 1
local degreesdays = baseTemp - meantempOutside
if (domoticz.time.month >= 4 and domoticz.time.month <= 9) then factor = 0.8 end
if (domoticz.time.month >= 11 or domoticz.time.month <= 2) then factor = 1.1 end
degreesdays = degreesday * factor
local GasUsage = domoticz.devices('Z: WP Tot').counterToday
local GasUsageperDegreesday = domoticz.round((GasUsage * 2 / degreesdays ),3)
if (degreesday <= 0) then
degreesdays = 0
GasUsageperDegreesday = 0
end
domoticz.log('Gemiddelde temperatuur buiten (laatste 24u): '..meantempOutside)
domoticz.log('Stroom verbuik WP vandaag: '..GasUsage..' m3')
domoticz.log('Aantal graaddagen: '..degreesdays)
domoticz.log('WP verbruik: '..GasUsageperDegreesday..' Kwh per graaddag')
domoticz.devices('D.M.: kWh/Graaddag').updateCustomSensor(GasUsageperDegreesday)
end
}
Code: Select all
local GasUsage = domoticz.devices('Z: WP Tot').counterTodayCode: Select all
local GasUsageperDegreesday = domoticz.round((GasUsage * 2 / degreesdays ),3)I am looking for some other options..
What i hope some can script is a dummy where i can see the "graaddagen " and they are counting for days months and years..
Other option should be very great...
The "gas" [ calculatie with my powerusage ] usage uploading to mindergas.nl so i can compare my Old gas usage with the new "Dummy Gas"
I did use with my gas meter this script for uploding to mindergas.
Code: Select all
#!/bin/bash
#Token to authenicate with mindergas.nl
TOKEN=6yxgQygWUZ4jWL3hZr [ changed token ]
#fetch meterstand (use jq to parse JSON object correctly)
METERSTAND=`curl -s "http://192.168.5.70:8080/json.htm?type=devices&rid=3186" | jq '.result[0].Counter'| tr -d '"'`
#Get OS date, and format it corectly.
NOW=$(date +"%Y-%m-%d")
#Build JSON by hand ;-)
JSON='{ "date":"'$NOW'", "reading":"'$METERSTAND'" }'
#post using curl to API
curl -v -H "Content-Type:application/json" -H "AUTH-TOKEN:$TOKEN" -d "$JSON" https://www.mindergas.nl/api/gas_meter_readingsI cannot script..unfortunately
So my your help will be great for my!!!