Reading the configuration parameters
All the configuration parameters are stored in the clock itself, we can read them by sending API calls
according to the specification below. The PARAMETER is to be replaced by the actual parameter name
that we want to read from the clock.
API call specification:
• Request type –
GET
• Endpoint URL –
/v1/devices/CLOCK_ID/PARAMETER?client_id=3rdparty&access_toke
n=ACCESS_TOKEN&client_secret=ws7TQHXp5W6444t4
Example API call to retrieve the value of “transition” parameter using curl:
$ curl -X GET "https://api.daliborfarny.com/v1/devices/32002900014737333632332
0/transition?client_id=3rdparty&access_token=62dd89362a635ff8692a590456e8a8118
e61d9902&client_secret=ws7TQHXp5W6444t4"
The JSON response returned by the cloud server, the parameter value in this example is “2”.
{
"ok":true,
"status":200,
"data":{
"value":2
}
}
Sending the configuration parameters
All the configuration parameters are stored in the clock itself, to change the particular parameter, we
need to do an API call as below. The PARAMETER is to be replaced by the actual parameter name that
we want to read from the clock. The VALUE is the actual value we want to set the PARAMETER to.
API call specification:
• Request type –
POST
• Endpoint URL –
/v1/devices/CLOCK_ID/PARAMETER
• Request body –
access_token=ACCESS_TOKEN&arg=VALUE&client_secret=ws7TQHXp5W6
444t4&client_id=3rdparty
Example API call using curl – this way we can set parameter “transition” to value 3.
$ curl -X POST "https://api.daliborfarny.com/v1/devices/3200290001473733363233
20/transition" -d "access_token=62dd89362a635ff8692a590456e8a8118e61d9902&ar
g=3&client_id=3rdparty&client_secret=ws7TQHXp5W6444t4"
Daliborfarny.com
Puri Nixie Clock - 1_en
Page 19 of 69
Summary of Contents for Puri Nixie
Page 1: ......
Page 10: ...Portrait mode Daliborfarny com Puri Nixie Clock 1_en Page 7 of 69...
Page 13: ...Last modified 1 November 2021 Daliborfarny com Puri Nixie Clock 1_en Page 10 of 69...
Page 15: ...Portrait mode Daliborfarny com Puri Nixie Clock 1_en Page 12 of 69...
Page 18: ...Last modified 1 November 2021 Daliborfarny com Puri Nixie Clock 1_en Page 15 of 69...
Page 38: ...Click the It s done next button Daliborfarny com Puri Nixie Clock 1_en Page 35 of 69...
Page 55: ...Daliborfarny com Puri Nixie Clock 1_en Page 52 of 69...
Page 71: ...Last modified 21 November 2021 Daliborfarny com Puri Nixie Clock 1_en Page 68 of 69...