This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io, re, requests, sys, time, zipfile | |
def get_device(token): | |
r = get("/api/v1/user/get", token) | |
device = r.json()["user"]["devices"] | |
print("Device: " + device, file = sys.stderr) | |
return device | |
def list_presences(token, device): | |
r = get("/api/v1/presence/{0}/latest".format(device), token) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Kalkati to GTFS converter | |
Beware: it simplifies some things. | |
(c) 2011 Stefan Wehrmeyer http://stefanwehrmeyer.com | |
License: MIT License | |
""" | |
from datetime import date, timedelta |