Home Creators Posts Import Register Favorites Logout
haven't archived this post yet. have a subscription? use the importer!

Content


Home automation systems must run all the time. Today we will make sure you get an alarm on your Smartphone if something goes wrong with your system. But how can we create an alarm if the server is down? Let’s have a closer look.

https://youtu.be/IGB2eRvhvB0

Files

Previews only

Supervise your Home Server with a Watchdog and Heartbeats (Raspberry Pi, ESP8266, Docker)

Home automation systems must run all the time. Today we will make sure you get an alarm on your Smartphone if something goes wrong with your system. But how can we create an alarm if the server is down? Let’s have a closer look. I am a proud Patreon of @GreatScott!, @ElectroBOOM , @Electronoobs , @EEVblog , and others. No Microsoft Teams, Zoom Links: Raspberry Pi4 US: https://amzn.to/3pP32HZ Raspberry Pi4 DE: https://amzn.to/3avMgaG Raspberry Pi4: https://ebay.to/3n1sPef ESP-01s Boards: https://s.click.aliexpress.com/e/_9iUH4Z or https://amzn.to/2SDaYAx or https://ebay.to/3wG6I1K ESP-01 Programmer: https://s.click.aliexpress.com/e/_AsjoBx or https://ebay.to/2S0TcY3 ESP-01 Programmer: https://s.click.aliexpress.com/e/_9w9QoH or https://amzn.to/3i7BUTQ Solid Polymer Capacitors 1000uF : https://s.click.aliexpress.com/e/_A2Ii9X Power supplies (110-240V - 3.3V) : https://s.click.aliexpress.com/e/_A6pG3T Prototype Boards : https://s.click.aliexpress.com/e/_AtVdgv Sketch and Flow: https://github.com/SensorsIot/Heartbeat8266 Telegram Library: https://github.com/witnessmenow/Universal-Arduino-Telegram-Bot PubSub Library: https://github.com/knolleary/pubsubclient The links above usually are affiliate links that support the channel (no additional cost for you). Supporting Material and Blog Page: http://www.sensorsiot.org Github: https://www.github.com/sensorsiot My Patreon Page: https://www.patreon.com/AndreasSpiess Discord: https://discord.gg/JfgDSa8 If you want to support the channel, please use the links below to start your shopping. No additional charges for you, but I get a commission of your purchases to buy new stuff for the channel My Amazon.com shop: https://www.amazon.com/shop/andreasspiess For Banggood https://bit.ly/2jAQEf4 For AliExpress: http://bit.ly/2B0yTLL For Amazon.de: http://amzn.to/2r0ZCYI For Amazon UK: http://amzn.to/2mxBaJf For ebay.com: http://ebay.to/2DuYXBp https://www.facebook.com/profile.php?id=100013947273409 https://twitter.com/spiessa https://www.instructables.com/member/Andreas%20Spiess/ Please do not try to email me. This communication channel is reserved for my primary job As an Amazon Associate, I earn from qualifying purchases #no#midroll#ads

Comments

Sarah Gray

In some of the code I have been writing to my devices that have variable contact times to the server, I had been wondering how to check they are "alive". Of course, heartbeats though in my case, I think will have them only act if the reporting frequency is over the time between heartbeat contacts to avoid un-necessary contacts. Thanks for the "memory jog" on this Andreas! (Been used to watchdogs for websites, just hadn't thought it through for sensors.)

Craig Larson

This is a great use for my small mountain of ESP-01's. Sure, all the new WiFi chips are exotic and powerful, but the original '01's are still fundamentally useful ... as you show. Thanks for another informative and useful video!

AndreasSpiess

Hi Sarah, a heartbeat of course consumes some energy in sensors. This is why I use the regular sensor readings for this purpose. Like that you often do not need an additional heartbeat. Maybe you add one only if your sensors do not transmit a value during an agreed time. Or you live with some false alarms.

AndreasSpiess

Hi Craig, Yes, because of its form factor, the ESP-01 is very limited. But for this purpose it was ideal (I recently ordered a 10 pack for a few dollars for such tiny projects)