Latest working

This commit is contained in:
Simon 2017-03-31 22:19:02 +02:00
parent a4647dc018
commit 2b5625d24b
1 changed files with 5 additions and 4 deletions

View File

@ -346,10 +346,11 @@ class EmonHubDomoticzReporter(EmonHubReporter):
self._log.info(self.name + " sending: " + post_url_temp)
reply = self._send_post(post_url_temp, post_body, post_header)
if domoPulse > 100:
self._log.debug(self.name + " Pulse: " + str(pulse))
if pulse > 100:
domoPulse = '/json.htm?type=command&param=udevice&idx=54&svalue=%s' %(pulse)
post_url_pulse = self._settings['url'] + domoPulse + domoAddParam
self._log.info(self.name + " sending: " + post_url_pulse + " pulse: " + pulse)
self._log.info(self.name + " sending: " + post_url_pulse + " pulse: " + str(pulse))
# The Develop branch of emoncms allows for the sending of the apikey in the post
# body, this should be moved from the url to the body as soon as this is widely
@ -357,11 +358,11 @@ class EmonHubDomoticzReporter(EmonHubReporter):
reply = self._send_post(post_url_pulse, post_body, post_header)
status = True
status = True
self._log.debug(self.name + " Next return" )
if status:
return True
return True
self._log.debug(self.name + " After return" )
"""class EmonHubEmoncmsReporter