Experiment to create a Chrome Extension. This extension reads the JWT from local storage on https://dashboard.hammerhead.io and uses it to add watertaps to an existing route.
- Node.js and npm installed on your system
- Google Chrome browser
-
Clone or download this repository
-
Install dependencies:
npm install
-
Build the extension:
npm run build
This will create a dist folder with the compiled extension files.
https://developer.chrome.com/docs/extensions/get-started/tutorial/hello-world#load-unpacked
- Open Google Chrome
- Navigate to
chrome://extensions/ - Enable "Developer mode" by toggling the switch in the top-right corner
- Click "Load unpacked" button
- Select the
distfolder that was created during the build process - The extension should now appear in your extensions list and be ready to use
- Navigate to https://dashboard.hammerhead.io and open a route
- Click the watertap extension icon in your Chrome toolbar
- The extension will automatically add nearby public watertaps to your route
- This extension only works with existing routes (not new/unsaved routes)
- Only works for routes in the Netherlands
- Uses public watertap data from drinkwaterkaart.nl via Nationaal Georegister