Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggest new link in EarthQuake #3

Open
Nico54g opened this issue Jan 12, 2025 · 1 comment
Open

Suggest new link in EarthQuake #3

Nico54g opened this issue Jan 12, 2025 · 1 comment

Comments

@Nico54g
Copy link

Nico54g commented Jan 12, 2025

I propose new change in file script_time_earthquake.lua to add a direct link to the site https://www.seismicportal.eu/

local q=json.decode(response)
local qMag = tonumber(q.features[1].properties.mag)
local qRegion = tostring(q.features[1].properties.flynn_region)
local qTimeString = tostring(q.features[1].properties.time)
local qLat = tonumber(q.features[1].properties.lat)
local qLon = tonumber(q.features[1].properties.lon)
local qDepth = tonumber(q.features[1].properties.depth)
local qUnid = tostring(q.features[1].properties.unid)
...

...
--Set and format the new alertText
local alertText = tostring( atLocalTime .. ' ' .. address .. '\n' .. 'Mag: ' .. qMag .. '. Depth:' .. qDepth .. 'km Distance: ' .. distance ..'km. Map Detail')

@CreasolTech
Copy link
Owner

Thanks Nico, your modification has been committed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants