Fix pulse output

This commit is contained in:
Simon 2017-03-31 21:30:26 +02:00
parent 605b8c2c4a
commit 67ce0f4352
1 changed files with 26 additions and 26 deletions

View File

@ -346,10 +346,10 @@ 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:
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)
self._log.info(self.name + " sending: " + post_url_pulse + " pulse: " + 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