diff options
author | makefu <github@syntax-fehler.de> | 2017-09-19 15:25:27 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2017-09-19 15:25:27 +0200 |
commit | 4565bb4dd8b821bb1c9d7fbd1797f233375dda03 (patch) | |
tree | bfee5e5b4496ce1275e8eb465433a40a141ccb5e /europastats/weather.py | |
parent | 95c63f06bf364f3b62fa0a99297c2000db61c81f (diff) |
fix europastats
Diffstat (limited to 'europastats/weather.py')
-rw-r--r-- | europastats/weather.py | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/europastats/weather.py b/europastats/weather.py index db0879c..3395e4e 100644 --- a/europastats/weather.py +++ b/europastats/weather.py @@ -1,5 +1,16 @@ #!/usr/bin/env python """ + tags fields: + name + type + offset + metrics: + perspiration + maxTemp + ... + unused: + _ts + """ from datetime import datetime as dt from europastats.attractions import get_db, get_live @@ -23,10 +34,10 @@ def get_data(mock=False): offset = 0 for v in resp: data = { - "_id": "europapark-weather-{}".format(offset), "_name": "Europapark Wetter {}".format(off[offset]), + "offset": offset, "_ts": now.isoformat(timespec="seconds") + "Z", - "_db": "weather" + "type": "weather" } data.update(v) yield data |