From 7eec1c02331accff81106e7260deb8be59c72546 Mon Sep 17 00:00:00 2001 From: Erik Kluzek Date: Wed, 18 Apr 2018 10:20:43 -0600 Subject: [PATCH] Add Portland to city roster To add more cities as in #5. Adding Portland oregon. --- cities/portland.json | 17 +++++++++++++++++ wxgen.py | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 cities/portland.json diff --git a/cities/portland.json b/cities/portland.json new file mode 100644 index 0000000..efaa049 --- /dev/null +++ b/cities/portland.json @@ -0,0 +1,17 @@ +{ + "name": "Portland", + "state": "OR", + "high": { + "avg": 54.5, + "std": 4.5 + }, + "low": { + "avg": 3.3, + "std": 4.5 + }, + "precip": { + "yamt": 36.0, + "std": 10.0, + "days": 300.0 + } +} diff --git a/wxgen.py b/wxgen.py index 619d5a6..c26c884 100755 --- a/wxgen.py +++ b/wxgen.py @@ -13,7 +13,7 @@ from datetime import datetime # User settings -city_list = ["boulder","philadelphia"] +city_list = ["boulder","philadelphia","portland"] fcst_path = "forecasts/{}.txt" num_days = 7