changeset 1442:759841548982

more piNode wip. treq etc Ignore-this: 153da9ea2f0e0cf56ec2ccb0c5dd5c5 darcs-hash:9620c5455a5c3e3ca98a525028205d295b1dee44
author drewp <drewp@bigasterisk.com>
date Mon, 12 Aug 2019 10:14:45 -0700
parents 94bb8408e6ed
children 99540f1a11f7
files service/piNode/piNode.py
diffstat 1 files changed, 0 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/service/piNode/piNode.py	Mon Aug 12 10:08:23 2019 -0700
+++ b/service/piNode/piNode.py	Mon Aug 12 10:14:45 2019 -0700
@@ -1,6 +1,5 @@
 import logging, socket, json, time, pkg_resources
 import cyclone.web
-from cyclone.httpclient import fetch
 from rdflib import Namespace, URIRef, Literal, Graph, RDF, ConjunctiveGraph
 from rdflib.parser import StringInputSource
 from twisted.internet import reactor
@@ -48,19 +47,6 @@
                           scales.PmfStat('outputStatements'),
 
 )
-def patchRandid():
-    """
-    I'm concerned urandom is slow on raspberry pi, and I'm adding to
-    graphs a lot. Unclear what the ordered return values might do to
-    the balancing of the graph.
-    """
-    _id_serial = [1000]
-    def randid():
-        _id_serial[0] += 1
-        return _id_serial[0]
-    import rdflib.plugins.memory
-    rdflib.plugins.memory.randid = randid
-patchRandid()
 
 class Config(object):
     def __init__(self, masterGraph, hubHost):
@@ -122,7 +108,6 @@
 
         log.info("found config for board %r" % thisBoard)
         self.boards = [Board(self.configGraph, self.masterGraph, thisBoard, self.hubHost)]
-        self.boards[0].startPolling()
 
 
 class DeviceRunner(object):