TOT's Functions
Device-Functions
GetDevice
Parameters: NAME
Example: Http://<Server-IP>:<Port>/GetDevice?NAME=<dev_name>
GetAllDevices
Parameters: OPT=showAll
Example: Http://<Server-IP>:<Port>/GetAllDevices?[OPT=showAll]
SetDevice
Parameters: NAME, ATTR1 ... ATTRN
Example: Http://<Server-IP>:<Port>/SetDevice?NAME=<dev_name>&<attr_type1>=<attr_update1>&<attr_type2>=<attr_update2>&<attr_typeN>=<attr_updateN>
Http://<Server-IP>:<Port>/SetDevice?NAME=Testdevice&room=undef
NewDevice
Parameters: NAME, TYPE & DEF
Example: Http://<Server-IP>:<Port>/NewDevice?NAME=<dev_name>&TYPE=<dev_type>&DEF=<Parameter (beliebig viele)>
DelDevice
Parameters: Name
Example: Http://<Server-IP>:<Port>/DelDevice?NAME=<dev_name>
GetNondefinedDevices
Parameters: /
Example: Http://<Server-IP>:<Port>/GetNonDefinedDevices
Structure-Functions
GetStructure
Parameters: NAME
Example: Http://<Server-IP>:<Port>/GetStructure?NAME=<structure_name>
GetAllStructures
Parameters: /
Example: Http://<Server-IP>:<Port>/GetAllStructures
NewStructure
Parameters: NAME,ATTR & DEVICES
Example: Http://<Server-IP>:<Port>/NewStructure?NAME=<name>&DEF=<Dev1...DevN>&ATTR=<structure_type>
Http://<Server-IP>:<Port>/NewStructure?NAME=teststruct2&ATTR=room&DEVICES=dev1 dev2 dev3 dev4
DeleteStructure
Parameters: NAME
Example: Http://<Server-IP>:<Port>/DeleteStructure?NAME=<structure_name>
AddDeviceInStructure
Parameters: NAME, DEVICES
Example: Http://<Server-IP>:<Port>/AddDeviceInStructure?NAME=<stucture_name>&DEVICES=<dev1> <devN>
Script-Functions
GetAllScripts
Parameters: /
Http://<Server-IP>:<Port>/GetAllScripts
GetScript
Parameters: NAME
Http://<Server-IP>:<Port>/GetScript?NAME=<script_name>
AddScript
Parameters: NAME, REGEXP & COM
Http://<Server-IP>:<Port>/AddScript?NAME=<script_name>®EXP=<regexp>&COM=<commands>
DeleteScript
Parameters: NAME
Http://<Server-IP>:<Port>/DeleteScript?NAME=<script_name>
UpdateScript
Parameters: NAME, REGEXP & COM
Example: Http://<Server-IP>:<Port>/UpdateScript?NAME=<script_name>®EXP=<regexp>&COM=<commands>
Log-Functions
GetAvailableLogFiles
Parameters: /
Example: Http://<Server-IP>:<Port>/GetAvailableLogFiles
GetLogFromDevice
Parameters: NAME, [SYEAR], [SMONTH], [SDAY], [SHOUR], [SMIN], [EYEAR], [EMONTH], [EDAY], [EHOUR], [EMIN]
Example: - Http://<Server-IP>:<Port>/GetLogFromDevice?NAME=<dev_name>
- Http://<Server-IP>:<Port>/GetLogFromDevice?NAME=<dev_name>
- Http://<Server-IP>:<Port>/GetLogFromDevice?NAME=<dev_name>&SYEAR=2011&EYEAR=2012&EMONTH=10
- Http://<Server-IP>:<Port>/GetLogFromDevice?NAME=<dev_name>&SYEAR=2011&EYEAR=2012&EDay=2
- Http://<Server-IP>:<Port>/GetSVGFromDevice?PARAMS=<dev_name>
Command-Functions
GetVersion
Parameters: /
Example: Http://<Server-IP>:<Port>/GetVersion
Save
Parameters: /
Example: Http://<Server-IP>:<Port>/Save
GetFhemFile
Parameters: NAME
Example: Http://<Server-IP>:<Port>/GetFhemFile?NAME=<File>
SetFhemCfg
Parameters: DATA
Example: Http://<Server-IP>:<Port>/SetFhemCfg?DATA=<Daten>
help
Parameters: /
Example: Http://<Server-IP>:<Port>/help
UpdateFhem
Parameters: [OPT]
Example: Http://<Server-IP>:<Port>/UpdateFhem?[OPT=backup Filename]