After getting disgruntled by the Android app "ScoutBadges" not working on my Android phone and lack of response from the author of the app I decide to write my own version of the app that works as a Progressive Web App (PWA). This should mean that it works offline and across anything that supports a modern browser.
You need to be online to gain access to the application but after that it will run offline as all the content should be cached.
When scouts.org.uk update the badge requirements the scraping code can be re-run to refresh the content. The new content then become accessible and will update the cache. Obviously to update the cache you need to be online.
The built app can be tried here: Scout Badge Requirements
The project is in two parts:
- ScrapeTheSite - scrapes scouts.org.uk to creates the resources needed for the PWA. This includes downloading the badge images and text.
- PWA - the app that will run on your phone/tablet.....
Download from Github. Run:
cd ScrapeTheApp
npm install
npm start
cd ../PWA
npm install
polymer serve --open
(this assumes you have npm and polymer-cli installed)
Deploy the contents of the build directory as required.
For more details about the Polymer-cli see https://www.polymer-project.org/
Suggestions welcome for additional features to add.