Earthquake lua script alert + telegram notification

In this subforum you can show projects you have made, or you are busy with. Please create your own topic.

Moderator: leecollings

Post Reply
User avatar
psubiaco
Posts: 194
Joined: Monday 20 August 2018 9:38
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Italy
Contact:

Earthquake lua script alert + telegram notification

Post by psubiaco »

earthquake_20240520.png
earthquake_20240520.png (11.65 KiB) Viewed 901 times
Below you can find the link to a lua scripts that gets earthquake info from seismicportal.eu and update a domoticz alert device with such info.
Of course it's possible to set the location coordinates and restrict the radius to N km, to avoid showing earthquakes in distant areas.
Also, it's possible to set a minimum magnitude for alert display and also for telegram notification: in case of strong earthquake the script sends an alert also to a telegram channel or group on your family smartphones.
The script script_time_earthquake.lua is available in https://github.com/CreasolTech/domoticz_lua_scripts and is based on the dzVents script by the user mojso ( https://www.domoticz.com/forum/viewtopic.php?t=41380 )
You have also to download globalvariables.lua and globalfunctions.lua, where I collect general information and functions common for every script.
earthquake_20240520b.png
earthquake_20240520b.png (12.05 KiB) Viewed 895 times
Paolo
--
I use DomBus modules to charge EV car, get a full alarm system, control heat pump, fire alarm detection, lights and much more. Video
Facebook page - Youtube channel
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest