siclark wrote:Cheers. Will DM you.
import requests
url = 'http://192.168.0.221/ext_t?temp='+str(indigo.devices[69570206]. displayStateValRaw)
data = '''{
}'''
response = requests.post(url, data=data)
import requests
url = 'http://192.168.0.222/ext_t?temp='+str(indigo.devices[69570206]. displayStateValRaw)
response = requests.post(url)
url = 'http://192.168.0.222/ext_t?temp={}'.format(indigo.devices[69570206]. displayStateValRaw)
siclark wrote:Turns out simplifying to this works. Although open to neater suggestions.
- Code: Select all
import requests
url = 'http://192.168.0.222/ext_t?temp='+str(indigo.devices[69570206]. displayStateValRaw)
response = requests.post(url)
I am running as Embedded Python. Assume this is ok as very quick to run?
requests.post(url, timeout=5)
/usr/local/bin/curl --connect-timeout 5 http://192.168.0.222/ext_t?temp=<yourvaluehere> &
aaronlionsheep wrote:siclark wrote:Morning. I have just tried that, although had rebooted the TRV and made setting changes and verified that this had also republished the settings but no, still not populated.
EDIT: I just realised that my MQTT connector plugin was frozen from lunchtime yesterday and so whilst the log appeared to show MQTT activity, it was only your plugin attempting to send. Nothing coming back into Indigo. A restart of that plugin and all was good, it saw the queue of messages with the settings in, processed them, and I do now see the names in the drop down.
Oh fantastic! Give it a try for a few days and let me know how it all works now that it should have most, if not all, the TRV features. I don’t have TRV’s over here, so I don’t really know what you need from them.
Thanks,
Aaron
Users browsing this forum: No registered users and 6 guests