Skip to content

Commit ee18afe

Browse files
committedApr 13, 2018
Created sample format for a JSON city file
Translated settings for Boulder into external JSON format. Next step will be to read these settings in the Python script using the json package. PS Also snuck in a .gitignore to handle vim swap files
1 parent 9c6e767 commit ee18afe

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed
 

‎.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Don't bother with vim swp files
2+
*.swp

‎cities/boulder.json

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{ "city": {
2+
"name": "Boulder",
3+
"state": "CO",
4+
"high": {
5+
"avg": 18.5,
6+
"std": 4.5
7+
},
8+
"low": {
9+
"avg": 3.3,
10+
"std": 4.5
11+
},
12+
"precip": {
13+
"avg": 525.0 / 65,
14+
"std": 10,
15+
"chc": 65.0 / 365
16+
}
17+
}}

0 commit comments

Comments
 (0)