WDE1 Gateway IPSymcon PHP Splitter Module Class.
More...
|
| __construct ($InstanceID) |
| Constructor. More...
|
|
| Create () |
| overload internal IPS_Create($id) function
|
|
| Destroy () |
| Destructor.
|
|
| ApplyChanges () |
| overwrite internal IPS_ApplyChanges($id) function
|
|
| SetRainPerCount (int $rainpercount) |
| Set Property RainPerCount This is the amount of rain per count of wipe in mm*1000 Limit 200..500, default 295. More...
|
|
| ReInitEvent () |
| Timer Event to reinitialize system Executed if there are no valid data within Timer as indicated by LastUpdate.
|
|
| ForwardData ($JSONString) |
| Data Interface from Childs. More...
|
|
| ReceiveData ($JSONString) |
| Data Interface from Parent(IO-RX) More...
|
|
| ReadRecord (string $inbuf) |
| Takes an input string and prepare it for parsing. More...
|
|
| __construct ($InstanceID, $json_file) |
| Constructor. More...
|
|
| Create () |
| Create function.
|
|
| ApplyChanges () |
| Apply function.
|
|
|
const | MAXAGE = 300 |
| Timer constant maxage of LastUpdate in sec before ReInit.
|
|
const | MAXSENSORS = 9 |
| How many sensors are attached 8 external Temp/Hum Sensors(0-7), Kombisensor(8) and indoor Sensors(9)
|
|
const | fieldlist = "Time;Typ;Id;Name;Temp;Hum;Bat;Lost;Wind;Rain;IsRaining;RainCounter;Pressure;willi;" |
| Fieldlist for Logging.
|
|
const | IPS_KERNELMESSAGE = 10100 |
| IPS Message IDs. More...
|
|
const | KR_INIT = 10102 |
| Kernel Status "INIT".
|
|
const | KR_READY = 10103 |
| Kernel Status "Ready".
|
|
const | KR_UNINIT = 10104 |
| Kernel Status "UnInit".
|
|
const | ST_AKTIV = 102 |
| Module Status aktive.
|
|
const | ST_INACTIV = 104 |
| Module Status "inactive".
|
|
const | ST_ERROR = 201 |
| Module Status "Error".
|
|
const | ST_NOPARENT = 202 |
| Custom Module Status "NoParent".
|
|
const | VT_Boolean = 0 |
| IPS Variable Type Boolean.
|
|
const | VT_Integer = 1 |
| IPS Variable Type Integer.
|
|
const | VT_Float = 2 |
| IPS Variable Type Float.
|
|
const | VT_String = 3 |
| IPS Variable Type String.
|
|
const | IM_CHANGESTATUS =10505 |
| Instance Message Status change.
|
|
const | VM_DELETE =10602 |
| Variable Message Delete.
|
|
const | VM_UPDATE =10603 |
| Variable Message Update.
|
|
|
| SendDataToChildren ($Data) |
| Data Interface to Childs. More...
|
|
| SendDataToParent ($Data) |
| Data Interface tp Parent (IO-TX) More...
|
|
| HasActiveParent ($id=0) |
| Check if a parent is active. More...
|
|
| isActive ($id=0) |
| Check if the given Instance is active. More...
|
|
| GetInstanceStatus ($id=0) |
| Retrieve instance status. More...
|
|
| GetParent ($id=0) |
| Check if a parent for Instance $id exists. More...
|
|
| GetCapList () |
| Get Property Caplist. More...
|
|
| GetCaps () |
| returns array of defined capabilities for this device Format:"cap:action;" More...
|
|
| GetActions () |
| returns array of defined Actions for this device More...
|
|
| CreateStatusVars () |
| create status variables out of capvar definitions from device
|
|
| SetStatusVariables () |
| remove variables not matching actual capabilities
|
|
| SwitchStatus ($val) |
| parses switch status values to true/false More...
|
|
| SemEnter ($resource) |
| Enter/Lock semaphore. More...
|
|
| SemLeave ($resource) |
| Leave/unlock Semaphore. More...
|
|
| check_profile ($pname, $typ, $prefix, $suffix, $icon, $min, $max, $step, $digit=0, $drop=false) |
| Check profile by name if exists, else create. More...
|
|
| drop_var ($ident) |
| Delete a Variable by name if exists and assigned events. More...
|
|
| GetLocalBuffer () |
| Get status variable Buffer contains incoming data from IO, act as regVar. More...
|
|
| SetLocalBuffer ($val) |
| Set status variable Buffer. More...
|
|
| debug ($topic, $data) |
| Log an debug message PHP modules cannot enter data to debug window,use messages instead. More...
|
|
| isDebug () |
| check if debug is enabled More...
|
|
| debuglog ($data) |
| Log Debug to its own file. More...
|
|
|
| $module_data = array() |
| Vital module data build out of module.json.
|
|
| $DEBUGLOG = '' |
| optional filename of a debug log (fully qualified)
|
|
| $name = '' |
| Modul name for fast access.
|
|
| $capvars = array() |
| Device capabilities to be overwrite in implementation.
|
|
| $actions = array() |
| Device action capabilities to be overwrite in implementation.
|
|
| $module_interfaces |
| often needed module GUIDs
|
|
| $useBufferVar =false |
| Use StatusVariable as buffer (if Get/SetBuffer module functions are not available in IPS <4.1)
|
|
WDE1 Gateway IPSymcon PHP Splitter Module Class.
◆ __construct()
__construct |
( |
|
$InstanceID | ) |
|
◆ ForwardData()
ForwardData |
( |
|
$JSONString | ) |
|
Data Interface from Childs.
- Parameters
-
◆ ReadRecord()
ReadRecord |
( |
string |
$inbuf | ) |
|
Takes an input string and prepare it for parsing.
- Parameters
-
string | $inbuf | Record from wde1, terminated by CRLF |
- Returns
- string
◆ ReceiveData()
ReceiveData |
( |
|
$JSONString | ) |
|
Data Interface from Parent(IO-RX)
- Parameters
-
◆ SendDataToChildren()
SendDataToChildren |
( |
|
$Data | ) |
|
|
protected |
Data Interface to Childs.
- Parameters
-
◆ SendDataToParent()
SendDataToParent |
( |
|
$Data | ) |
|
|
protected |
Data Interface tp Parent (IO-TX)
- Parameters
-
- Returns
- bool
◆ SetRainPerCount()
SetRainPerCount |
( |
int |
$rainpercount | ) |
|
Set Property RainPerCount This is the amount of rain per count of wipe in mm*1000 Limit 200..500, default 295.
- Parameters
-
The documentation for this class was generated from the following file:
- C:/Users/tdres/OneDrive/Dokumente/progs/ipsymcon/phpmodule/ipsymcon-phpmodule-by-Tommi/WDE1/module.php