OneMoreFarang Posted June 15, 2023 Posted June 15, 2023 I there some little device which can be connected to a router or maybe WLAN which monitors the internet? And maybe shows an alarm on an app if the internet or WLAN doesn't work? I guess I could create something like that with an ESP32. But I am sure someone else invented that already. And maybe they sell it cheap on Lazada or AliExpress or similar. But what is the name of such a device? Any ideas? Recently the electricity was off in a place which I don't visit regularly and because of that the internet was off. I didn't notice for a few days. With a little device and app like described above that should be easy to detect and monitor.
bignok Posted June 15, 2023 Posted June 15, 2023 13 minutes ago, OneMoreFarang said: Recently the electricity was off in a place which I don't visit regularly and because of that the internet was off. I didn't notice for a few days. With Probably a good thing. Why you need internet 18 hours a day? 4 5 1
Popular Post MJCM Posted June 15, 2023 Popular Post Posted June 15, 2023 What I did was create a bash script and run it on a pi every 1 hour (via crontab) to ping 8.8.8.8 it then would send an email out which came into a “alive” mailbox in Gmail. Then you just have to look at that mailbox once in a while to see if there is an outage by looking at the number of emails received on a daily basis (which should be 24 but of course you could always adjust the schedule) maybe it helps? 4
RayWright Posted June 15, 2023 Posted June 15, 2023 Might be a bit over the top, but would recommend Paessler PRTG. Have used it to monitor voltage supply to CER via Room Alert sensors as well as specific device power distribution units and UPS. As MJCM says, also use a Ping 8.8.8.8 & or 8.8.4.4 script to confirm WAN connectivity. PRTG scripting allows you to PING constantly and alert on failure or provide periodic AOK updates. Assumes you have a UPS and mobile SMS at the site for success during a power / WAN outage. 1
OneMoreFarang Posted June 15, 2023 Author Posted June 15, 2023 2 hours ago, RayWright said: Might be a bit over the top, but would recommend Paessler PRTG. Have used it to monitor voltage supply to CER via Room Alert sensors as well as specific device power distribution units and UPS. As MJCM says, also use a Ping 8.8.8.8 & or 8.8.4.4 script to confirm WAN connectivity. PRTG scripting allows you to PING constantly and alert on failure or provide periodic AOK updates. Assumes you have a UPS and mobile SMS at the site for success during a power / WAN outage. Thanks, that goes in the right direction. And it gives me a name for what I am looking for. I guess I am looking for basic network monitoring hardware and software, maybe based on an ESP32 or something similar. In the moment I don't have any PC on that network, and I don't want to install a PC just for running such monitoring software. 1
MJCM Posted June 15, 2023 Posted June 15, 2023 2 hours ago, OneMoreFarang said: In the moment I don't have any PC on that network, and I don't want to install a PC just for running such monitoring software. To make it clear, I am not running it on a PC but on a Raspberry Pi. 1
Popular Post JBChiangRai Posted June 15, 2023 Popular Post Posted June 15, 2023 Buy a 200 baht Sonoff switch on Lazada, and turn on OFFLINE ALERT and the eWeLink app on your phone to control it will receive a PUSH message when the device goes offlne or comes online, ie power or internet failure. 3 1 1
OneMoreFarang Posted June 15, 2023 Author Posted June 15, 2023 12 minutes ago, MJCM said: To make it clear, I am not running it on a PC but on a Raspberry Pi. Thanks The last Raspberry Pi which I bought was less than 3,000B. Now it seems they cost at least 3 times as much... 1
Popular Post MJCM Posted June 16, 2023 Popular Post Posted June 16, 2023 17 minutes ago, OneMoreFarang said: Thanks The last Raspberry Pi which I bought was less than 3,000B. Now it seems they cost at least 3 times as much... Yep that is because of the shortage but they are slowly upping up production. I run lots more things then that script on that one for example pihole etc etc. For a cheap solution that Sonoff switch that @JBChiangRai posted seems to do the trick as well, in fact I am going to order one 3
OneMoreFarang Posted June 16, 2023 Author Posted June 16, 2023 17 minutes ago, JBChiangRai said: Buy a 200 baht Sonoff switch on Lazada, and turn on OFFLINE ALERT and the eWeLink app on your phone to control it will receive a PUSH message when the device goes offlne or comes online, ie power or internet failure. Good idea! I bought one of those some time ago. And I right away installed a different firmware (to run it with Home Assistant). Maybe I should have tried the original first... I will buy another one or two. 1
MJCM Posted June 16, 2023 Posted June 16, 2023 2 hours ago, OneMoreFarang said: guess I am looking for basic network monitoring hardware and software, maybe based on an ESP32 or something similar. Maybe @Crossy also has an idea because I believe he likes to tinker with those.
recom273 Posted June 16, 2023 Posted June 16, 2023 I use a thing called uptime Kuma - there are other things like uptime robot, to monitor my companies server at a glance. We haven't had issues for a long time, so I cant even remember how I did it and what I was trying to achieve, (I think I was trying to collect the data and learn about grafana) but there are blogposts on how to monitor your connection. https://community.oh-lalabs.com/t/monitor-internet-connection-uptime-kuma/2235 I get discord notifications when the server is down, you can use other paid services like pushbullet when your ISP is down or here's something about home assistant. https://techstuff.leighonline.net/2023/03/26/send-uptime-kuma-webhook-notifications-to-home-assistant-that-is-behind-cloudflare-zero-trust/ However, means you will probably need to run the software on a pi or some kind of server somewhere, sorry. 1
Bangkok Barry Posted June 16, 2023 Posted June 16, 2023 I know there's no internet connection when my laptop says displays No internet connection. No device needed. I guess the same thing happens with a phone. 1 1
MJCM Posted June 16, 2023 Posted June 16, 2023 5 minutes ago, Bangkok Barry said: I know there's no internet connection when my laptop says displays No internet connection. No device needed. I guess the same thing happens with a phone. He is talking about to monitor a Remote Location not his home 12 hours ago, OneMoreFarang said: Recently the electricity was off in a place which I don't visit regularly and because of that the internet was off. I didn't notice for a few days. With a little device and app like described above that should be easy to detect and monitor. 1
MJCM Posted June 16, 2023 Posted June 16, 2023 @OneMoreFarang Is the remote location behind CGNAT or does it have a Public IP Address and is the device over there Ping-able?
Bangkok Barry Posted June 16, 2023 Posted June 16, 2023 13 minutes ago, MJCM said: He is talking about to monitor a Remote Location not his home Now I'm wondering why it is important to know if the internet is working in a place he isn't at, but no doubt there's a logical reason. Which is none of my business. 2 1
MJCM Posted June 16, 2023 Posted June 16, 2023 6 minutes ago, Bangkok Barry said: Now I'm wondering why it is important to know if the internet is working in a place he isn't at, but no doubt there's a logical reason. Which is none of my business. Just an example, he has a Fridge at that location and it is full of food, and when the Internet is down then the power could be off and he could take action to make sure that he doesn't have to throw away the food. Just one of the usage cases or maybe he likes a project so as they say in TiT, Up To Him. 2
Popular Post OneMoreFarang Posted June 16, 2023 Author Popular Post Posted June 16, 2023 28 minutes ago, Bangkok Barry said: Now I'm wondering why it is important to know if the internet is working in a place he isn't at, but no doubt there's a logical reason. Which is none of my business. Only because you don't understand it doesn't mean that there are no reasons. It is always amazing in this forum when someone asks a simple question and then some people make it complicated because they don't understand it. I won't tell you all the details why I want what I want. It doesn't matter. And if you don't understand it and have nothing to contribute then just skip this topic. That is best for all of us. 2 4
Popular Post JBChiangRai Posted June 16, 2023 Popular Post Posted June 16, 2023 In my case, I have a Sonoff Basic device on the PEA side of my whole house UPS. It's the only way I can tell if we have a power cut or internet failure and it triggers me to shut off unnecessary air cons & water heaters to maximise the time I get from my 28.8 KwHr LiFePo4 battery, it also triggers me to call PEA or CAT Telecom and tell them. I have over a dozen of these devices controlling outside lighting, fountains, grid-tied inverters, table lamps, water heaters, garage door & main gate (the latter 2 are really useful as I can just say "Hey Siri Garage" or "Hey Siri Gate" from a few 100 metres away and they are open when I get there or I can close them after I have left. I can also program the grid-tied inverters to shut off for a few hours if I am away and it's meter reading day. 3 1
gearbox Posted June 16, 2023 Posted June 16, 2023 50 minutes ago, Bangkok Barry said: Now I'm wondering why it is important to know if the internet is working in a place he isn't at, but no doubt there's a logical reason. Which is none of my business. For many reasons...e.g the fridge is full and electricity goes off. Or security cameras are required to be on all the time.
Popular Post Bangkok Barry Posted June 16, 2023 Popular Post Posted June 16, 2023 27 minutes ago, OneMoreFarang said: Only because you don't understand it doesn't mean that there are no reasons. It is always amazing in this forum when someone asks a simple question and then some people make it complicated because they don't understand it. I won't tell you all the details why I want what I want. It doesn't matter. And if you don't understand it and have nothing to contribute then just skip this topic. That is best for all of us. I have as much right to ask questions as anyone else and it was a legitimate question. I also wrote that you no doubt had your reasons for wanting to know if the internet was working or not when you aren't there, and that it was not my business to know why that is. I didn't suggest there were no reasons. In fact, I wrote the exact opposite. 2 2 1
RayWright Posted June 16, 2023 Posted June 16, 2023 6 hours ago, OneMoreFarang said: In the moment I don't have any PC on that network, and I don't want to install a PC just for running such monitoring software. Not an issue. You can run Client based PRTG externally or Cloud version and interrogate the remote site's router. Does assume static IP Address. As opposed to using a Pi, I've used second-hand mini PC's, as minimal footprint, LAN connected to router if on a floating IP address. In fact up in Bangkok next week so was going to take a look at Fortune Town as after one myself. Should be, or was the equivalent of THB 4,500. (Based on previous experience in UK & Singapore).
ballpoint Posted June 16, 2023 Posted June 16, 2023 Thinking outside the box; connect a webcam to the router and point it at it. If it's working you'll be able to see the lights flashing. If it's not, then you won't see anything because the camera will be offline. In addition, many of these camera apps allow you to set it so it sends an alarm when the camera does go offline, so you'll know right away. 1 1
JBChiangRai Posted June 16, 2023 Posted June 16, 2023 Anybody have a cheaper solution than my 206 baht Sonoff Basic IoT switch?
OneMoreFarang Posted June 16, 2023 Author Posted June 16, 2023 2 hours ago, JBChiangRai said: Anybody have a cheaper solution than my 206 baht Sonoff Basic IoT switch? An ESP32 with that firmware should be even cheaper ???? I like your idea and if nobody has any better idea then likely I will use the Sonoffs. Let's wait a day or two more for good ideas.
MJCM Posted June 16, 2023 Posted June 16, 2023 I assume you have a Router there. Why not SSH into the Router, create a Ping / Email Bash Script and schedule that via Cron. This will work only of course if you can get SSH access. This solution will not cost you anything as you already have the router
h90 Posted June 16, 2023 Posted June 16, 2023 7 hours ago, OneMoreFarang said: Thanks The last Raspberry Pi which I bought was less than 3,000B. Now it seems they cost at least 3 times as much... I have an Orange Pi...they are cheaper and good devices....but software is not as well supported
JBChiangRai Posted June 16, 2023 Posted June 16, 2023 20 minutes ago, OneMoreFarang said: An ESP32 with that firmware should be even cheaper ???? Don't you need a server too? The Sonoff device is pinged regularly by their server and that initiates the push message to your phone. 1
NotJoeMama Posted June 16, 2023 Posted June 16, 2023 7 hours ago, JBChiangRai said: Buy a 200 baht Sonoff switch on Lazada, and turn on OFFLINE ALERT and the eWeLink app on your phone to control it will receive a PUSH message when the device goes offlne or comes online, ie power or internet failure. This is a great idea and even better is they have an LED on them that blinks when the internet is down. Plug it in somewhere you can see it and you'll know the internet is down. You will have to connect it wirelessly to the internet where you are but once connected (easy to do) you'll know. You will have to buy/make a short power cord for it. You do not need an output device for it to work. https://www.lazada.co.th/products/wifi-sonoff-i291272269-s483786280.html?c=&channelLpJumpArgs=&clickTrackInfo=query%3Asonoff%3Bnid%3A291272269%3Bsrc%3ALazadaMainSrp%3Brn%3Ab2cde86d5cc10ac6e7aa61577a9e7f36%3Bregion%3Ath%3Bsku%3A291272269_TH%3Bprice%3A142%3Bclient%3Adesktop%3Bsupplier_id%3A100100969%3Bpromotion_biz%3A%3Basc_category_id%3A12090%3Bitem_id%3A291272269%3Bsku_id%3A483786280%3Bshop_id%3A130677&fastshipping=0&freeshipping=0&fs_ab=2&fuse_fs=1&lang=en&location=Bangkok&price=142&priceCompare=&ratingscore=4.746212121212121&request_id=b2cde86d5cc10ac6e7aa61577a9e7f36&review=264&sale=2703&search=1&source=search&spm=a2o4m.searchlist.list.i40.5b915199bAnCuB&stock=1
MJCM Posted June 16, 2023 Posted June 16, 2023 16 minutes ago, JBChiangRai said: Don't you need a server too? AFAIK you can run Python scripts on the ESP32 and as it has WiFi capabilities you can send thus things over the internet so it can be used standalone. But I am not 100% sure Edit: You can even run a simple Webserver on it https://electropeak.com/learn/create-a-web-server-w-esp32/
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now