poblabs / weewx-belchertown

A clean and modern weewx skin with real time streaming updates, forecast data and interactive charts. View it in action at BelchertownWeather.com
https://belchertownweather.com
GNU General Public License v3.0
207 stars 111 forks source link

Earthquakes using ReNaSS #656

Closed swfrx closed 3 years ago

swfrx commented 3 years ago

Although the documentation suggests those of us in Europe can use ReNaSS as the earthquake server, the code doesn't exist at present - there is just the code for USGS and GeoNet.

WeeWX is v4.4.0, skin is v1.2.

https://muchty-weather.org.uk/weather/belchertown/about/

            if self.generator.skin_dict['Extras']['earthquake_server'] == "USGS":
                earthquake_url = "http://earthquake.usgs.gov/fdsnws/event/1/query?limit=1&lat=%s&lon=%s&maxradiuskm=%s&format=geojson&nodata=204&minmag=2" % ( latitude, longitude, earthquake_maxradiuskm )
            elif self.generator.skin_dict['Extras']['earthquake_server'] == "GeoNet":
                earthquake_url = "https://api.geonet.org.nz/quake?MMI=4"
            earthquake_is_stale = False

Please don't delete these questions! They are asked almost with every issue - answering them as below saves us time from asking them!

First step Try to debug the skin yourself. If you can't figure it out, please include the debug information (text, screenshots, etc.). See this guide on debugging the skin. https://github.com/poblabs/weewx-belchertown#how-to-use-debug

Describe the bug A clear and concise description of what the bug is.

Link to your website (IMPORTANT)

Version of the skin you're using

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Device Information (please complete the following information):

Additional context Add any other context about the problem here. Maybe a potential fix?

HELP WANTED If you have a fix for this, please submit a pull request against the development branch!

steepleian commented 3 years ago

Hi, I am also UK based. I am using this service on the skin I maintain: -

https://www.emsc-csem.org/service/rss/rss.php?typ=emsc

You can see it working at https://claydonsweather.org.uk

There are popup links at the base of all the dashboard modules, the earthquake module is bottom right. I have users on all continents and it works in all locations from the feedback I get. Should be easy to incorporate in the Belchertown skin as well.

Ian

On Sat, 27 Mar 2021 at 12:16, sally-woolrich @.***> wrote:

Although the documentation suggests those of us in Europe can use ReNaSS as the earthquake server, the code doesn't exist at present - there is just the code for USGS and GeoNet.

WeeWX is v4.4.0, skin is v1.2.

https://muchty-weather.org.uk/weather/belchertown/about/

        if self.generator.skin_dict['Extras']['earthquake_server'] == "USGS":
            earthquake_url = "http://earthquake.usgs.gov/fdsnws/event/1/query?limit=1&lat=%s&lon=%s&maxradiuskm=%s&format=geojson&nodata=204&minmag=2" % ( latitude, longitude, earthquake_maxradiuskm )
        elif self.generator.skin_dict['Extras']['earthquake_server'] == "GeoNet":
            earthquake_url = "https://api.geonet.org.nz/quake?MMI=4"
        earthquake_is_stale = False

Please don't delete these questions! They are asked almost with every issue - answering them as below saves us time from asking them!

First step Try to debug the skin yourself. If you can't figure it out, please include the debug information (text, screenshots, etc.). See this guide on debugging the skin. https://github.com/poblabs/weewx-belchertown#how-to-use-debug

Describe the bug A clear and concise description of what the bug is.

Link to your website (IMPORTANT)

Version of the skin you're using

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Device Information (please complete the following information):

  • Device: [e.g. desktop, iPhone6]
  • OS: [e.g. Windows, Android, iOS]
  • Browser [e.g. Chrome, Safari]
  • Version [e.g. 22]

Additional context Add any other context about the problem here. Maybe a potential fix?

HELP WANTED If you have a fix for this, please submit a pull request against the development branch!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/poblabs/weewx-belchertown/issues/656, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEMVT7WCD5PVMJCHJWLK33LTFXEBHANCNFSM4Z43OWZA .

ddperso commented 3 years ago

Included in last release v1.2b2

norecords commented 3 years ago

@sally-woolrich you have to use the latest dev: https://github.com/poblabs/weewx-belchertown#how-to-install-the-development-version or you can manually add this PR https://github.com/poblabs/weewx-belchertown/pull/568/files followed by this one https://github.com/poblabs/weewx-belchertown/pull/602/files to your setup.

swfrx commented 3 years ago

That's working fine now, thanks.

norecords commented 3 years ago

Good to know, thanks.