-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move weather.ini auto updates to pywws.storage
Also added a version number to the weather.ini file so the updates are only tried once. Signed-off-by: Jim Easterbrook <jim@jim-easterbrook.me.uk>
- Loading branch information
1 parent
90907f6
commit 9668be3
Showing
4 changed files
with
67 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
__version__ = '18.8.0' | ||
_release = '1605' | ||
_commit = '71125a9' | ||
_release = '1606' | ||
_commit = '90907f6' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9668be3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dear Jim,
Would it be better to put the software version flag in the status.ini file rather than the weather.ini file? My rationale is that the weather.ini file is user editable and flag might be accidentally deleted / corrupted, whereas the status.ini file is rarely opened / edited by the user.
Kind Regards
Richard
9668be3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My reasoning is that the version is the weather.ini file version, so if an old one was recovered from backup the auto edits would be done again. I'm also likely to tell people to delete their status.ini as a cure for some problems.
9668be3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, that sounds very reasonable.
9668be3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm now veering towards removing the use of a version number, and back to inferring the need for conversion from what's in the file. The version number stuff is just too flaky.