Mercurial > code > home > repos > homeauto
comparison service/piNode/piNode.py @ 382:61f1c529a9b7
etcd port change; pigpio download link change
Ignore-this: cf0ce00b51c41c7d897bf5dbefab7480
author | drewp@bigasterisk.com |
---|---|
date | Fri, 28 Dec 2018 01:56:52 -0800 |
parents | 88bd46f4e28c |
children | 0787cd64ecf8 |
comparison
equal
deleted
inserted
replaced
381:38a74c43639c | 382:61f1c529a9b7 |
---|---|
34 ROOM = Namespace('http://projects.bigasterisk.com/room/') | 34 ROOM = Namespace('http://projects.bigasterisk.com/room/') |
35 HOST = Namespace('http://bigasterisk.com/ruler/host/') | 35 HOST = Namespace('http://bigasterisk.com/ruler/host/') |
36 | 36 |
37 hostname = socket.gethostname() | 37 hostname = socket.gethostname() |
38 CTX = ROOM['pi/%s' % hostname] | 38 CTX = ROOM['pi/%s' % hostname] |
39 etcd = etcd3.client(host='bang6') | 39 etcd = etcd3.client(host='bang6', port=9022) |
40 | 40 |
41 def patchRandid(): | 41 def patchRandid(): |
42 """ | 42 """ |
43 I'm concerned urandom is slow on raspberry pi, and I'm adding to | 43 I'm concerned urandom is slow on raspberry pi, and I'm adding to |
44 graphs a lot. Unclear what the ordered return values might do to | 44 graphs a lot. Unclear what the ordered return values might do to |