Page 1 of 1

Central Heating Monitoring with graph and TV, email notification.

Posted: Friday 05 October 2018 17:52
by Gerry123
Hello,
If anyone is interested I will post the code for the following requirement -
1 - Monitor time/hr a central heating burner is on.
2 - Monitor the external temperature/hr.
3 - Monitor the used oil/hr.
4 - Output 1-3 in graphical form each day.
5 - Output predefined minimum oil alarm via Samsung TV message alert & email.
I am not a developer, just a hobbyist & their will be improvements as the project was a learning experience in Domoticz,Lua,Blockly,EspEasy,Bash,GnuPlot, & a little Python.
Graph attached.
Kind Regards,
Gerry.

Re: Central Heating Monitoring with graph and TV, email notification.

Posted: Friday 05 October 2018 21:09
by EdddieN
Similar setup. What do you show on the TV?

Also, how do you measure the oil?

Re: Central Heating Monitoring with graph and TV, email notification.

Posted: Saturday 06 October 2018 20:47
by Gerry123
attached tv message, HC-sr04 US Sensor

Re: Central Heating Monitoring with graph and TV, email notification.

Posted: Sunday 07 October 2018 13:40
by EdddieN
This one?
https://www.sparkfun.com/products/13959

Wow! I must admit I’m not that comfortable making holes on the tank yet.

How have you found accuracy so far? I understand that temperature plays a fair bit....
what about weather proofing the device and power?

Re: Central Heating Monitoring with graph and TV, email notification.

Posted: Sunday 07 October 2018 18:01
by Gerry123
Similiar - https://www.amazon.co.uk/ELEGOO-Ultraso ... ds=hc-sr04

Accuracy from memory is +/- 3cm. However their is significant jitter. This is managed in Lua by -
local LDistance_MaxChange = tonumber(LDistance1 + (LDistance1 * 7.5/100)) --Local Variables
local LDistance_MinChange = tonumber(LDistance1 - (LDistance1 * 7.5/100)) --Local Variables
if (tonumber(LDistance) > LDistance_MinChange and tonumber(LDistance) < LDistance_MaxChange) then
commandArray['Variable:VDistance1']= tostring (LDistance)
{where LDistance is the HC-sro4 distance & VDistance1 is the stored value}

Sorry. I cannot take picture of device mounting (weather here quite unpleasant}
2 holes drilled in a cap of a 20 litre container, hc-sr04 pushed through inside of cap holes, cap has a 120*6 mm bolt mounted inside, fuel tank filling lid drilled with 6mm hole, cap secured to inside of fuel tank lid. Weatherproof accomplished.

Power was convenient as burner was quite close.