Skip to content

Commit

Permalink
Merge pull request #51 from LeePorte/fix-env-var
Browse files Browse the repository at this point in the history
Update timeOffset key
  • Loading branch information
chrisys committed Dec 8, 2021
2 parents 7d9d6ea + 4a0761f commit 08a6f0f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file
automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
This project adheres to [Semantic Versioning](http://semver.org/).


# v0.1.2
## (2021-12-08)

* Update timeOffset key [Lee Porte]

# v0.1.1
## (2021-10-29)

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.1
0.1.2
2 changes: 1 addition & 1 deletion balena.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ data:
- apiKey: UPDATE_ME
- operatingHours: 8-22
- screenBlankHours: 1-6
version: 0.1.1
version: 0.1.2
2 changes: 1 addition & 1 deletion src/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def loadConfig():
data["journey"]["outOfHoursName"] = os.getenv("outOfHoursName") or "London Paddington"
data["journey"]["departurePlatform"] = os.getenv("departurePlatform") or None
data["journey"]["stationAbbr"] = { "International": "Intl." }
data["journey"]['timeOffset'] = os.getenv("screenRotation") or "0"
data["journey"]['timeOffset'] = os.getenv("timeOffset") or "0"

data["api"]["apiKey"] = os.getenv("apiKey") or None
data["api"]["operatingHours"] = os.getenv("operatingHours") or "8-22"
Expand Down

0 comments on commit 08a6f0f

Please sign in to comment.