Nei, du må laste ned og installere Python 2.7 for Windows: https://www.python.org/downloads/windows/
Scriptet kan du trigge fra et event, noe lignende som dette:
Så først lager du deg en device med gyldig range 0-10000 (e.l.) (må være "controllable, ikke "status only").
Selve scriptet ("ginlong.py") blir vel da noe sånt:
#!/usr/bin/python
import urllib, urllib2, hashlib
from xml.etree import ElementTree as ET
#config
username = '' #your portal username
password = '' #your portal password
baseURL = 'http://www.ginlongmonitoring.com:10000' #base url
stationid = '' #station id, get this via the station python script
# example: Working base urls:
# http://www.ginlongmonitoring.com:10000/
# http://www.omnikportal.com:10000/
# http://log.trannergy.com:10000/
# http://www.solarmanpv.com:10000/
#domoticz settings
hs_host = 'localhost'
hs_port = '80'
hs_url = 'JSON'
hs_ActualPower = '1234' #refid of new device
m = hashlib.md5()
m.update(password)
#building url
requestURL = baseURL+'/serverapi/?method=Login&username='+username+'&password='+m.hexdigest()+'&key=apitest&client=iPhone'
#login call
root = ET.parse(urllib.urlopen(requestURL)).getroot()
token = root.find('token').text
print 'Logged In: '+username
#info url
infoURL = baseURL+'/serverapi/?method=Data&username='+username+'&stationid='+stationid+'&token='+token+'&key=apitest'
print 'Getting Info... '
#login call
infoRoot = ET.parse(urllib.urlopen(infoURL)).getroot()
income = infoRoot.find('income')
TodayIncome = income.find('TodayIncome').text
ActualPower = income.find('ActualPower').text
etoday = income.find('etoday').text
etotal = income.find('etotal').text
multiply='1000.0'
etotal1000 = float(etotal) * float(multiply)
TotalIncome = income.find('TotalIncome').text
etotalstr=str(etotal1000)
#logging values
print 'TodayIncome: '+TodayIncome
print 'ActualPower: '+ActualPower
print 'etoday: '+etoday
print 'etotal: '+etotal
print 'etotal 1000: '+etotalstr
#uploading values to HomeSeer
url = ("http://" + hs_host + ":" + hs_port + "/" + hs_url+ "?request=controldevicebyvalue&ref=" + hs_ActualPower+ "&value=" + ActualPower)
urllib.urlopen(url)
stationid.py kjører du bare som det der for å finne "stationid".