Players can periodically connect to a web server and fetch a JSON object. The data in the JSON object will be used when evaluating conditions.
| Name | Example | Description |
|---|---|---|
remoteDataSource |
http://api.example.com/json |
Endpoint to get JSON object from. |
remoteDataFetchPeriod |
10000 |
The period in milliseconds between downloads. |
For example, a web server on a train could be configured to return the next station and arrival time:
{
"nextStation": "London Bridge",
"eta": 4
}
A condition (in a stack item or event trigger) could use this data to display an item, another sequence or trigger a custom action:
nextStation == "London Bridge" && eta < 5
Comments
0 comments
Please sign in to leave a comment.