Page 2 of 2

Re: Python Plugin: Most recent Dutch earthquake

Posted: Monday 29 January 2018 20:12
by elmortero
blauwebuis wrote: Saturday 20 January 2018 14:28 Cool! Could there be a way for people in other countries to fill in their datasource?
Hi!
Not Python - I am not very good in that -, but with dzVents, I came up with this

The source I used has world-wide info and allows to use location limits.

Re: Python Plugin: Most recent Dutch earthquake

Posted: Monday 29 January 2018 23:17
by Xorfor
@elmortero,

Great job!

I also looked for other sources like the one you are using. But it looks like the other sources are only reporting 'real' (tectonic) earthquakes. Until now, for the Netherlands, the KNMI is the most accurate source.
Perhaps in the future I make a more global plugin.

Re: Python Plugin: Most recent Dutch earthquake

Posted: Monday 28 May 2018 9:30
by EdwinK
Lately I get numbers and double entries in the log.
Screen Shot 2018-05-28 at 09.28.49.png
Screen Shot 2018-05-28 at 09.28.49.png (127.36 KiB) Viewed 895 times
See attachment

Re: Python Plugin: Most recent Dutch earthquake

Posted: Saturday 18 August 2018 21:33
by quilae
Since I'm not into using Google Maps as source for maps I took the liberty to create a slightly modified version of the script.
It is really simple just change this line:

Code: Select all

txt = date + ": <a target='_blank' style='color: black;' href='https://www.google.com/maps/search/?api=1&query=" + lat + "+" + lon + "'>" + plaats + "</a><br/>" + \
into this:

Code: Select all

txt = date + ": <a target='_blank' style='color: black;' href='https://www.openstreetmap.org/?zoom=15&mlat=" + lat + "&mlon=" + lon + "'>" + plaats + "</a><br/>" + \
and you'll be able to show the location on the maps of www.openstreetmap.org.

Re: Python Plugin: Most recent Dutch earthquake

Posted: Sunday 19 August 2018 19:48
by Xorfor
@quilae
Thnx for your idea! I updated the plugin. It has now a parameter where you can select Google Maps or OpenStreetMap!