A while back I wrote some nodejs that mish-moshed email and web 2.0 long-poll action into a very ugly, but fairly up-to-date showing of debian changes. That is over on my server here.
The code’s fairly simple, so I also wrote a python consumer here.
Since it’s so simple, I’ve pasted it below, too.
Feel free to use (but please not abuse) my server :)
#!/usr/bin/env python
import time
import urllib
import json
service = "http://pault.ag:8080/tail"
lastts = 0
def loop():
global lastts
while True:
f = urllib.urlopen("%s?since=%s" % (service, str(lastts)))
msgs = json.loads(f.read())
for x in msgs['messages']:
print x['text']
if lastts < x['timestamp']:
lastts = x['timestamp']
loop()
Design by Simon Fletcher. Powered by Tumblr.
© Copyright 2010