Thanks much for the pointers. With the help from DaveL17. Not as shell but inside Indigo.
viewtopic.php?f=148&t=15137&start=90Got HTML response into Indigo variable working with this script in Indigo. Now I can use a script to automate the heating based upon the daikin info.
Use Case: automating heating my house with my Daikin Airco (Heatpump). Result: using the heatpump results in decrease in energy spending of 700 euro's a year.
==========================================================================
#get data in HTMl Response from Daikin HVAC
import urllib2
urlReturned = urllib2.urlopen('http://XX.XXX.X.XX/aircon/get_sensor_info')
data_getStatus = urlReturned.read()
#transform HTMl Response in JSON format
# Split the result into bits
split_response = data_getStatus.split(',')
print(split_response)
# Split the bits into variable/value pairs
new_list = []
for element in split_response:
new_list.append(element.split('='))
print(new_list)
# Convert the variable/value pairs into something json-y
new_dict = {}
for element in new_list:
new_dict[element[0]] = element[1]
print(new_dict)
#get new json string variables to python variables
htemp=str(new_dict['htemp'])
otemp=str(new_dict['otemp'])
#update indigo variables
indigo.variable.updateValue(1262870391, ((htemp)))
indigo.variable.updateValue(1460457655, ((otemp)))