Mercurial > code > home > repos > homeauto
diff service/piNode/devices.py @ 1048:f3c7f617c335
piNode poll switches much faster. mirror the logic in arduinoNode though vari-rate poll is not supported yet
Ignore-this: 4ef38c7a2ed35f77035209bffeffc245
darcs-hash:a7ca5ba671d2919a5de413acc1ca8b8bf1eea31b
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Tue, 02 Feb 2016 22:37:11 -0800 |
parents | ffe6a00c6cef |
children | f4e762943c11 |
line wrap: on
line diff
--- a/service/piNode/devices.py Tue Feb 02 01:52:29 2016 -0800 +++ b/service/piNode/devices.py Tue Feb 02 22:37:11 2016 -0800 @@ -1,7 +1,7 @@ from __future__ import division import time, logging, os -from rdflib import Namespace, RDF, URIRef, Literal +from rdflib import Namespace, URIRef, Literal try: import pigpio @@ -329,6 +329,7 @@ @register class OnboardTemperature(DeviceType): deviceType = ROOM['OnboardTemperature'] + pollPeriod = 10 @classmethod def findInstances(cls, graph, board, pi): for row in graph.query('''SELECT DISTINCT ?uri WHERE {