diff options
author | Ebus-at-dockstar <ebus@dockstar> | 2013-04-21 16:11:22 +0200 |
---|---|---|
committer | Ebus-at-dockstar <ebus@dockstar> | 2013-04-21 16:11:22 +0200 |
commit | d72ec8109e8b680a356e6dd464274e35a35a014d (patch) | |
tree | 917c64b50ce7cce3dc0233eaaf5de48f885f3e97 /datasources/de_wettermichel.py | |
parent | 550c880bc25a486df89a29e4d521e90dd8407798 (diff) | |
download | ebus-alt-d72ec8109e8b680a356e6dd464274e35a35a014d.tar.gz ebus-alt-d72ec8109e8b680a356e6dd464274e35a35a014d.zip |
wettermichel api anpassung
Diffstat (limited to 'datasources/de_wettermichel.py')
-rwxr-xr-x | datasources/de_wettermichel.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/datasources/de_wettermichel.py b/datasources/de_wettermichel.py index cf6a507..fb17210 100755 --- a/datasources/de_wettermichel.py +++ b/datasources/de_wettermichel.py @@ -15,10 +15,8 @@ def read(): return xml def insert(name, value, valueType): - conn = httplib.HTTPConnection("127.0.0.1:8000") - conn.request("PUT", - "/sensor/{n}".format(n=name), - "value={v}&type={t}".format(v=value, t=valueType)) + conn = httplib.HTTPConnection("127.0.0.1:8080") + conn.request("PUT", "/api/value/{n}".format(n=name), value) response = conn.getresponse() assert response.status == 200, "put status code == 200" conn.close() |