changeset 120:86e71857d99e

myw2: update radar URL; add flask_run_dev.sh
author paulo
date Sat, 16 Jan 2021 01:53:09 -0800
parents 0a20081612b9
children 26cc1a16e7a3
files myw2/flask_run_dev.sh myw2/myw_flask_app.py
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/myw2/flask_run_dev.sh	Sat Jan 16 01:53:09 2021 -0800
     1.3 @@ -0,0 +1,5 @@
     1.4 +#!/bin/sh
     1.5 +
     1.6 +export FLASK_APP=myw_flask_app.py
     1.7 +export FLASK_ENV=development
     1.8 +./bin/flask run
     2.1 --- a/myw2/myw_flask_app.py	Fri Sep 18 01:17:51 2020 -0700
     2.2 +++ b/myw2/myw_flask_app.py	Sat Jan 16 01:53:09 2021 -0800
     2.3 @@ -12,7 +12,8 @@
     2.4  REDIRECTS = collections.OrderedDict({
     2.5    "desktop": "http://forecast.weather.gov/MapClick.php?lat=37.63048605200049&lon=-122.41107706299971",
     2.6    "mobile": "http://mobile.weather.gov/index.php?lat=37.61961&lon=-122.36558",
     2.7 -  "radar": "https://radar.weather.gov/lite/N0R/MUX_loop.gif",
     2.8 +  #"radar": "https://radar.weather.gov/lite/N0R/MUX_loop.gif",
     2.9 +  "radar": "https://radar.weather.gov/?settings=v1_eyJhZ2VuZGEiOnsiaWQiOiJ3ZWF0aGVyIiwiY2VudGVyIjpbLTEyMi40MiwzNy43NzddLCJ6b29tIjo3LCJsb2NhdGlvbiI6Wy0xMjIuNDIsMzcuNzc3XX0sImJhc2UiOiJzdGFuZGFyZCIsImNvdW50eSI6ZmFsc2UsImN3YSI6ZmFsc2UsInN0YXRlIjpmYWxzZSwibWVudSI6dHJ1ZSwic2hvcnRGdXNlZE9ubHkiOmZhbHNlfQ%3D%3D#/",
    2.10    "hourly": "http://forecast.weather.gov/meteograms/Plotter.php?lat=37.6305&lon=-122.4111&wfo=MTR&zcode=CAZ508&gset=18&gdiff=3&unit=0&tinfo=PY8&ahour=0&pcmd=11011111111110000000000000000000000000000000000000000000000&lg=en&indu=1!1!1!&dd=&bw=&hrspan=48&pqpfhr=6&psnwhr=6",
    2.11    "goes": "https://www.star.nesdis.noaa.gov/GOES/sector.php?sat=G17&sector=psw",
    2.12  })