Home

geo.inge.org.uk / GC Flood Alerts

GC Flood Alerts

GC Flood Alerts is a Greasemonkey script that shows flood warning information on the maps page on Geocaching.com. It inserts an icon at the top right of the map which allows you to turn alerts on and off.

The script uses data from the Environment Agency's Live Flood Warning Map and plots it on the geocaching map. Clicking on the flood symbols will show you the description of each warning. The title of each alert links through to the Environment Agency website so you can check you have the latest information.

Warning

Floods can be very dangerous. These alerts can only be a guideline to conditions on the ground, which may change very quickly. Use common sense when visiting any area liable to flooding, and follow advice from the Environment Agency and local authorities. For more information about flooding, see the Gov.UK Flooding and Extreme Weather website.

The script requests new data every 15 minutes, and shows you when the data source was last updated by a timestamp in the bottom-right of the screen. Although the data set is also normally updated every 15 minutes, individual alerts are updated much less often. The description of each alert will tell you roughly how long ago it was updated at the point the data set was regenerated.

NB This script only works if you are using Leaflet Maps. You can select Leaflet Maps using the "Set Map Preferences" button at the bottom of the sidebar on the left of the Geocaching Maps.

© 2014-15 James Inge
Home

geo.inge.org.uk / GC Flood Alerts

Installation Instructions

GC Flood Alerts can be installed from the button at the top of this page.

NB you shouldn't notice anything different after installation until you visit geocaching.com/map. If you already have Geocaching.com open in your browser, you will need to refresh the page for the script to take effect. If you are a Premium Member, you will also need to choose to use the Leaflet Maps API rather than Google Maps.

Firefox

Install the Greasemonkey addon first (if you haven't already got it), then click the 'Install' button at the top right of the page. Wait for the Greasemonkey installation dialog, then click its 'Install' button to complete the process.

Chrome and Opera

If you have a userscript manager like Tampermonkey installed, you can just click on the green install button at the top-right of the page. Otherwise, thanks to security restrictions, you can only install the script temporarily. To do this, right-click on the button, save the script somewhere, then drag-n-drop it onto the browser's extensions page.

Opera Classic

These instructions are for old-style Opera (up to v12). Later versions are based on Chromium (like Google Chrome) and work differently. If you haven't already, you need to configure a User Javascript folder. In Opera, go to Settings > Preferences > Advanced > Content > JavaScript options, then select a suitable folder. Then, right-click on the green Install button at the top right of the page, select 'Save linked content as...' and save the script into the folder you just selected.

Opera Classic Mobile

Navigate to the User Prefs section of opera:config, then tick "Always Load User JavaScript" and "User JavaScript". Enter the path to a folder (not a file) in the "User JavaScript File" field (I use /sdcard/userscripts/, then hit the Save button at the bottom of the page to store the settings. Create the folder, if it doesn't already exist, then save a copy of the script in that folder.

Other browsers

This script may well work on other browsers that have userscript support, either built-in or through add-ons. If you get it working on another browser, please send me installation instructions!

Remember that if you are a Premium Member, you will need to select Leaflet Maps before GME will work (use the Set Map Preferences button at the bottom of the pop-out panel on the left of the Geocaching Maps screen).

© 2014-15 James Inge
Home

geo.inge.org.uk / GC Flood Alerts

Changelog

v0.1.1

  • * Fixed to work with HTTPS connections.

v0.1.0

  • + Initial version.
© 2014-15 James Inge
Home

geo.inge.org.uk / GC Flood Alerts

© 2014-15 James Inge