I now use a slight modification to the script below to store the temperatures from each of the zones to a database (integrated into an existing house temperature monitoring system. I run it as a cron task every 5 minutes and it's been very solid so far
Code:
import requests
import json
USERNAME = 'USERNAME'
PASSWORD = 'PASSWORD'
url = 'https://rs.alarmnet.com/TotalConnectComfort/WebAPI/api/Session'
postdata = {'Username':USERNAME,'Password':PASSWORD,'ApplicationId':'91db1612-73fd-4500-91b2-e63b069b185c'}
headers = {'content-type':'application/json'}
response = requests.post(url,data=json.dumps(postdata),headers=headers)
userData = json.loads(response.content)
userId = userData['userInfo']['userID']
sessionId = userData['sessionId']
url = 'https://rs.alarmnet.com/TotalConnectComfort/WebAPI/api/locations?userId=%s&allData=True' % userId
headers['sessionId'] = sessionId
response = requests.get(url,data=json.dumps(postdata),headers=headers)
fullData = json.loads(response.content)[0]
for device in fullData['devices']:
print device['thermostatModelType'], device['deviceID'], device['name'], device['thermostat']['indoorTemperature']
It would be easy to change the print line near the end to write to a file or database to store these values for further analysis