diff service/wifi/wifi.py @ 1369:42f4fed9cd25

no more immediateUpdate since we push patch events now. and the code was broken for py3 anyway Ignore-this: 54edfd3885f749aa5ef3be2051c2f40f darcs-hash:0f1ccb011e9cf29bf9e2389de3833cbda3550631
author drewp <drewp@bigasterisk.com>
date Sun, 05 May 2019 17:09:12 -0700
parents b287950fbcf4
children 517cbb905d4c
line wrap: on
line diff
--- a/service/wifi/wifi.py	Fri May 03 18:54:42 2019 -0700
+++ b/service/wifi/wifi.py	Sun May 05 17:09:12 2019 -0700
@@ -33,7 +33,6 @@
 AST = Namespace("http://bigasterisk.com/")
 DEV = Namespace("http://projects.bigasterisk.com/device/")
 ROOM = Namespace("http://projects.bigasterisk.com/room/")
-reasoning = "http://bang:9071/"
 
 class Index(PrettyErrorHandler, cyclone.web.RequestHandler):
     def get(self):
@@ -135,16 +134,11 @@
 
         influx.write_points(points, time_precision='s')
         self.lastWithSignal = newWithSignal
-        if actions: # this doesn't currently include signal strength changes
-            fetch(reasoning + "immediateUpdate",
-                  method='PUT',
-                  timeout=2,
-                  headers={'user-agent': ['wifi']}).addErrback(log.warn)
         self.lastAddrs = newAddrs
         self.lastPollTime = now
 
         self.updateGraph(masterGraph)
-            
+
     def influxPoint(self, now, address, value):
         return {
             'measurement': 'presence',