Mercurial > code > home > repos > homeauto
comparison service/tomatoWifi/tomatoWifi.py @ 1084:3a9f20f881d1
immediate mode needs a PUT request
Ignore-this: 48c3b5d2c25440a43000b53079d0bd68
darcs-hash:c3756f6387c72f4e3eb0615104fca885560e4d16
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Fri, 06 May 2016 17:32:18 -0700 |
parents | e7af84a10adc |
children | 68c2a5f1d563 |
comparison
equal
deleted
inserted
replaced
1083:c5b61f943061 | 1084:3a9f20f881d1 |
---|---|
173 log.error("entrancemusic error: %r", e) | 173 log.error("entrancemusic error: %r", e) |
174 | 174 |
175 self.lastWithSignal = newWithSignal | 175 self.lastWithSignal = newWithSignal |
176 if actions: # this doesn't currently include signal strength changes | 176 if actions: # this doesn't currently include signal strength changes |
177 fetch(reasoning + "immediateUpdate", | 177 fetch(reasoning + "immediateUpdate", |
178 method='PUT', | |
178 timeout=2, | 179 timeout=2, |
179 headers={'user-agent': ['tomatoWifi']}).addErrback(log.warn) | 180 headers={'user-agent': ['tomatoWifi']}).addErrback(log.warn) |
180 self.lastAddrs = newAddrs | 181 self.lastAddrs = newAddrs |
181 self.lastPollTime = time.time() | 182 self.lastPollTime = time.time() |
182 except Exception, e: | 183 except Exception, e: |