Commit c0c13a98 authored by chrissi^'s avatar chrissi^

Change default url

Signed-off-by: chrissi^'s avatarChris Fiege <chris@tinyhost.de>
parent 9031712e
......@@ -6,7 +6,7 @@ import json
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
src = "https://tinyhost.de/cgi/wetterbs.py"
src = "http://graph.tinyhost.de/cgi/baerparser.py"
try:
weather = json.loads(requests.get(src, verify=False).text)
......@@ -14,7 +14,7 @@ try:
if weather["percipitation_rate"]["value"] > 0:
flags += u" 🌧"
print u"{}°C, {}%rH, {}{}{}".format(weather["t_curr"]["value"], weather["h_curr"]["value"], weather["air_pressure_change_3h"]["value"], weather["air_pressure_change_3h"]["unit"], flags).encode('utf-8')
print u"{}°C, {}%rH {}".format(weather["t_curr"]["value"], weather["h_curr"]["value"], flags).encode('utf-8')
except requests.exceptions.SSLError:
print "SSLError!"
except requests.exceptions.ConnectionError:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment