Lastcall: Difference between revisions
m (→Environment and Hardware: pretty formatting) |
(updated the finished project (MWE)) |
||
Line 1: | Line 1: | ||
{{Project | {{Project | ||
|Name=lastcall | |Name=lastcall | ||
|Status= | |Status=Completed | ||
|Contact=User:qguv | |Contact=User:qguv | ||
}} | }} | ||
Tells you your last chance to get home via public transit. Currently a small | Tells you your last chance to get home via public transit. Currently a small website giving leaving/arrival time estimates from Google Maps Directions API, but will soon have a (much) nicer web interface (automatic updating/cycling and so). | ||
== Software == | == Software == | ||
~ | ~200 lines of Python running in a Docker container, see the [https://github.com/qguv/lastcall Github] and [https://hub.docker.com/r/qguv/lastcall/ Docker] pages. Probably should've used Haskell, but the Python library bindings were somewhat nicer (i.e. don't require globbing together URLs and parsing JSON). | ||
== Environment and Hardware == | == Environment and Hardware == | ||
lastcall | lastcall runs as a web service on shell.space.revspace.nl. It is controlled with systemd. | ||
<pre> | |||
ssh shell.space.revspace.nl | |||
sudo systemctl start/stop/enable/disable lastcall | |||
</pre> | |||
The systemd unit will pull the newest version from Docker hub (lags 15 or so minutes from Github pushes but builds much faster), so there's no need to upgrade/install on a network-connected server. :-) |
Revision as of 01:22, 2 October 2015
Project lastcall | |
---|---|
Status | Completed |
Contact | User:qguv |
Last Update | 2015-10-02 |
Tells you your last chance to get home via public transit. Currently a small website giving leaving/arrival time estimates from Google Maps Directions API, but will soon have a (much) nicer web interface (automatic updating/cycling and so).
Software
~200 lines of Python running in a Docker container, see the Github and Docker pages. Probably should've used Haskell, but the Python library bindings were somewhat nicer (i.e. don't require globbing together URLs and parsing JSON).
Environment and Hardware
lastcall runs as a web service on shell.space.revspace.nl. It is controlled with systemd.
ssh shell.space.revspace.nl sudo systemctl start/stop/enable/disable lastcall
The systemd unit will pull the newest version from Docker hub (lags 15 or so minutes from Github pushes but builds much faster), so there's no need to upgrade/install on a network-connected server. :-)