...
The SiteController uses its module da_rest_client to interact with the prodos webserver by REST requests.
...
Table of Contents |
---|
1. Determine the completion of a dosing cycle
The sensor globalstates_dosing_mode represents the current state of the dosing cycle:
...
With this scheduling parameters (3 seconds interval ) all changes of the dosing mode state are acquired. If the sensor globalstates_dosing_mode has the value 'AUTO Dosing _ END' or 'Dosing _ END' the dosing cycle is completed and new memodata could be downloaded.
2. Download of the memodata
An AutomationController rule detects the state change to the dosing cycle completion
...
Code Block | ||||
---|---|---|---|---|
| ||||
<action action_id="download_memodata" device_id="rest_test"> <commands> <command command_id="download">download('/fcgi/control/memodata_download')</command> </commands> </action> |
3. Determine the completion of memodata download
As described in the da_rest_client action the da_rest_client is able to represent the download completion and the download time in a specific sensor gateway (the sensor gateway id is identical to the device id of the da_rest_client).
...
Info | |||||
---|---|---|---|---|---|
For a valid XML configuration it is required to add the sensor gateway id to the device configuration of the da_rest_client:
|
4. Processing of the downloaded memodata
An AutomationController rule detects the completion of a download
...