Skip to content

Latest commit

 

History

History
53 lines (31 loc) · 1.92 KB

notes.md

File metadata and controls

53 lines (31 loc) · 1.92 KB

Notes to Self

Manual build and upload

cd ~/GitHub/weather-au
pytest
python3 setup.py sdist bdist_wheel
python3 -m twine upload dist/*

twine will ask for the PyPi username and password.

Test on repl.it

https://repl.it/@tony_allan/weather-au

BOM UV Info

UV Index previously called UV Alert.

Ultraviolet (UV) Index Data Services About UV and sun protection times Average solar ultraviolet (UV) Index

Testing

The following code is added to example to ease local testing:

import os, sys
sys.path.append(os.path.abspath('.'))

To run the tests, cd to the weater-au folder and run:

pytest

Weather Radar

There are two versions of the weather radar, one associated with the old website, which for each location, is a background, location and range image and six timestamped overlay images with the data.

With a bit of effort a composite image could be created.

The new website uses an arcgis tile server with background and overlay tiles.

This format is more complex with no obvious data source to marry the tiles together. If you change the radar on the webpage then additional images are fetched but no new data which implies that the needed tiles are calculated by the javascript on the page.