...
In fan/http
you can find the Http.fan
utility class that contains two functions that allow getting and posting JSON to a REST endpoint.
Expand | |||
---|---|---|---|
| |||
|
Getting JSON
Let's start from the GET function.
...
A schedule point is a record with specific tags. You can find some documentation here: http://20.49.58.255:8085/ui/#fc292f34e24e, see scheduleExt
.
The most important tag of a schedule record is the scheduleGrid
, because it contains the schedule events and rules. An example of schedule grid is:
Expand | |||
---|---|---|---|
|
So each event has a date and timerange, a description, and a value. val
is the value that will be written to the points bound to this scheduler, and can be of any type (string, number, boolean).
...