mirror of
https://github.com/bricebou/weewx-netatmo.git
synced 2025-01-18 12:01:11 +01:00
fixed urf8 typo
This commit is contained in:
parent
56b360f768
commit
d16d4edf88
3 changed files with 6 additions and 3 deletions
|
@ -42,7 +42,7 @@ import weewx.units
|
|||
import weewx.wxformulas
|
||||
|
||||
DRIVER_NAME = 'netatmo'
|
||||
DRIVER_VERSION = "0.8"
|
||||
DRIVER_VERSION = "0.9"
|
||||
|
||||
INHG_PER_MBAR = 0.0295299830714
|
||||
MPH_TO_KPH = 1.60934
|
||||
|
@ -522,7 +522,7 @@ class CloudClient(Collector):
|
|||
url = CloudClient.NETATMO_URL + url
|
||||
params = urlencode(params)
|
||||
headers = {
|
||||
"Content-Type": "application/x-www-form-urlencoded;charset=urf-8"}
|
||||
"Content-Type": "application/x-www-form-urlencoded;charset=utf-8"}
|
||||
logdbg("url: %s data: %s hdr: %s" % (url, params, headers))
|
||||
req = urllib2.Request(url=url, data=params, headers=headers)
|
||||
resp = urllib2.urlopen(req).read(65535)
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
0.9 28mar2017
|
||||
* fixed urf-8 typo
|
||||
|
||||
0.8 22jan2017
|
||||
* user-specified map augments the default instead of replacing it
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ def loader():
|
|||
class NetatmoInstaller(ExtensionInstaller):
|
||||
def __init__(self):
|
||||
super(NetatmoInstaller, self).__init__(
|
||||
version="0.8",
|
||||
version="0.9",
|
||||
name='netatmo',
|
||||
description='Driver for netatmo weather stations.',
|
||||
author="Matthew Wall",
|
||||
|
|
Loading…
Reference in a new issue