Page 1 of 1

Earthquake lua script alert + telegram notification

Posted: Monday 20 May 2024 8:10
by psubiaco
earthquake_20240520.png
earthquake_20240520.png (11.65 KiB) Viewed 904 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 898 times