Skip to content

Commit

Permalink
Change service config defaults from unknown to ''
Browse files Browse the repository at this point in the history
Signed-off-by: Jim Easterbrook <jim@jim-easterbrook.me.uk>
  • Loading branch information
jim-easterbrook committed Aug 24, 2018
1 parent 82498d3 commit 7049972
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions src/pywws/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = '18.8.0'
_release = '1592'
_commit = '15bd4d0'
_release = '1593'
_commit = '82498d3'
6 changes: 3 additions & 3 deletions src/pywws/service/cwop.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,13 @@ def __init__(self, context):
# get configurable "fixed data"
self.fixed_data.update({
'designator': context.params.get(
service_name, 'designator', 'unknown'),
service_name, 'designator', ''),
'passcode': context.params.get(
service_name, 'passcode', '-1'),
'latitude': context.params.get(
service_name, 'latitude', 'unknown'),
service_name, 'latitude', ''),
'longitude': context.params.get(
service_name, 'longitude', 'unknown'),
service_name, 'longitude', ''),
})
# set server
self.params = {}
Expand Down
4 changes: 2 additions & 2 deletions src/pywws/service/metoffice.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ def __init__(self, context):
# get configurable "fixed data"
self.fixed_data.update({
'siteid' : context.params.get(
service_name, 'site id', 'unknown'),
service_name, 'site id', ''),
'siteAuthenticationKey': context.params.get(
service_name, 'aws pin', 'unknown'),
service_name, 'aws pin', ''),
})
# base class init
super(ToService, self).__init__(context)
Expand Down
4 changes: 2 additions & 2 deletions src/pywws/service/pwsweather.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ def __init__(self, context):
"""
# get configurable "fixed data"
self.fixed_data.update({
'ID' : context.params.get(service_name, 'station', 'unknown'),
'PASSWORD': context.params.get(service_name, 'password', 'unknown'),
'ID' : context.params.get(service_name, 'station', ''),
'PASSWORD': context.params.get(service_name, 'password', ''),
})
# base class init
super(ToService, self).__init__(context)
Expand Down
2 changes: 1 addition & 1 deletion src/pywws/service/temperaturnu.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class ToService(pywws.service.LiveDataService):
def __init__(self, context):
# get configurable "fixed data"
self.fixed_data.update({
'hash': context.params.get(service_name, 'hash', 'unknown'),
'hash': context.params.get(service_name, 'hash', ''),
})
# base class init
super(ToService, self).__init__(context)
Expand Down
4 changes: 2 additions & 2 deletions src/pywws/service/underground.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ def __init__(self, context):
"""
# get configurable "fixed data"
self.fixed_data.update({
'ID' : context.params.get(service_name, 'station', 'unknown'),
'PASSWORD': context.params.get(service_name, 'password', 'unknown'),
'ID' : context.params.get(service_name, 'station', ''),
'PASSWORD': context.params.get(service_name, 'password', ''),
})
# base class init
super(ToService, self).__init__(context)
Expand Down
4 changes: 2 additions & 2 deletions src/pywws/service/wetterarchivde.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ def __init__(self, context):
self.template += """#uv "'uv': '%d',"#"""
# get configurable "fixed data"
self.fixed_data.update({
'id' : context.params.get(service_name, 'user_id', 'unknown'),
'pwd': context.params.get(service_name, 'kennwort', 'unknown'),
'id' : context.params.get(service_name, 'user_id', ''),
'pwd': context.params.get(service_name, 'kennwort', ''),
})
# base class init
super(ToService, self).__init__(context)
Expand Down

0 comments on commit 7049972

Please sign in to comment.