Mercurial > code > home > repos > homeauto
changeset 894:3ad6b7bcdaff
shuttlepro: some old changes
Ignore-this: 980a9ffa0b084bd46db880b4b3621a02
darcs-hash:20130802150605-312f9-c293c465516f42c8397aad7f48c228526cf46295
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Fri, 02 Aug 2013 08:06:05 -0700 |
parents | bcd2d597c8e8 |
children | 84d415fd454e |
files | service/shuttlepro/shuttlepro.py |
diffstat | 1 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/service/shuttlepro/shuttlepro.py Fri Aug 02 08:04:20 2013 -0700 +++ b/service/shuttlepro/shuttlepro.py Fri Aug 02 08:06:05 2013 -0700 @@ -352,9 +352,16 @@ return event +import restkit +reasoning = restkit.Resource("http://bang:9071/", timeout=1) + +from rdflib import Namespace +SHUTTLEPRO = Namespace("http://projects.bigasterisk.com/room/livingRoom/shuttlepro/") +ROOM = Namespace("http://projects.bigasterisk.com/room/") + if __name__ == '__main__': - import restkit - mpd = restkit.Resource("http://bang:9009/") + import restkit, urllib + mpd = restkit.Resource("http://slash:9009/") def ev(what): print 'ev', what if 'key' in what and what['press']: