NAV
bash javascript

{{menu.information}}

{{menu.authorization}}

api/v1/auth

curl "https://my.tenko.ua/api/v1/auth" \
-H "Accept: application/json" \
-H "Content-Type: application/x-www-form-urlencoded"\
--data-urlencode login="$login"\
--data-urlencode password="$password"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1/auth",
    "method": "POST",
    "headers": {
        "accept": "application/json",
        "content-type": "application/x-www-form-urlencoded",
    },
 "data": 'login='+login+'&password='+password;
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

{
    "status": "ok",
    "token": "SfypQrUG8HX7znYGKTM3vUfm3eG3xU62QY8DzvAucHaxcHW7vpy8vAhXa6GH5JAAkakW2qXLQDaknYBxxxqsN957uY2CwMAgxXLsjd9ERwU7swTWLWZtQrSESfypQrUG8HX7znYGKTM3vUfm3eG3xU62QY8DzvAucHaxcHW7vpy8vAhXa6GH5JAAkakW2qXLQDaknYBxxxqsN957uY2CwMAgxXLsjd9ERwU7swTWLWZtQrSESfypQrUG8HX7znYGKTM3vUfm3eG3xU62QY8DzvAucHaxcHW7vpy8vAhXa6GH5JAAkakW2qXLQDaknYBxxxqsN957uY2CwMAgxXLsjd9ERwU7swTWLWZtQrSE"
}

HTTP Request

POST api/v1/auth

{{menu.settings}}

api/v1/maintain_min_temp

curl "https://my.tenko.ua/api/v1/maintain_min_temp" \
-H "Accept: application/json" \
-H "Authorization: Bearer $token"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1/maintain_min_temp",
    "method": "GET",
    "headers": {
        "accept": "application/json",
 "authorization": "Bearer "+token
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

{
    "MMT": {
        "status": "Off",
        "min_temp": "7",
        "max_temp": "13"
    }
}

HTTP Request

GET api/v1/maintain_min_temp

api/v1/maintain_min_temp

curl "https://my.tenko.ua/api/v1/maintain_min_temp" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $token" \
-X POST -d '{"MMT" : { "status": "$status", "min_temp": "$min_temp", "max_temp": "$max_temp" }}'
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1/maintain_min_temp",
    "method": "POST",
    "headers": {
        "accept": "application/json",
 "content-type": "application/json",
 "authorization": "Bearer "+token
    },
 "data": JSON.stringify({"MMT" : { "status": status, "min_temp": min_temp, "max_temp": max_temp }})
}

$.ajax(settings).done(function (response) {
    console.log(response);
});


{
 "status": "ok",
 "message": "MMT updated"
}

HTTP Request

POST api/v1/maintain_min_temp

api/v1/water_feed

curl "https://my.tenko.ua/api/v1/water_feed" \
-H "Accept: application/json" \
-H "Authorization: Bearer $token"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1/water_feed",
    "method": "GET",
    "headers": {
        "accept": "application/json",
 "authorization": "Bearer "+token
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

{
    "WF": {
        "temp": "32",
        "delta": "7"
    }
}

HTTP Request

GET api/v1/water_feed

api/v1/water_feed

curl "https://my.tenko.ua/api/v1/water_feed" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $token" \
-X POST -d '{"WF":{"temp":"$temperature","delta":"$delta"}}'
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1/water_feed",
    "method": "POST",
    "headers": {
        "accept": "application/json",
 "content-type": "application/json",
 "authorization": "Bearer "+token
    },
 "data": JSON.stringify({"WF":{"temp":temperature,"delta":delta}})
}

$.ajax(settings).done(function (response) {
    console.log(response);
});


{
 "status": "ok",
 "message": "WF updated"
}

HTTP Request

POST api/v1/water_feed

api/v1/returned_water_feed

curl "https://my.tenko.ua/api/v1/returned_water_feed" \
-H "Accept: application/json" \
-H "Authorization: Bearer $token"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1/returned_water_feed",
    "method": "GET",
    "headers": {
        "accept": "application/json",
 "authorization": "Bearer "+token
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

{
    "RWF": {
        "temp": "16",
        "delta": "4"
    }
}

HTTP Request

GET api/v1/returned_water_feed

api/v1/returned_water_feed

curl "https://my.tenko.ua/api/v1/returned_water_feed" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $token" \
-X POST -d '{"RWF":{"temp":"$temperature","delta":"$delta"}}'
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1/returned_water_feed",
    "method": "POST",
    "headers": {
        "accept": "application/json",
 "content-type": "application/json",
 "authorization": "Bearer "+token
    },
 "data": JSON.stringify({"RWF":{"temp":temperature,"delta":delta}})
}

$.ajax(settings).done(function (response) {
    console.log(response);
});


{
 "status": "ok",
 "message": "RWF updated"
}

HTTP Request

POST api/v1/returned_water_feed

api/v1/stages

curl "https://my.tenko.ua/api/v1/stages" \
-H "Accept: application/json" \
-H "Authorization: Bearer $token"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1/stages",
    "method": "GET",
    "headers": {
        "accept": "application/json",
 "authorization": "Bearer "+token
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

{
    "STG": {
        "stage_1": "Off",
        "stage_2": "Off"
    }
}

HTTP Request

GET api/v1/stages

api/v1/stages

curl "https://my.tenko.ua/api/v1/stages" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $token" \
-X POST -d '{"STG": {"stage_1": "$stage_1","stage_2": "$stage_2"})'
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1/stages",
    "method": "POST",
    "headers": {
        "accept": "application/json",
 "content-type": "application/json",
 "authorization": "Bearer "+token
    },
 "data": JSON.stringify({"STG": {"stage_1": stage_1,"stage_2": stage_2}})
}

$.ajax(settings).done(function (response) {
    console.log(response);
});


{
 "status": "ok",
 "message": "STG updated"
}

HTTP Request

POST api/v1/stages

api/v1/pauses

curl "https://my.tenko.ua/api/v1/pauses" \
-H "Accept: application/json" \
-H "Authorization: Bearer $token"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1/pauses",
    "method": "GET",
    "headers": {
        "accept": "application/json",
 "authorization": "Bearer "+token
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

{
    "PSS": {
        "pause_1": "7",
        "pause_2": "8"
    }
}

HTTP Request

GET api/v1/pauses

api/v1/pauses

curl "https://my.tenko.ua/api/v1/pauses" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $token" \
-X POST -d '{"PSS":{"pause_1":"$pause_1","pause_2":"$pause_2"}}'
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1/pauses",
    "method": "POST",
    "headers": {
        "accept": "application/json",
 "content-type": "application/json",
 "authorization": "Bearer "+token
    },
 "data": JSON.stringify({"PSS":{"pause_1":pause_1,"pause_2":pause_2}})
}

$.ajax(settings).done(function (response) {
    console.log(response);
});


{
 "status": "ok",
 "message": "PSS updated"
}

HTTP Request

POST api/v1/pauses

api/v1/modulation

curl "https://my.tenko.ua/api/v1/modulation" \
-H "Accept: application/json" \
-H "Authorization: Bearer $token"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1/modulation",
    "method": "GET",
    "headers": {
        "accept": "application/json",
 "authorization": "Bearer "+token
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

{
    "MOD": "On"
}

HTTP Request

GET api/v1/modulation

api/v1/modulation

curl "https://my.tenko.ua/api/v1/modulation" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $token" \
-X POST -d '{"MOD":"$mod"}'
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1/modulation",
    "method": "POST",
    "headers": {
        "accept": "application/json",
 "content-type": "application/json",
 "authorization": "Bearer "+token
    },
 "data": JSON.stringify({"MOD":"$mod"})
}

$.ajax(settings).done(function (response) {
    console.log(response);
});


{
 "status": "ok",
 "message": "MOD updated"
}

HTTP Request

POST api/v1/modulation

api/v1/settings

curl "https://my.tenko.ua/api/v1/settings" \
-H "Accept: application/json" \
-H "Authorization: Bearer $token"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1/settings",
    "method": "GET",
    "headers": {
        "accept": "application/json",
 "authorization": "Bearer "+token
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

{
    "MMT": {
        "status": "Off",
        "min_temp": "7",
        "max_temp": "13"
    },
    "WF": {
        "temp": "32",
        "delta": "7"
    },
    "RWF": {
        "temp": "16",
        "delta": "4"
    },
    "STG": {
        "stage_1": "Off",
        "stage_2": "Off"
    },
    "PSS": {
        "pause_1": "7",
        "pause_2": "8"
    },
    "MOD": "On"
}

HTTP Request

GET api/v1/settings

api/v1/settings

curl "https://my.tenko.ua/api/v1/settings" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $token" \
-X POST -d '{"MMT" : { "status": "$mmt_status", "min_temp": "$mmt_min_temp", "max_temp": "$mmt_max_temp" }, "WF":{"temp":"$temperature","delta":"$delta"}, "RWF":{"temp":"$temperature","delta":"$delta"}, "STG": {"stage_1": "$stage_1","stage_2": "$stage_2"}, "PSS":{"pause_1":"$pause_1","pause_2":"$pause_2"}, "MOD":"$mod"}'
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1/settings",
    "method": "POST",
    "headers": {
        "accept": "application/json",
 "content-type": "application/json",
 "authorization": "Bearer "+token
    },
 "data": JSON.stringify({"MMT" : { "status": mmt_status, "min_temp": mmt_min_temp, "max_temp": mmt_max_temp }, "WF":{"temp":temperature,"delta":delta}, "RWF":{"temp":temperature,"delta":delta}, "STG": {"stage_1": stage_1,"stage_2": stage_2}, "PSS":{"pause_1":pause_1,"pause_2":pause_2}, "MOD":"$mod"})
}

$.ajax(settings).done(function (response) {
    console.log(response);
});


{
 "status": "ok",
 "message": "Settings updated"
}

HTTP Request

POST api/v1/settings

{{menu.states}}

api/v1/serial

curl "https://my.tenko.ua/api/v1/serial" \
-H "Accept: application/json" \
-H "Authorization: Bearer $token"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1/serial",
    "method": "GET",
    "headers": {
        "accept": "application/json",
 "authorization": "Bearer "+token
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

{
    "SN": "demo"
}

HTTP Request

GET api/v1/serial

api/v1/version

curl "https://my.tenko.ua/api/v1/version" \
-H "Accept: application/json" \
-H "Authorization: Bearer $token"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1/version",
    "method": "GET",
    "headers": {
        "accept": "application/json",
 "authorization": "Bearer "+token
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

{
    "VER": "4.3w1.1"
}

HTTP Request

GET api/v1/version

api/v1/at_state

curl "https://my.tenko.ua/api/v1/at_state" \
-H "Accept: application/json" \
-H "Authorization: Bearer $token"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1/at_state",
    "method": "GET",
    "headers": {
        "accept": "application/json",
 "authorization": "Bearer "+token
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

{
    "AT": "15.4"
}

HTTP Request

GET api/v1/at_state

api/v1/he1_state

curl "https://my.tenko.ua/api/v1/he1_state" \
-H "Accept: application/json" \
-H "Authorization: Bearer $token"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1/he1_state",
    "method": "GET",
    "headers": {
        "accept": "application/json",
 "authorization": "Bearer "+token
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

{
    "HE1": "On"
}

HTTP Request

GET api/v1/he1_state

api/v1/he2_state

curl "https://my.tenko.ua/api/v1/he2_state" \
-H "Accept: application/json" \
-H "Authorization: Bearer $token"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1/he2_state",
    "method": "GET",
    "headers": {
        "accept": "application/json",
 "authorization": "Bearer "+token
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

{
    "HE2": "Off"
}

HTTP Request

GET api/v1/he2_state

api/v1/wf_state

curl "https://my.tenko.ua/api/v1/wf_state" \
-H "Accept: application/json" \
-H "Authorization: Bearer $token"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1/wf_state",
    "method": "GET",
    "headers": {
        "accept": "application/json",
 "authorization": "Bearer "+token
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

{
    "WFT": "23.4"
}

HTTP Request

GET api/v1/wf_state

api/v1/rwf_state

curl "https://my.tenko.ua/api/v1/rwf_state" \
-H "Accept: application/json" \
-H "Authorization: Bearer $token"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1/rwf_state",
    "method": "GET",
    "headers": {
        "accept": "application/json",
 "authorization": "Bearer "+token
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

{
    "RWFT": "19.0"
}

HTTP Request

GET api/v1/rwf_state

api/v1/pmp_state

curl "https://my.tenko.ua/api/v1/pmp_state" \
-H "Accept: application/json" \
-H "Authorization: Bearer $token"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1/pmp_state",
    "method": "GET",
    "headers": {
        "accept": "application/json",
 "authorization": "Bearer "+token
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

{
    "PMP": "Off"
}

HTTP Request

GET api/v1/pmp_state

api/v1/prsr_state

curl "https://my.tenko.ua/api/v1/prsr_state" \
-H "Accept: application/json" \
-H "Authorization: Bearer $token"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1/prsr_state",
    "method": "GET",
    "headers": {
        "accept": "application/json",
 "authorization": "Bearer "+token
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

{
    "PRS": "2.35"
}

HTTP Request

GET api/v1/prsr_state

api/v1/mmt_state

curl "https://my.tenko.ua/api/v1/mmt_state" \
-H "Accept: application/json" \
-H "Authorization: Bearer $token"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1/mmt_state",
    "method": "GET",
    "headers": {
        "accept": "application/json",
 "authorization": "Bearer "+token
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

{
    "MMT": {
        "status": "Off",
        "temp": "15.4"
    }
}

HTTP Request

GET api/v1/mmt_state

api/v1/stat_state

curl "https://my.tenko.ua/api/v1/stat_state" \
-H "Accept: application/json" \
-H "Authorization: Bearer $token"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1/stat_state",
    "method": "GET",
    "headers": {
        "accept": "application/json",
 "authorization": "Bearer "+token
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

{
    "STAT": {
        "days": "30",
        "kWt": "791"
    }
}

HTTP Request

GET api/v1/stat_state

api/v1/year_stat_state

curl "https://my.tenko.ua/api/v1/year_stat_state" \
-H "Accept: application/json" \
-H "Authorization: Bearer $token"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1/year_stat_state",
    "method": "GET",
    "headers": {
        "accept": "application/json",
 "authorization": "Bearer "+token
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

{
    "YSTAT": [
        687,
        845,
        975,
        1024,
        897,
        745,
        621,
        794,
        525,
        476,
        573,
        355
    ]
}

HTTP Request

GET api/v1/year_stat_state

api/v1/boiler_date_state

curl "https://my.tenko.ua/api/v1/boiler_date_state" \
-H "Accept: application/json" \
-H "Authorization: Bearer $token"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1/boiler_date_state",
    "method": "GET",
    "headers": {
        "accept": "application/json",
 "authorization": "Bearer "+token
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

{
    "BDT": {
        "h": "01",
        "m": "30",
        "dow": "3",
        "dd": "24",
        "mm": "02",
        "yy": "16"
    }
}

HTTP Request

GET api/v1/boiler_date_state

api/v1/boiler_errors_state

curl "https://my.tenko.ua/api/v1/boiler_errors_state" \
-H "Accept: application/json" \
-H "Authorization: Bearer $token"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1/boiler_errors_state",
    "method": "GET",
    "headers": {
        "accept": "application/json",
 "authorization": "Bearer "+token
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

{
  "ERR": {
        "type_total": 0,
        "type_time": 1
  }
}

HTTP Request

GET api/v1/boiler_date_state

api/v1/power_state

curl "https://my.tenko.ua/api/v1/power_state" \
-H "Accept: application/json" \
-H "Authorization: Bearer $token"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1/power_state",
    "method": "GET",
    "headers": {
        "accept": "application/json",
 "authorization": "Bearer "+token
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

{
  "POW": 15
}

HTTP Request

GET api/v1/power_state

api/v1/modulation_state

curl "https://my.tenko.ua/api/v1/modulation_state" \
-H "Accept: application/json" \
-H "Authorization: Bearer $token"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1/modulation_state",
    "method": "GET",
    "headers": {
        "accept": "application/json",
 "authorization": "Bearer "+token
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

"MOD":{
      "enabled":"On",
      "status":"On",
      "amount":"3,6"
   }

HTTP Request

GET api/v1/modulation_state

api/v1/total_state

Используется для получения всех значений состояний и статистики одним запросом.

curl "https://my.tenko.ua/api/v1/total_state" \
-H "Accept: application/json" \
-H "Authorization: Bearer $token"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1/total_state",
    "method": "GET",
    "headers": {
        "accept": "application/json",
 "authorization": "Bearer "+token
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

{
 "SN": "demo",
 "VER": "4.3w1.1",
 "AT": "15.4",
 "HE1": "On",
 "HE2": "Off",
 "WFT": "23.4",
 "RWFT": "19.0",
 "PMP": "Off",
 "PRS": "2.35",
 "MMT": {
  "status": "Off",
  "temp": "15.4"
 },
 "STAT": {
  "days": "30",
  "kWt": "791"
 },
 "YSTAT": [
  687,
  845,
  975,
  1024,
  897,
  745,
  621,
  794,
  525,
  476,
  573,
  355
 ],
 "BDT": {
  "h": "01",
  "m": "30",
  "dow": "3",
  "dd": "24",
  "mm": "02",
  "yy": "16"
 },
 "ERR": {
  "type_total": 0,
  "type_time": 1
 },
        "POW": 15
}

HTTP Request

GET api/v1/total_state

{{menu.charts}}

api/v1/used_chart_type

curl "https://my.tenko.ua/api/v1/used_chart_type" \
-H "Accept: application/json" \
-H "Authorization: Bearer $token"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1/used_chart_type",
    "method": "GET",
    "headers": {
        "accept": "application/json",
 "authorization": "Bearer "+token
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

{
    "USE": "Temp"
}

HTTP Request

GET api/v1/used_chart_type

api/v1/used_chart_type

Используется для изменения используемого в текущий момент графика.

$type может принимать одно из 3 значений:
Temp - использовать постоянную температуру;
WChart - использовать недельный график температур;
DChart - использовать суточный график температур.

curl "https://my.tenko.ua/api/v1/used_chart_type" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $token" \
-X POST -d '{"USE": "$type"}'
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1/used_chart_type",
    "method": "POST",
    "headers": {
        "accept": "application/json",
 "content-type": "application/json",
 "authorization": "Bearer "+token
    },
 "data": JSON.stringify({"USE": type})
}

$.ajax(settings).done(function (response) {
    console.log(response);
});


{
 "status": "ok",
 "message": "Used chart type updated"
}

HTTP Request

POST api/v1/used_chart_type

api/v1/const_temp

curl "https://my.tenko.ua/api/v1/const_temp" \
-H "Accept: application/json" \
-H "Authorization: Bearer $token"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1/const_temp",
    "method": "GET",
    "headers": {
        "accept": "application/json",
 "authorization": "Bearer "+token
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

{
    "COT": {
        "status": "On",
        "temp": "25"
    }
}

HTTP Request

GET api/v1/const_temp

api/v1/const_temp

curl "https://my.tenko.ua/api/v1/const_temp" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $token" \
-X POST -d '{"COT":{"status": "$status","temp": "$temperature"}}'
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1/const_temp",
    "method": "POST",
    "headers": {
        "accept": "application/json",
 "content-type": "application/json",
 "authorization": "Bearer "+token
    },
 "data": JSON.stringify({"COT":{"status": status,"temp": temperature}})
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

{
 "status": "ok",
 "message": "Constant temperature updated"
}

HTTP Request

POST api/v1/const_temp

api/v1/daily_chart

curl "https://my.tenko.ua/api/v1/daily_chart" \
-H "Accept: application/json" \
-H "Authorization: Bearer $token"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1/daily_chart",
    "method": "GET",
    "headers": {
        "accept": "application/json",
 "authorization": "Bearer "+token
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

{
    "DC": [
        {
            "hour": 0,
            "temp": 15
        },
        {
            "hour": 6,
            "temp": 17
        },
        {
            "hour": 7,
            "temp": 18
        },
        {
            "hour": 8,
            "temp": 19
        },
        {
            "hour": 12,
            "temp": 19
        },
        {
            "hour": 14,
            "temp": 19
        },
        {
            "hour": 18,
            "temp": 19
        },
        {
            "hour": 19,
            "temp": 18
        },
        {
            "hour": 20,
            "temp": 17
        },
        {
            "hour": 21,
            "temp": 15
        }
    ]
}

HTTP Request

GET api/v1/daily_chart

api/v1/daily_chart

curl "https://my.tenko.ua/api/v1/daily_chart" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $token" \
-X POST -d '{"DC":[{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"}]}'
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1/daily_chart",
    "method": "POST",
    "headers": {
        "accept": "application/json",
 "content-type": "application/json",
 "authorization": "Bearer "+token
    },
 "data": JSON.stringify({"DC":[{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature}]})
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

{
 "status": "ok",
 "message": "Daily chart updated"
}

HTTP Request

POST api/v1/daily_chart

api/v1/monday_chart

curl "https://my.tenko.ua/api/v1/monday_chart" \
-H "Accept: application/json" \
-H "Authorization: Bearer $token"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1/monday_chart",
    "method": "GET",
    "headers": {
        "accept": "application/json",
 "authorization": "Bearer "+token
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

{
    "MC": [
        {
            "hour": 0,
            "temp": 15
        },
        {
            "hour": 6,
            "temp": 17
        },
        {
            "hour": 7,
            "temp": 18
        },
        {
            "hour": 8,
            "temp": 19
        },
        {
            "hour": 12,
            "temp": 19
        },
        {
            "hour": 14,
            "temp": 19
        },
        {
            "hour": 18,
            "temp": 19
        },
        {
            "hour": 19,
            "temp": 18
        },
        {
            "hour": 20,
            "temp": 17
        },
        {
            "hour": 21,
            "temp": 15
        }
    ]
}

HTTP Request

GET api/v1/monday_chart

api/v1/monday_chart

curl "https://my.tenko.ua/api/v1/monday_chart" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $token" \
-X POST -d '{"MC":[{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"}]}'
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1/monday_chart",
    "method": "POST",
    "headers": {
        "accept": "application/json",
 "content-type": "application/json",
 "authorization": "Bearer "+token
    },
 "data": JSON.stringify({"MC":[{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature}]})
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

{
 "status": "ok",
 "message": "Monday chart updated"
}

HTTP Request

POST api/v1/monday_chart

api/v1/tuesday_chart

curl "https://my.tenko.ua/api/v1/tuesday_chart" \
-H "Accept: application/json" \
-H "Authorization: Bearer $token"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1/tuesday_chart",
    "method": "GET",
    "headers": {
        "accept": "application/json",
 "authorization": "Bearer "+token
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

{
    "TUC": [
        {
            "hour": 0,
            "temp": 15
        },
        {
            "hour": 6,
            "temp": 17
        },
        {
            "hour": 7,
            "temp": 18
        },
        {
            "hour": 8,
            "temp": 19
        },
        {
            "hour": 12,
            "temp": 19
        },
        {
            "hour": 14,
            "temp": 19
        },
        {
            "hour": 18,
            "temp": 19
        },
        {
            "hour": 19,
            "temp": 18
        },
        {
            "hour": 20,
            "temp": 17
        },
        {
            "hour": 21,
            "temp": 15
        }
    ]
}

HTTP Request

GET api/v1/tuesday_chart

api/v1/tuesday_chart

curl "https://my.tenko.ua/api/v1/tuesday_chart" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $token" \
-X POST -d '{"TUC":[{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"}]}'
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1/tuesday_chart",
    "method": "POST",
    "headers": {
        "accept": "application/json",
 "content-type": "application/json",
 "authorization": "Bearer "+token
    },
 "data": JSON.stringify({"TUC":[{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature}]})
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

{
 "status": "ok",
 "message": "Tuesday chart updated"
}

HTTP Request

POST api/v1/tuesday_chart

api/v1/wednesday_chart

curl "https://my.tenko.ua/api/v1/wednesday_chart" \
-H "Accept: application/json" \
-H "Authorization: Bearer $token"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1/wednesday_chart",
    "method": "GET",
    "headers": {
        "accept": "application/json",
 "authorization": "Bearer "+token
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

{
    "WEC": [
        {
            "hour": 0,
            "temp": 15
        },
        {
            "hour": 6,
            "temp": 17
        },
        {
            "hour": 7,
            "temp": 18
        },
        {
            "hour": 8,
            "temp": 19
        },
        {
            "hour": 12,
            "temp": 19
        },
        {
            "hour": 14,
            "temp": 19
        },
        {
            "hour": 18,
            "temp": 19
        },
        {
            "hour": 19,
            "temp": 18
        },
        {
            "hour": 20,
            "temp": 17
        },
        {
            "hour": 21,
            "temp": 15
        }
    ]
}

HTTP Request

GET api/v1/wednesday_chart

api/v1/wednesday_chart

curl "https://my.tenko.ua/api/v1/wednesday_chart" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $token" \
-X POST -d '{"WEC":[{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"}]}'
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1/wednesday_chart",
    "method": "POST",
    "headers": {
        "accept": "application/json",
 "content-type": "application/json",
 "authorization": "Bearer "+token
    },
 "data": JSON.stringify({"WEC":[{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature}]})
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

{
 "status": "ok",
 "message": "Wednesday chart updated"
}

HTTP Request

POST api/v1/wednesday_chart

api/v1/thursday_chart

curl "https://my.tenko.ua/api/v1/thursday_chart" \
-H "Accept: application/json" \
-H "Authorization: Bearer $token"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1/thursday_chart",
    "method": "GET",
    "headers": {
        "accept": "application/json",
 "authorization": "Bearer "+token
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

{
    "THC": [
        {
            "hour": 0,
            "temp": 15
        },
        {
            "hour": 6,
            "temp": 17
        },
        {
            "hour": 7,
            "temp": 18
        },
        {
            "hour": 8,
            "temp": 19
        },
        {
            "hour": 12,
            "temp": 19
        },
        {
            "hour": 14,
            "temp": 19
        },
        {
            "hour": 18,
            "temp": 19
        },
        {
            "hour": 19,
            "temp": 18
        },
        {
            "hour": 20,
            "temp": 17
        },
        {
            "hour": 21,
            "temp": 15
        }
    ]
}

HTTP Request

GET api/v1/thursday_chart

api/v1/thursday_chart

curl "https://my.tenko.ua/api/v1/thursday_chart" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $token" \
-X POST -d '{"THC":[{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"}]}'
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1/thursday_chart",
    "method": "POST",
    "headers": {
        "accept": "application/json",
 "content-type": "application/json",
 "authorization": "Bearer "+token
    },
 "data": JSON.stringify({"THC":[{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature}]})
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

{
 "status": "ok",
 "message": "Thursday chart updated"
}

HTTP Request

POST api/v1/thursday_chart

api/v1/friday_chart

curl "https://my.tenko.ua/api/v1/friday_chart" \
-H "Accept: application/json" \
-H "Authorization: Bearer $token"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1/friday_chart",
    "method": "GET",
    "headers": {
        "accept": "application/json",
 "authorization": "Bearer "+token
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

{
    "FC": [
        {
            "hour": 0,
            "temp": 15
        },
        {
            "hour": 6,
            "temp": 17
        },
        {
            "hour": 7,
            "temp": 18
        },
        {
            "hour": 8,
            "temp": 19
        },
        {
            "hour": 12,
            "temp": 19
        },
        {
            "hour": 14,
            "temp": 19
        },
        {
            "hour": 18,
            "temp": 19
        },
        {
            "hour": 19,
            "temp": 18
        },
        {
            "hour": 20,
            "temp": 17
        },
        {
            "hour": 21,
            "temp": 15
        }
    ]
}

HTTP Request

GET api/v1/friday_chart

api/v1/friday_chart

curl "https://my.tenko.ua/api/v1/friday_chart" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $token" \
-X POST -d '{"FC":[{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"}]}'
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1/friday_chart",
    "method": "POST",
    "headers": {
        "accept": "application/json",
 "content-type": "application/json",
 "authorization": "Bearer "+token
    },
 "data": JSON.stringify({"FC":[{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature}]})
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

{
 "status": "ok",
 "message": "Friday chart updated"
}

HTTP Request

POST api/v1/friday_chart

api/v1/saturday_chart

curl "https://my.tenko.ua/api/v1/saturday_chart" \
-H "Accept: application/json" \
-H "Authorization: Bearer $token"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1/saturday_chart",
    "method": "GET",
    "headers": {
        "accept": "application/json",
 "authorization": "Bearer "+token
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

{
    "SAC": [
        {
            "hour": 0,
            "temp": 15
        },
        {
            "hour": 6,
            "temp": 17
        },
        {
            "hour": 7,
            "temp": 18
        },
        {
            "hour": 8,
            "temp": 19
        },
        {
            "hour": 12,
            "temp": 19
        },
        {
            "hour": 14,
            "temp": 19
        },
        {
            "hour": 18,
            "temp": 19
        },
        {
            "hour": 19,
            "temp": 18
        },
        {
            "hour": 20,
            "temp": 17
        },
        {
            "hour": 21,
            "temp": 15
        }
    ]
}

HTTP Request

GET api/v1/saturday_chart

api/v1/saturday_chart

curl "https://my.tenko.ua/api/v1/saturday_chart" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $token" \
-X POST -d '{"SAC":[{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"}]}'
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1/saturday_chart",
    "method": "POST",
    "headers": {
        "accept": "application/json",
 "content-type": "application/json",
 "authorization": "Bearer "+token
    },
 "data": JSON.stringify({"SAC":[{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature}]})
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

{
 "status": "ok",
 "message": "Saturday chart updated"
}

HTTP Request

POST api/v1/saturday_chart

api/v1/sunday_chart

curl "https://my.tenko.ua/api/v1/sunday_chart" \
-H "Accept: application/json" \
-H "Authorization: Bearer $token"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1/sunday_chart",
    "method": "GET",
    "headers": {
        "accept": "application/json",
 "authorization": "Bearer "+token
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

{
    "SUC": [
        {
            "hour": 0,
            "temp": 15
        },
        {
            "hour": 6,
            "temp": 17
        },
        {
            "hour": 7,
            "temp": 18
        },
        {
            "hour": 8,
            "temp": 19
        },
        {
            "hour": 12,
            "temp": 19
        },
        {
            "hour": 14,
            "temp": 19
        },
        {
            "hour": 18,
            "temp": 19
        },
        {
            "hour": 19,
            "temp": 18
        },
        {
            "hour": 20,
            "temp": 17
        },
        {
            "hour": 21,
            "temp": 15
        }
    ]
}

HTTP Request

GET api/v1/sunday_chart

api/v1/sunday_chart

curl "https://my.tenko.ua/api/v1/sunday_chart" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $token" \
-X POST -d '{"SUC":[{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"}]}'
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1/sunday_chart",
    "method": "POST",
    "headers": {
        "accept": "application/json",
 "content-type": "application/json",
 "authorization": "Bearer "+token
    },
 "data": JSON.stringify({"SUC":[{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature}]})
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

{
 "status": "ok",
 "message": "Sunday chart updated"
}

HTTP Request

POST api/v1/sunday_chart

api/v1/charts

curl "https://my.tenko.ua/api/v1/charts" \
-H "Accept: application/json" \
-H "Authorization: Bearer $token"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1/charts",
    "method": "GET",
    "headers": {
        "accept": "application/json",
 "authorization": "Bearer "+token
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

{
    "USE": "Temp",
    "COT": {
        "status": "On",
        "temp": "25"
    },
    "DC": [
        {
            "hour": 0,
            "temp": 15
        },
        {
            "hour": 6,
            "temp": 17
        },
        {
            "hour": 7,
            "temp": 18
        },
        {
            "hour": 8,
            "temp": 19
        },
        {
            "hour": 12,
            "temp": 19
        },
        {
            "hour": 14,
            "temp": 19
        },
        {
            "hour": 18,
            "temp": 19
        },
        {
            "hour": 19,
            "temp": 18
        },
        {
            "hour": 20,
            "temp": 17
        },
        {
            "hour": 21,
            "temp": 15
        }
    ],
    "MC": [
        {
            "hour": 0,
            "temp": 15
        },
        {
            "hour": 6,
            "temp": 17
        },
        {
            "hour": 7,
            "temp": 18
        },
        {
            "hour": 8,
            "temp": 19
        },
        {
            "hour": 12,
            "temp": 19
        },
        {
            "hour": 14,
            "temp": 19
        },
        {
            "hour": 18,
            "temp": 19
        },
        {
            "hour": 19,
            "temp": 18
        },
        {
            "hour": 20,
            "temp": 17
        },
        {
            "hour": 21,
            "temp": 15
        }
    ],
    "TUC": [
        {
            "hour": 0,
            "temp": 15
        },
        {
            "hour": 6,
            "temp": 17
        },
        {
            "hour": 7,
            "temp": 18
        },
        {
            "hour": 8,
            "temp": 19
        },
        {
            "hour": 12,
            "temp": 19
        },
        {
            "hour": 14,
            "temp": 19
        },
        {
            "hour": 18,
            "temp": 19
        },
        {
            "hour": 19,
            "temp": 18
        },
        {
            "hour": 20,
            "temp": 17
        },
        {
            "hour": 21,
            "temp": 15
        }
    ],
    "WEC": [
        {
            "hour": 0,
            "temp": 15
        },
        {
            "hour": 6,
            "temp": 17
        },
        {
            "hour": 7,
            "temp": 18
        },
        {
            "hour": 8,
            "temp": 19
        },
        {
            "hour": 12,
            "temp": 19
        },
        {
            "hour": 14,
            "temp": 19
        },
        {
            "hour": 18,
            "temp": 19
        },
        {
            "hour": 19,
            "temp": 18
        },
        {
            "hour": 20,
            "temp": 17
        },
        {
            "hour": 21,
            "temp": 15
        }
    ],
    "THC": [
        {
            "hour": 0,
            "temp": 15
        },
        {
            "hour": 6,
            "temp": 17
        },
        {
            "hour": 7,
            "temp": 18
        },
        {
            "hour": 8,
            "temp": 19
        },
        {
            "hour": 12,
            "temp": 19
        },
        {
            "hour": 14,
            "temp": 19
        },
        {
            "hour": 18,
            "temp": 19
        },
        {
            "hour": 19,
            "temp": 18
        },
        {
            "hour": 20,
            "temp": 17
        },
        {
            "hour": 21,
            "temp": 15
        }
    ],
    "FC": [
        {
            "hour": 0,
            "temp": 15
        },
        {
            "hour": 6,
            "temp": 17
        },
        {
            "hour": 7,
            "temp": 18
        },
        {
            "hour": 8,
            "temp": 19
        },
        {
            "hour": 12,
            "temp": 19
        },
        {
            "hour": 14,
            "temp": 19
        },
        {
            "hour": 18,
            "temp": 19
        },
        {
            "hour": 19,
            "temp": 18
        },
        {
            "hour": 20,
            "temp": 17
        },
        {
            "hour": 21,
            "temp": 15
        }
    ],
    "SAC": [
        {
            "hour": 0,
            "temp": 15
        },
        {
            "hour": 6,
            "temp": 17
        },
        {
            "hour": 7,
            "temp": 18
        },
        {
            "hour": 8,
            "temp": 19
        },
        {
            "hour": 12,
            "temp": 19
        },
        {
            "hour": 14,
            "temp": 19
        },
        {
            "hour": 18,
            "temp": 19
        },
        {
            "hour": 19,
            "temp": 18
        },
        {
            "hour": 20,
            "temp": 17
        },
        {
            "hour": 21,
            "temp": 15
        }
    ],
    "SUC": [
        {
            "hour": 0,
            "temp": 15
        },
        {
            "hour": 6,
            "temp": 17
        },
        {
            "hour": 7,
            "temp": 18
        },
        {
            "hour": 8,
            "temp": 19
        },
        {
            "hour": 12,
            "temp": 19
        },
        {
            "hour": 14,
            "temp": 19
        },
        {
            "hour": 18,
            "temp": 19
        },
        {
            "hour": 19,
            "temp": 18
        },
        {
            "hour": 20,
            "temp": 17
        },
        {
            "hour": 21,
            "temp": 15
        }
    ]
}

HTTP Request

GET api/v1/charts

api/v1/charts

curl "https://my.tenko.ua/api/v1/charts" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $token" \ 
-X POST -d '{"USE": "$type", "COT":{"status": "$status","temp": "$const_temperature"}, "DC":[{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"}], "MC":[{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"}], "TUC":[{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"}], "WEC":[{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"}], "THC":[{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"}], "FC":[{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"}], "SAC":[{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"}], "SUC":[{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"},{"hour":"$hour","temp":"$temperature"}]}'
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1/charts",
    "method": "POST",
    "headers": {
        "accept": "application/json",
 "content-type": "application/json",
 "authorization": "Bearer "+token
    },
 "data": JSON.stringify({"USE": type, "COT":{"status": status,"temp": const_temperature}, "DC":[{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature}], "MC":[{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature}], "TUC":[{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature}], "WEC":[{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature}], "THC":[{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature}], "FC":[{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature}], "SAC":[{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature}], "SUC":[{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature},{"hour":hour,"temp":temperature}]})
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

{
 "status": "ok",
 "message": "Charts updated"
}

HTTP Request

POST api/v1/charts

{{menu.errors}}

Request errors

Пример ответа с ошибкой:

{
 "status": "error",
 "message": "Error message text here"
}

v1.1

api/v1.1/modulation *new

Example request:

curl "https://my.tenko.ua/api/v1.1/modulation" \
-H "Accept: application/json" \
-H "Authorization: Bearer $token"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1.1/modulation",
    "method": "GET",
    "headers": {
        "accept": "application/json",
 "authorization": "Bearer "+token
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "MOD": "Off"
}

HTTP Request

GET api/v1.1/modulation

api/v1.1/modulation *new

Example request:

 curl "https://my.tenko.ua/api/v1.1/modulation" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $token" \
-X POST -d '{"MOD" : "On"}'
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://my.tenko.ua/api/v1.1/modulation",
    "method": "POST",
    "headers": {
        "accept": "application/json",
 "content-type": "application/json",
 "authorization": "Bearer "+token
    },
    "data": {
        "MOD": "On"
    }
}
$.ajax(settings).done(function (response) {
    console.log(response);
});

v1.2

{{menu.smartBoiler}}

api/v1.2/smart/maintain_min_temp

Example request:

        
            curl "https://my.tenko.ua/api/v1.2/smart/maintain_min_temp" \
            -H "Accept: application/json" \
            -H "Authorization: Bearer $token"
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/maintain_min_temp",
                "method": "GET",
                "headers": {
                    "accept": "application/json",
                    "authorization": "Bearer "+token
                }
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

Example response:

        
            {
                "MMT": {
                    "min_temp": "13.0",
                    "max_temp": "10.0"
                }
            }
        
    

HTTP Request

GET api/v1.2/smart/maintain_min_temp

api/v1.2/smart/maintain_min_temp

        
            curl "https://my.tenko.ua/api/v1.2/smart/maintain_min_temp" \
            -H "Accept: application/json" \
            -H "Content-Type: application/json" \
            -H "Authorization: Bearer $token" \
            -X POST -d '{"MMT": {"min_temp": "$min_temp","max_temp": "$max_temp"}}'
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/maintain_min_temp",
                "method": "POST",
                "headers": {
                    "accept": "application/json",
                    "content-type": "application/json",
                    "authorization": "Bearer "+token
                },
                "data": JSON.stringify({"MMT" : { "status": status, "min_temp": min_temp, "max_temp": max_temp }})
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

        
            {
                "status": "ok",
                "message": "MMT updated"
            }
        
    

HTTP Request

POST api/v1.2/smart/maintain_min_temp

api/v1.2/smart/water_feed

Example request:

        
            curl "https://my.tenko.ua/api/v1.2/smart/water_feed" \
            -H "Accept: application/json" \
            -H "Authorization: Bearer $token"
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/water_feed",
                "method": "GET",
                "headers": {
                    "accept": "application/json",
                    "authorization": "Bearer "+token
                }
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

Example response:

        
            {
                "WF": {
                    "temp": "44.0",
                    "delta": "4.0"
                }
            }
        
    

HTTP Request

GET api/v1.2/smart/water_feed

api/v1.2/smart/water_feed

        
            curl "https://my.tenko.ua/api/v1.2/smart/water_feed" \
            -H "Accept: application/json" \
            -H "Content-Type: application/json" \
            -H "Authorization: Bearer $token" \
            -X POST -d '{"WF": {"temp": "$temp","delta": "$delta"}}'
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/water_feed",
                "method": "POST",
                "headers": {
                    "accept": "application/json",
                    "content-type": "application/json",
                    "authorization": "Bearer "+token
                },
                "data": JSON.stringify({"WF": {"temp": "$temp","delta": "$delta"}})
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

        
            {
                "status": "ok",
                "message": "WF updated"
            }
        
    

HTTP Request

POST api/v1.2/smart/water_feed

api/v1.2/smart/returned_water_feed

Example request:

        
            curl "https://my.tenko.ua/api/v1.2/smart/returned_water_feed" \
            -H "Accept: application/json" \
            -H "Authorization: Bearer $token"
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/returned_water_feed",
                "method": "GET",
                "headers": {
                    "accept": "application/json",
                    "authorization": "Bearer "+token
                }
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

Example response:

        
            {
                "RWF": {
                    "temp": "25.0",
                    "delta": "5.0"
                }
            }
        
    

HTTP Request

GET api/v1.2/smart/returned_water_feed

api/v1.2/smart/returned_water_feed

        
            curl "https://my.tenko.ua/api/v1.2/smart/returned_water_feed" \
            -H "Accept: application/json" \
            -H "Content-Type: application/json" \
            -H "Authorization: Bearer $token" \
            -X POST -d '{"WF": {"temp": "$temp","delta": "$delta"}}'
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/returned_water_feed",
                "method": "POST",
                "headers": {
                    "accept": "application/json",
                    "content-type": "application/json",
                    "authorization": "Bearer "+token
                },
                "data": JSON.stringify({"WF": {"temp": "$temp","delta": "$delta"}})
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

        
            {
                "status": "ok",
                "message": "RWF updated"
            }
        
    

HTTP Request

POST api/v1.2/smart/returned_water_feed

api/v1.2/smart/pauses

Example request:

        
            curl "https://my.tenko.ua/api/v1.2/smart/pauses" \
            -H "Accept: application/json" \
            -H "Authorization: Bearer $token"
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/pauses",
                "method": "GET",
                "headers": {
                    "accept": "application/json",
                    "authorization": "Bearer "+token
                }
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

Example response:

        
            {
                "PSS": {
                    "up": "1",
                    "dd": "2",
                    "a": "On",
                    "ss": "30",
                    "ns": "Off"
                }
            }
        
    

HTTP Request

GET api/v1.2/smart/pauses

api/v1.2/smart/pauses

        
            curl "https://my.tenko.ua/api/v1.2/smart/pauses" \
            -H "Accept: application/json" \
            -H "Content-Type: application/json" \
            -H "Authorization: Bearer $token" \
            -X POST -d '{"PSS": {"up": "$up","dd": "$dd","a": "$a","ss": "$ss","ns": "$ns"}}'
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/pauses",
                "method": "POST",
                "headers": {
                    "accept": "application/json",
                    "content-type": "application/json",
                    "authorization": "Bearer "+token
                },
                "data": JSON.stringify({"PSS": {"up": "$up","dd": "$dd","a": "$a","ss": "$ss","ns": "$ns"}})
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

        
            {
                "status": "ok",
                "message": "Pauses updated"
            }
        
    

HTTP Request

POST api/v1.2/smart/pauses

api/v1.2/smart/modulation

Example request:

        
            curl "https://my.tenko.ua/api/v1.2/smart/modulation" \
            -H "Accept: application/json" \
            -H "Authorization: Bearer $token"
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/modulation",
                "method": "GET",
                "headers": {
                    "accept": "application/json",
                    "authorization": "Bearer "+token
                }
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

Example response:

        
            {
                "MOD": {
                    "x": "Off",
                    "y": "On",
                    "h": "1",
                    "a": "3"
                }
            }
        
    

HTTP Request

GET api/v1.2/smart/modulation

api/v1.2/smart/modulation

        
            curl "https://my.tenko.ua/api/v1.2/smart/modulation" \
            -H "Accept: application/json" \
            -H "Content-Type: application/json" \
            -H "Authorization: Bearer $token" \
            -X POST -d '{"MOD": {"x": "$x"}}'
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/modulation",
                "method": "POST",
                "headers": {
                    "accept": "application/json",
                    "content-type": "application/json",
                    "authorization": "Bearer "+token
                },
                "data": JSON.stringify({"MOD": {"x": "$x"}})
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

        
            {
                "status": "ok",
                "message": "MOD updated"
            }
        
    

HTTP Request

POST api/v1.2/smart/modulation

api/v1.2/smart/settings

Example request:

        
            curl "https://my.tenko.ua/api/v1.2/smart/settings" \
            -H "Accept: application/json" \
            -H "Authorization: Bearer $token"
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/settings",
                "method": "GET",
                "headers": {
                    "accept": "application/json",
                    "authorization": "Bearer "+token
                }
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

Example response:

        
            {
                "MMT": {
                    "min_temp": "11",
                    "max_temp": "11"
                },
                "WF": {
                    "temp": "44.0",
                    "delta": "4.0"
                },
                "RWF": {
                    "temp": "25.0",
                    "delta": "5.0"
                },
                "PSS": {
                    "up": "1",
                    "dd": "2",
                    "a": "On",
                    "ss": "30",
                    "ns": "Off"
                },
                "MOD": {
                    "x": "Off",
                    "y": "On",
                    "h": "1",
                    "a": "3"
                }
            }
        
    

HTTP Request

GET api/v1.2/smart/settings

api/v1.2/smart/settings

        
            curl "https://my.tenko.ua/api/v1.2/smart/settings" \
            -H "Accept: application/json" \
            -H "Content-Type: application/json" \
            -H "Authorization: Bearer $token" \
            -X POST -d '
            {
                "MMT": {
                    "min_temp": "$min_temp",
                    "max_temp": "$max_temp"
                },
                "WF": {
                    "temp": "$temp",
                    "delta": "$delta"
                },
                "RWF": {
                    "temp": "$temp",
                    "delta": "$delta"
                },
                "PSS": {
                    "up": "$up",
                    "dd": "$dd",
                    "a": "$a",
                    "ss": "$ss",
                    "ns": "$ns"
                },
                "MOD": {
                    "x": "$x",
                }
            }'
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/settings",
                "method": "POST",
                "headers": {
                    "accept": "application/json",
                    "content-type": "application/json",
                    "authorization": "Bearer "+token
                },
                "data": JSON.stringify({
                    "MMT": {
                        "min_temp": "$min_temp",
                        "max_temp": "$max_temp"
                    },
                    "WF": {
                        "temp": "$temp",
                        "delta": "$delta"
                    },
                    "RWF": {
                        "temp": "$temp",
                        "delta": "$delta"
                    },
                    "PSS": {
                        "up": "$up",
                        "dd": "$dd",
                        "a": "$a",
                        "ss": "$ss",
                        "ns": "$ns"
                    },
                    "MOD": {
                        "x": "$x",
                    }
                })
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

        
            {
                "status": "ok",
                "message": "Settings updated"
            }
        
    

HTTP Request

POST api/v1.2/smart/settings

api/v1.2/smart/serial

Example request:

        
            curl "https://my.tenko.ua/api/v1.2/smart/serial" \
            -H "Accept: application/json" \
            -H "Authorization: Bearer $token"
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/serial",
                "method": "GET",
                "headers": {
                    "accept": "application/json",
                    "authorization": "Bearer "+token
                }
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

Example response:

        
            {
                "SN": "pine_smart_test"
            }
        
    

HTTP Request

GET api/v1.2/smart/serial

api/v1.2/smart/version

Example request:

        
            curl "https://my.tenko.ua/api/v1.2/smart/version" \
            -H "Accept: application/json" \
            -H "Authorization: Bearer $token"
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/version",
                "method": "GET",
                "headers": {
                    "accept": "application/json",
                    "authorization": "Bearer "+token
                }
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

Example response:

        
            {
                "VER": "v0.63"
            }
        
    

HTTP Request

GET api/v1.2/smart/version

api/v1.2/smart/at_state

Example request:

        
            curl "https://my.tenko.ua/api/v1.2/smart/at_state" \
            -H "Accept: application/json" \
            -H "Authorization: Bearer $token"
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/at_state",
                "method": "GET",
                "headers": {
                    "accept": "application/json",
                    "authorization": "Bearer "+token
                }
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

Example response:

        
            {
                "AT": "27"
            }
        
    

HTTP Request

GET api/v1.2/smart/at_state

api/v1.2/smart/wf_state

Example request:

        
            curl "https://my.tenko.ua/api/v1.2/smart/wf_state" \
            -H "Accept: application/json" \
            -H "Authorization: Bearer $token"
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/wf_state",
                "method": "GET",
                "headers": {
                    "accept": "application/json",
                    "authorization": "Bearer "+token
                }
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

Example response:

        
            {
                "WFT": "23.6"
            }
        
    

HTTP Request

GET api/v1.2/smart/wf_state

api/v1.2/smart/rwf_state

Example request:

        
            curl "https://my.tenko.ua/api/v1.2/smart/rwf_state" \
            -H "Accept: application/json" \
            -H "Authorization: Bearer $token"
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/rwf_state",
                "method": "GET",
                "headers": {
                    "accept": "application/json",
                    "authorization": "Bearer "+token
                }
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

Example response:

        
            {
                "RWFT": "0"
            }
        
    

HTTP Request

GET api/v1.2/smart/rwf_state

api/v1.2/smart/pmp_state

Example request:

        
            curl "https://my.tenko.ua/api/v1.2/smart/pmp_state" \
            -H "Accept: application/json" \
            -H "Authorization: Bearer $token"
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/pmp_state",
                "method": "GET",
                "headers": {
                    "accept": "application/json",
                    "authorization": "Bearer "+token
                }
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

Example response:

        
            {
                "PMP": [
                    "On",
                    [
                        "NC"
                    ]
                ]
            }
        
    

HTTP Request

GET api/v1.2/smart/pmp_state

api/v1.2/smart/prsr_state

Example request:

        
            curl "https://my.tenko.ua/api/v1.2/smart/prsr_state" \
            -H "Accept: application/json" \
            -H "Authorization: Bearer $token"
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/prsr_state",
                "method": "GET",
                "headers": {
                    "accept": "application/json",
                    "authorization": "Bearer "+token
                }
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

Example response:

        
            {
                "PRS": "2.8"
            }
        
    

HTTP Request

GET api/v1.2/smart/prsr_state

api/v1.2/smart/mmt_state

Example request:

        
            curl "https://my.tenko.ua/api/v1.2/smart/mmt_state" \
            -H "Accept: application/json" \
            -H "Authorization: Bearer $token"
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/mmt_state",
                "method": "GET",
                "headers": {
                    "accept": "application/json",
                    "authorization": "Bearer "+token
                }
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

Example response:

        
            {
                "MMT": {
                    "status": "Off",
                    "temp": "27.0"
                }
            }
        
    

HTTP Request

GET api/v1.2/smart/mmt_state

api/v1.2/smart/stat_state

Example request:

        
            curl "https://my.tenko.ua/api/v1.2/smart/stat_state" \
            -H "Accept: application/json" \
            -H "Authorization: Bearer $token"
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/stat_state",
                "method": "GET",
                "headers": {
                    "accept": "application/json",
                    "authorization": "Bearer "+token
                }
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

Example response:

        
            {
                "STAT": "91"
            }
        
    

HTTP Request

GET api/v1.2/smart/stat_state

api/v1.2/smart/day_stat_state

Example request:

        
            curl "https://my.tenko.ua/api/v1.2/smart/day_stat_state" \
            -H "Accept: application/json" \
            -H "Authorization: Bearer $token"
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/day_stat_state",
                "method": "GET",
                "headers": {
                    "accept": "application/json",
                    "authorization": "Bearer "+token
                }
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

Example response:

        
            {
                "DSTAT": "13"
            }
        
    

HTTP Request

GET api/v1.2/smart/day_stat_state

api/v1.2/smart/day_stat_state

        
            curl "https://my.tenko.ua/api/v1.2/smart/day_stat_state" \
            -H "Accept: application/json" \
            -H "Content-Type: application/json" \
            -H "Authorization: Bearer $token" \
            -X POST -d '{"DSTAT":"$dstat"}'
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/day_stat_state",
                "method": "POST",
                "headers": {
                    "accept": "application/json",
                    "content-type": "application/json",
                    "authorization": "Bearer "+token
                },
                "data": JSON.stringify({"DSTAT":"$dstat"})
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

        
            {
                "status": "ok",
                "message": "STA_days updated"
            }
        
    

HTTP Request

POST api/v1.2/smart/day_stat_state

api/v1.2/smart/year_stat_state

Example request:

        
            curl "https://my.tenko.ua/api/v1.2/smart/year_stat_state" \
            -H "Accept: application/json" \
            -H "Authorization: Bearer $token"
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/year_stat_state",
                "method": "GET",
                "headers": {
                    "accept": "application/json",
                    "authorization": "Bearer "+token
                }
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

Example response:

        
            {
                "YSTAT": [
                    "0.0",
                    "0.0",
                    "0.0",
                    "0.0",
                    "0.0",
                    "0.0",
                    "0.0",
                    "0.0",
                    "0.0",
                    "0.0",
                    "0.0",
                    "0.0"
                ]
            }
        
    

HTTP Request

GET api/v1.2/smart/year_stat_state

api/v1.2/smart/boiler_date_state

Example request:

        
            curl "https://my.tenko.ua/api/v1.2/smart/boiler_date_state" \
            -H "Accept: application/json" \
            -H "Authorization: Bearer $token"
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/boiler_date_state",
                "method": "GET",
                "headers": {
                    "accept": "application/json",
                    "authorization": "Bearer "+token
                }
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

Example response:

        
            {
                "BDT": {
                    "h": "19",
                    "m": "53",
                    "dow": "5",
                    "dd": "26",
                    "mm": "3",
                    "yy": "21"
                }
            }
        
    

HTTP Request

GET api/v1.2/smart/boiler_date_state

api/v1.2/smart/boiler_errors_state

Example request:

        
            curl "https://my.tenko.ua/api/v1.2/smart/boiler_errors_state" \
            -H "Accept: application/json" \
            -H "Authorization: Bearer $token"
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/boiler_errors_state",
                "method": "GET",
                "headers": {
                    "accept": "application/json",
                    "authorization": "Bearer "+token
                }
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

Example response:

        
            {
                "ERR": {
                    "type_total": 0,
                    "type_time": 1
                }
            }
        
    

HTTP Request

GET api/v1.2/smart/boiler_errors_state

api/v1.2/smart/power_state

Example request:

        
            curl "https://my.tenko.ua/api/v1.2/smart/power_state" \
            -H "Accept: application/json" \
            -H "Authorization: Bearer $token"
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/power_state",
                "method": "GET",
                "headers": {
                    "accept": "application/json",
                    "authorization": "Bearer "+token
                }
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

Example response:

        
            {
                "POW": 3
            }
        
    

HTTP Request

GET api/v1.2/smart/power_state

api/v1.2/smart/modulation_state

modulation_state

Example request:

        
            curl "https://my.tenko.ua/api/v1.2/smart/modulation_state" \
            -H "Accept: application/json" \
            -H "Authorization: Bearer $token"
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/modulation_state",
                "method": "GET",
                "headers": {
                    "accept": "application/json",
                    "authorization": "Bearer "+token
                }
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

Example response:

        
            {
                "MOD": {
                    "x": "Off",
                    "y": "On",
                    "h": "1",
                    "a": "3"
                }
            }
        
    

HTTP Request

GET api/v1.2/smart/modulation_state

api/v1.2/smart/af_state

Example request:

        
            curl "https://my.tenko.ua/api/v1.2/smart/af_state" \
            -H "Accept: application/json" \
            -H "Authorization: Bearer $token"
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/af_state",
                "method": "GET",
                "headers": {
                    "accept": "application/json",
                    "authorization": "Bearer "+token
                }
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

Example response:

        
            {
                "AF": "On"
            }
        
    

HTTP Request

GET api/v1.2/smart/af_state

api/v1.2/smart/total_state

Example request:

        
            curl "https://my.tenko.ua/api/v1.2/smart/total_state" \
            -H "Accept: application/json" \
            -H "Authorization: Bearer $token"
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/total_state",
                "method": "GET",
                "headers": {
                    "accept": "application/json",
                    "authorization": "Bearer "+token
                }
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

Example response:

        
            {
                "SN": "pine_smart_test",
                "VER": "v0.63",
                "AT": "27",
                "WFT": "23.6",
                "RWFT": "0",
                "PMP": [
                    "On",
                    [
                        "NC"
                    ]
                ],
                "PRS": "2.8",
                "MMT": {
                    "status": "Off",
                    "temp": "27.0"
                },
                "STAT": 276,
                "YSTAT": [
                    "0.0",
                    "0.0",
                    "0.0",
                    "0.0",
                    "0.0",
                    "0.0",
                    "0.0",
                    "0.0",
                    "0.0",
                    "0.0",
                    "0.0",
                    "0.0"
                ],
                "BDT": {
                    "h": "19",
                    "m": "53",
                    "dow": "5",
                    "dd": "26",
                    "mm": "3",
                    "yy": "21"
                },
                "ERR": {
                    "type_total": 0,
                    "type_time": 1
                },
                "POW": 3,
                "MOD": {
                    "x": "Off",
                    "y": "On",
                    "h": "1",
                    "a": "3"
                },
                "AF": "On",
                "DSTAT": 23
            }
        
    

HTTP Request

GET api/v1.2/smart/total_state

api/v1.2/smart/hqty_state

Example request:

        
            curl "https://my.tenko.ua/api/v1.2/smart/hqty_state" \
            -H "Accept: application/json" \
            -H "Authorization: Bearer $token"
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/hqty_state",
                "method": "GET",
                "headers": {
                    "accept": "application/json",
                    "authorization": "Bearer "+token
                }
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

Example response:

        
            {
                "Hqty": {
                    "x": "2",
                    "y": "3"
                }
            }
        
    

HTTP Request

GET api/v1.2/smart/hqty_state

api/v1.2/smart/hqty_state

        
            curl "https://my.tenko.ua/api/v1.2/smart/hqty_state" \
            -H "Accept: application/json" \
            -H "Content-Type: application/json" \
            -H "Authorization: Bearer $token" \
            -X POST -d '{"HQTY": {"x":"$x"}}'
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/hqty_state",
                "method": "POST",
                "headers": {
                    "accept": "application/json",
                    "content-type": "application/json",
                    "authorization": "Bearer "+token
                },
                "data": JSON.stringify({"DSTAT":"$dstat"})
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

        
            {
                "status": "ok",
                "message": "HQTY Current heat quantity updated"
            }
        
    

HTTP Request

POST api/v1.2/smart/hqty_state

api/v1.2/smart/pnow_state

Example request:

        
            curl "https://my.tenko.ua/api/v1.2/smart/pnow_state" \
            -H "Accept: application/json" \
            -H "Authorization: Bearer $token"
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/pnow_state",
                "method": "GET",
                "headers": {
                    "accept": "application/json",
                    "authorization": "Bearer "+token
                }
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

Example response:

        
            {
                "Pnow": {
                    "x": 1
                }
            }
        
    

HTTP Request

GET api/v1.2/smart/pnow_state

api/v1.2/smart/sens_state

Example request:

        
            curl "https://my.tenko.ua/api/v1.2/smart/sens_state" \
            -H "Accept: application/json" \
            -H "Authorization: Bearer $token"
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/sens_state",
                "method": "GET",
                "headers": {
                    "accept": "application/json",
                    "authorization": "Bearer "+token
                }
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

Example response:

        
            {
                "Sens": [
                    "wire",
                    "open"
                ]
            }
        
    

HTTP Request

GET api/v1.2/smart/sens_state

api/v1.2/smart/sens_state

        
            curl "https://my.tenko.ua/api/v1.2/smart/sens_state" \
            -H "Accept: application/json" \
            -H "Content-Type: application/json" \
            -H "Authorization: Bearer $token" \
            -X POST -d '{"Sens": "$sens"}'
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/sens_state",
                "method": "POST",
                "headers": {
                    "accept": "application/json",
                    "content-type": "application/json",
                    "authorization": "Bearer "+token
                },
                "data": JSON.stringify({"Sens": "$sens"})
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

        
            {
                "status": "ok",
                "message": "Sens updated"
            }
        
    

HTTP Request

POST api/v1.2/smart/sens_state

api/v1.2/smart/per_state

Example request:

        
            curl "https://my.tenko.ua/api/v1.2/smart/per_state" \
            -H "Accept: application/json" \
            -H "Authorization: Bearer $token"
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/per_state",
                "method": "GET",
                "headers": {
                    "accept": "application/json",
                    "authorization": "Bearer "+token
                }
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

Example response:

        
            {
                "PEr": {
                    "UNK": true,
                    "Err1": [
                        "1",
                        "2",
                        "3"
                    ],
                    "Err4": false
                }
            }
        
    

HTTP Request

GET api/v1.2/smart/per_state

api/v1.2/smart/hws_state

Example request:

        
            curl "https://my.tenko.ua/api/v1.2/smart/hws_state" \
            -H "Accept: application/json" \
            -H "Authorization: Bearer $token"
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/hws_state",
                "method": "GET",
                "headers": {
                    "accept": "application/json",
                    "authorization": "Bearer "+token
                }
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

Example response:

        
            {
                "HWS": [
                    "Off",
                    "tank"
                ]
            }
        
    

HTTP Request

GET api/v1.2/smart/hws_state

api/v1.2/smart/hws_state

        
            curl "https://my.tenko.ua/api/v1.2/smart/hws_state" \
            -H "Accept: application/json" \
            -H "Content-Type: application/json" \
            -H "Authorization: Bearer $token" \
            -X POST -d '{"HWS": "$hws"}'
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/hws_state",
                "method": "POST",
                "headers": {
                    "accept": "application/json",
                    "content-type": "application/json",
                    "authorization": "Bearer "+token
                },
                "data": JSON.stringify({"HWS": "$hws"})
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

        
            {
                "status": "ok",
                "message": "HWS updated"
            }
        
    

HTTP Request

POST api/v1.2/smart/hws_state

api/v1.2/smart/thws_state

Example request:

        
            curl "https://my.tenko.ua/api/v1.2/smart/thws_state" \
            -H "Accept: application/json" \
            -H "Authorization: Bearer $token"
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/thws_state",
                "method": "GET",
                "headers": {
                    "accept": "application/json",
                    "authorization": "Bearer "+token
                }
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

Example response:

        
            {
                "tHWS": [
                    "23",
                    "24.1"
                ]
            }
        
    

HTTP Request

GET api/v1.2/smart/thws_state

api/v1.2/smart/thws_state

        
            curl "https://my.tenko.ua/api/v1.2/smart/thws_state" \
            -H "Accept: application/json" \
            -H "Content-Type: application/json" \
            -H "Authorization: Bearer $token" \
            -X POST -d '{"tHWS": "$tHWS"}'
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/thws_state",
                "method": "POST",
                "headers": {
                    "accept": "application/json",
                    "content-type": "application/json",
                    "authorization": "Bearer "+token
                },
                "data": JSON.stringify({"tHWS": "$tHWS"})
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

        
            {
                "status": "ok",
                "message": "tHWS updated"
            }
        
    

HTTP Request

POST api/v1.2/smart/thws_state

api/v1.2/smart/feed_hws_state

Example request:

        
            curl "https://my.tenko.ua/api/v1.2/smart/feed_hws_state" \
            -H "Accept: application/json" \
            -H "Authorization: Bearer $token"
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/feed_hws_state",
                "method": "GET",
                "headers": {
                    "accept": "application/json",
                    "authorization": "Bearer "+token
                }
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

Example response:

        
            {
                "feedHWS": [
                    "23",
                    "23.6"
                ]
            }
        
    

HTTP Request

GET api/v1.2/smart/feed_hws_state

api/v1.2/smart/feed_hws_state

        
            curl "https://my.tenko.ua/api/v1.2/smart/feed_hws_state" \
            -H "Accept: application/json" \
            -H "Content-Type: application/json" \
            -H "Authorization: Bearer $token" \
            -X POST -d '{"feedHWS": "$feedHWS"}'
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/feed_hws_state",
                "method": "POST",
                "headers": {
                    "accept": "application/json",
                    "content-type": "application/json",
                    "authorization": "Bearer "+token
                },
                "data": JSON.stringify({"feedHWS": "$feedHWS"})
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

        
            {
                "status": "ok",
                "message": "feedHWS updated"
            }
        
    

HTTP Request

POST api/v1.2/smart/feed_hws_state

api/v1.2/smart/err_state

Example request:

        
            curl "https://my.tenko.ua/api/v1.2/smart/err_state" \
            -H "Accept: application/json" \
            -H "Authorization: Bearer $token"
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/err_state",
                "method": "GET",
                "headers": {
                    "accept": "application/json",
                    "authorization": "Bearer "+token
                }
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

Example response:

        
            {
                "Err": false
            }
        
    

HTTP Request

GET api/v1.2/smart/err_state

api/v1.2/smart/used_chart_type

Example request:

        
            curl "https://my.tenko.ua/api/v1.2/smart/used_chart_type" \
            -H "Accept: application/json" \
            -H "Authorization: Bearer $token"
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/used_chart_type",
                "method": "GET",
                "headers": {
                    "accept": "application/json",
                    "authorization": "Bearer "+token
                }
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

Example response:

        
            {
                "USE": "WChart"
            }
        
    

HTTP Request

GET api/v1.2/smart/used_chart_type

api/v1.2/smart/used_chart_type

        
            curl "https://my.tenko.ua/api/v1.2/smart/used_chart_type" \
            -H "Accept: application/json" \
            -H "Content-Type: application/json" \
            -H "Authorization: Bearer $token" \
            -X POST -d '{"USE": "$use"}'
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/used_chart_type",
                "method": "POST",
                "headers": {
                    "accept": "application/json",
                    "content-type": "application/json",
                    "authorization": "Bearer "+token
                },
                "data": JSON.stringify({"USE": "$use"})
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

        
            {
                "status": "ok",
                "message": "Used chart type updated"
            }
        
    

HTTP Request

POST api/v1.2/smart/used_chart_type

api/v1.2/smart/const_temp

Example request:

        
            curl "https://my.tenko.ua/api/v1.2/smart/const_temp" \
            -H "Accept: application/json" \
            -H "Authorization: Bearer $token"
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/const_temp",
                "method": "GET",
                "headers": {
                    "accept": "application/json",
                    "authorization": "Bearer "+token
                }
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

Example response:

        
            {
                "COT": {
                    "x": "22",
                    "y": "0.31"
                }
            }
        
    

HTTP Request

GET api/v1.2/smart/const_temp

api/v1.2/smart/const_temp

        
            curl "https://my.tenko.ua/api/v1.2/smart/const_temp" \
            -H "Accept: application/json" \
            -H "Content-Type: application/json" \
            -H "Authorization: Bearer $token" \
            -X POST -d '{"COT": {"x": "$x","y": "$y"}}'
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/const_temp",
                "method": "POST",
                "headers": {
                    "accept": "application/json",
                    "content-type": "application/json",
                    "authorization": "Bearer "+token
                },
                "data": JSON.stringify({"COT": {"x": "$x","y": "$y"}})
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

        
            {
                "status": "ok",
                "message": "Constant temperature updated"
            }
        
    

HTTP Request

POST api/v1.2/smart/const_temp

api/v1.2/smart/daily_chart

Example request:

        
            curl "https://my.tenko.ua/api/v1.2/smart/daily_chart" \
            -H "Accept: application/json" \
            -H "Authorization: Bearer $token"
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/daily_chart",
                "method": "GET",
                "headers": {
                    "accept": "application/json",
                    "authorization": "Bearer "+token
                }
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

Example response:

        
            {
                "DC": [
                    {
                        "hour": "5",
                        "temp": "34.5"
                    },
                    {
                        "hour": "1",
                        "temp": "22.9"
                    },
                    {
                        "hour": "6",
                        "temp": "30.0"
                    },
                    {
                        "hour": "12",
                        "temp": "30.0"
                    },
                    {
                        "hour": "22",
                        "temp": "22.2"
                    }
                ]
            }
        
    

HTTP Request

GET api/v1.2/smart/daily_chart

api/v1.2/smart/daily_chart

        
            curl "https://my.tenko.ua/api/v1.2/smart/daily_chart" \
            -H "Accept: application/json" \
            -H "Content-Type: application/json" \
            -H "Authorization: Bearer $token" \
            -X POST -d '{
                            "DC": [
                                {
                                    "hour": "$hour[1]",
                                    "temp": "$temp[1]"
                                },
                                {
                                    "hour": "$hour[2]",
                                    "temp": "$temp[2]"
                                },
                                {
                                    "hour": "$hour[3]",
                                    "temp": "$temp[3]"
                                },
                                {
                                    "hour": "$hour[4]",
                                    "temp": "$temp[4]"
                                },
                                {
                                    "hour": "$hour[5]",
                                    "temp": "$temp[5]"
                                }
                            ]
                        }'
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/daily_chart",
                "method": "POST",
                "headers": {
                    "accept": "application/json",
                    "content-type": "application/json",
                    "authorization": "Bearer "+token
                },
                "data": JSON.stringify({
                            "DC": [
                                {
                                    "hour": "$hour[1]",
                                    "temp": "$temp[1]"
                                },
                                {
                                    "hour": "$hour[2]",
                                    "temp": "$temp[2]"
                                },
                                {
                                    "hour": "$hour[3]",
                                    "temp": "$temp[3]"
                                },
                                {
                                    "hour": "$hour[4]",
                                    "temp": "$temp[4]"
                                },
                                {
                                    "hour": "$hour[5]",
                                    "temp": "$temp[5]"
                                }
                            ]
                        })
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

        
            {
                "status": "ok",
                "message": "Daily chart updated"
            }
        
    

HTTP Request

POST api/v1.2/smart/daily_chart

api/v1.2/smart/monday_chart

Example request:

        
            curl "https://my.tenko.ua/api/v1.2/smart/monday_chart" \
            -H "Accept: application/json" \
            -H "Authorization: Bearer $token"
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/monday_chart",
                "method": "GET",
                "headers": {
                    "accept": "application/json",
                    "authorization": "Bearer "+token
                }
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

Example response:

        
            {
                "MC": [
                    {
                        "hour": "01",
                        "temp": "40.0"
                    },
                    {
                        "hour": "03",
                        "temp": "22.0"
                    },
                    {
                        "hour": "04",
                        "temp": "22.0"
                    },
                    {
                        "hour": "05",
                        "temp": "22.0"
                    },
                    {
                        "hour": "06",
                        "temp": "22.0"
                    },
                    {
                        "hour": "07",
                        "temp": "OFF"
                    },
                    {
                        "hour": "08",
                        "temp": "OFF"
                    },
                    {
                        "hour": "09",
                        "temp": "40.0"
                    },
                    {
                        "hour": "17",
                        "temp": "22.0"
                    },
                    {
                        "hour": "23",
                        "temp": "22.0"
                    }
                ]
            }
        
    

HTTP Request

GET api/v1.2/smart/monday_chart

api/v1.2/smart/monday_chart

        
            curl "https://my.tenko.ua/api/v1.2/smart/monday_chart" \
            -H "Accept: application/json" \
            -H "Content-Type: application/json" \
            -H "Authorization: Bearer $token" \
            -X POST -d '{
                            "MC": [
                                {
                                    "hour": "$hour[1]",
                                    "temp": "$temp[1]"
                                },
                                {
                                    "hour": "$hour[2]",
                                    "temp": "$temp[2]"
                                },
                                {
                                    "hour": "$hour[3]",
                                    "temp": "$temp[3]"
                                },
                                {
                                    "hour": "$hour[4]",
                                    "temp": "$temp[4]"
                                },
                                {
                                    "hour": "$hour[5]",
                                    "temp": "$temp[5]"
                                }
                            ]
                        }'
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/monday_chart",
                "method": "POST",
                "headers": {
                    "accept": "application/json",
                    "content-type": "application/json",
                    "authorization": "Bearer "+token
                },
                "data": JSON.stringify({
                            "MC": [
                                {
                                    "hour": "$hour[1]",
                                    "temp": "$temp[1]"
                                },
                                {
                                    "hour": "$hour[2]",
                                    "temp": "$temp[2]"
                                },
                                {
                                    "hour": "$hour[3]",
                                    "temp": "$temp[3]"
                                },
                                {
                                    "hour": "$hour[4]",
                                    "temp": "$temp[4]"
                                },
                                {
                                    "hour": "$hour[5]",
                                    "temp": "$temp[5]"
                                }
                            ]
                        })
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

        
            {
                "status": "ok",
                "message": "Monday chart updated"
            }
        
    

HTTP Request

POST api/v1.2/smart/monday_chart

api/v1.2/smart/tuesday_chart

Example request:

        
            curl "https://my.tenko.ua/api/v1.2/smart/tuesday_chart" \
            -H "Accept: application/json" \
            -H "Authorization: Bearer $token"
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/tuesday_chart",
                "method": "GET",
                "headers": {
                    "accept": "application/json",
                    "authorization": "Bearer "+token
                }
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

Example response:

        
            {
                "TUC": [
                    {
                        "hour": "01",
                        "temp": "40.0"
                    },
                    {
                        "hour": "03",
                        "temp": "22.0"
                    },
                    {
                        "hour": "04",
                        "temp": "22.0"
                    },
                    {
                        "hour": "05",
                        "temp": "22.0"
                    },
                    {
                        "hour": "06",
                        "temp": "22.0"
                    },
                    {
                        "hour": "07",
                        "temp": "OFF"
                    },
                    {
                        "hour": "08",
                        "temp": "OFF"
                    },
                    {
                        "hour": "09",
                        "temp": "40.0"
                    },
                    {
                        "hour": "17",
                        "temp": "22.0"
                    },
                    {
                        "hour": "23",
                        "temp": "22.0"
                    }
                ]
            }
        
    

HTTP Request

GET api/v1.2/smart/tuesday_chart

api/v1.2/smart/tuesday_chart

        
            curl "https://my.tenko.ua/api/v1.2/smart/tuesday_chart" \
            -H "Accept: application/json" \
            -H "Content-Type: application/json" \
            -H "Authorization: Bearer $token" \
            -X POST -d '{
                            "TUC": [
                                {
                                    "hour": "$hour[1]",
                                    "temp": "$temp[1]"
                                },
                                {
                                    "hour": "$hour[2]",
                                    "temp": "$temp[2]"
                                },
                                {
                                    "hour": "$hour[3]",
                                    "temp": "$temp[3]"
                                },
                                {
                                    "hour": "$hour[4]",
                                    "temp": "$temp[4]"
                                },
                                {
                                    "hour": "$hour[5]",
                                    "temp": "$temp[5]"
                                }
                            ]
                        }'
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/tuesday_chart",
                "method": "POST",
                "headers": {
                    "accept": "application/json",
                    "content-type": "application/json",
                    "authorization": "Bearer "+token
                },
                "data": JSON.stringify({
                            "TUC": [
                                {
                                    "hour": "$hour[1]",
                                    "temp": "$temp[1]"
                                },
                                {
                                    "hour": "$hour[2]",
                                    "temp": "$temp[2]"
                                },
                                {
                                    "hour": "$hour[3]",
                                    "temp": "$temp[3]"
                                },
                                {
                                    "hour": "$hour[4]",
                                    "temp": "$temp[4]"
                                },
                                {
                                    "hour": "$hour[5]",
                                    "temp": "$temp[5]"
                                }
                            ]
                        })
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

        
            {
                "status": "ok",
                "message": "Tuesday chart updated"
            }
        
    

HTTP Request

POST api/v1.2/smart/tuesday_chart

api/v1.2/smart/wednesday_chart

Example request:

        
            curl "https://my.tenko.ua/api/v1.2/smart/wednesday_chart" \
            -H "Accept: application/json" \
            -H "Authorization: Bearer $token"
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/wednesday_chart",
                "method": "GET",
                "headers": {
                    "accept": "application/json",
                    "authorization": "Bearer "+token
                }
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

Example response:

        
            {
                "WEC": [
                    {
                        "hour": "01",
                        "temp": "40.0"
                    },
                    {
                        "hour": "03",
                        "temp": "22.0"
                    },
                    {
                        "hour": "04",
                        "temp": "22.0"
                    }
                ]
            }
        
    

HTTP Request

GET api/v1.2/smart/wednesday_chart

api/v1.2/smart/wednesday_chart

        
            curl "https://my.tenko.ua/api/v1.2/smart/wednesday_chart" \
            -H "Accept: application/json" \
            -H "Content-Type: application/json" \
            -H "Authorization: Bearer $token" \
            -X POST -d '{
                            "WEC": [
                                {
                                    "hour": "$hour[1]",
                                    "temp": "$temp[1]"
                                },
                                {
                                    "hour": "$hour[2]",
                                    "temp": "$temp[2]"
                                },
                                {
                                    "hour": "$hour[3]",
                                    "temp": "$temp[3]"
                                }
                            ]
                        }'
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/wednesday_chart",
                "method": "POST",
                "headers": {
                    "accept": "application/json",
                    "content-type": "application/json",
                    "authorization": "Bearer "+token
                },
                "data": JSON.stringify({
                            "WEC": [
                                {
                                    "hour": "$hour[1]",
                                    "temp": "$temp[1]"
                                },
                                {
                                    "hour": "$hour[2]",
                                    "temp": "$temp[2]"
                                },
                                {
                                    "hour": "$hour[3]",
                                    "temp": "$temp[3]"
                                }
                            ]
                        })
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

        
            {
                "status": "ok",
                "message": "Wednesday chart updated"
            }
        
    

HTTP Request

POST api/v1.2/smart/wednesday_chart

api/v1.2/smart/thursday_chart

Example request:

        
            curl "https://my.tenko.ua/api/v1.2/smart/thursday_chart" \
            -H "Accept: application/json" \
            -H "Authorization: Bearer $token"
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/thursday_chart",
                "method": "GET",
                "headers": {
                    "accept": "application/json",
                    "authorization": "Bearer "+token
                }
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

Example response:

        
            {
                "THC": [
                    {
                        "hour": "01",
                        "temp": "40.0"
                    },
                    {
                        "hour": "03",
                        "temp": "22.0"
                    },
                    {
                        "hour": "04",
                        "temp": "22.0"
                    }
                ]
            }
        
    

HTTP Request

GET api/v1.2/smart/thursday_chart

api/v1.2/smart/thursday_chart

        
            curl "https://my.tenko.ua/api/v1.2/smart/thursday_chart" \
            -H "Accept: application/json" \
            -H "Content-Type: application/json" \
            -H "Authorization: Bearer $token" \
            -X POST -d '{
                            "THC": [
                                {
                                    "hour": "$hour[1]",
                                    "temp": "$temp[1]"
                                },
                                {
                                    "hour": "$hour[2]",
                                    "temp": "$temp[2]"
                                },
                                {
                                    "hour": "$hour[3]",
                                    "temp": "$temp[3]"
                                }
                            ]
                        }'
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/thursday_chart",
                "method": "POST",
                "headers": {
                    "accept": "application/json",
                    "content-type": "application/json",
                    "authorization": "Bearer "+token
                },
                "data": JSON.stringify({
                            "THC": [
                                {
                                    "hour": "$hour[1]",
                                    "temp": "$temp[1]"
                                },
                                {
                                    "hour": "$hour[2]",
                                    "temp": "$temp[2]"
                                },
                                {
                                    "hour": "$hour[3]",
                                    "temp": "$temp[3]"
                                }
                            ]
                        })
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

        
            {
                "status": "ok",
                "message": "Thursday chart updated"
            }
        
    

HTTP Request

POST api/v1.2/smart/thursday_chart

api/v1.2/smart/friday_chart

Example request:

        
            curl "https://my.tenko.ua/api/v1.2/smart/friday_chart" \
            -H "Accept: application/json" \
            -H "Authorization: Bearer $token"
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/friday_chart",
                "method": "GET",
                "headers": {
                    "accept": "application/json",
                    "authorization": "Bearer "+token
                }
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

Example response:

        
            {
                "FC": [
                    {
                        "hour": "01",
                        "temp": "40.0"
                    },
                    {
                        "hour": "03",
                        "temp": "22.0"
                    },
                    {
                        "hour": "04",
                        "temp": "22.0"
                    }
                ]
            }
        
    

HTTP Request

GET api/v1.2/smart/friday_chart

api/v1.2/smart/friday_chart

        
            curl "https://my.tenko.ua/api/v1.2/smart/friday_chart" \
            -H "Accept: application/json" \
            -H "Content-Type: application/json" \
            -H "Authorization: Bearer $token" \
            -X POST -d '{
                            "FC": [
                                {
                                    "hour": "$hour[1]",
                                    "temp": "$temp[1]"
                                },
                                {
                                    "hour": "$hour[2]",
                                    "temp": "$temp[2]"
                                },
                                {
                                    "hour": "$hour[3]",
                                    "temp": "$temp[3]"
                                }
                            ]
                        }'
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/friday_chart",
                "method": "POST",
                "headers": {
                    "accept": "application/json",
                    "content-type": "application/json",
                    "authorization": "Bearer "+token
                },
                "data": JSON.stringify({
                            "FC": [
                                {
                                    "hour": "$hour[1]",
                                    "temp": "$temp[1]"
                                },
                                {
                                    "hour": "$hour[2]",
                                    "temp": "$temp[2]"
                                },
                                {
                                    "hour": "$hour[3]",
                                    "temp": "$temp[3]"
                                }
                            ]
                        })
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

        
            {
                "status": "ok",
                "message": "Friday chart updated"
            }
        
    

HTTP Request

POST api/v1.2/smart/friday_chart

api/v1.2/smart/saturday_chart

Example request:

        
            curl "https://my.tenko.ua/api/v1.2/smart/saturday_chart" \
            -H "Accept: application/json" \
            -H "Authorization: Bearer $token"
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/saturday_chart",
                "method": "GET",
                "headers": {
                    "accept": "application/json",
                    "authorization": "Bearer "+token
                }
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

Example response:

        
            {
                "SAC": [
                    {
                        "hour": "01",
                        "temp": "40.0"
                    },
                    {
                        "hour": "03",
                        "temp": "22.0"
                    },
                    {
                        "hour": "04",
                        "temp": "22.0"
                    }
                ]
            }
        
    

HTTP Request

GET api/v1.2/smart/saturday_chart

api/v1.2/smart/saturday_chart

        
            curl "https://my.tenko.ua/api/v1.2/smart/saturday_chart" \
            -H "Accept: application/json" \
            -H "Content-Type: application/json" \
            -H "Authorization: Bearer $token" \
            -X POST -d '{
                            "SAC": [
                                {
                                    "hour": "$hour[1]",
                                    "temp": "$temp[1]"
                                },
                                {
                                    "hour": "$hour[2]",
                                    "temp": "$temp[2]"
                                },
                                {
                                    "hour": "$hour[3]",
                                    "temp": "$temp[3]"
                                }
                            ]
                        }'
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/saturday_chart",
                "method": "POST",
                "headers": {
                    "accept": "application/json",
                    "content-type": "application/json",
                    "authorization": "Bearer "+token
                },
                "data": JSON.stringify({
                            "SAC": [
                                {
                                    "hour": "$hour[1]",
                                    "temp": "$temp[1]"
                                },
                                {
                                    "hour": "$hour[2]",
                                    "temp": "$temp[2]"
                                },
                                {
                                    "hour": "$hour[3]",
                                    "temp": "$temp[3]"
                                }
                            ]
                        })
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

        
            {
                "status": "ok",
                "message": "Saturday chart updated"
            }
        
    

HTTP Request

POST api/v1.2/smart/saturday_chart

api/v1.2/smart/sunday_chart

Example request:

        
            curl "https://my.tenko.ua/api/v1.2/smart/sunday_chart" \
            -H "Accept: application/json" \
            -H "Authorization: Bearer $token"
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/sunday_chart",
                "method": "GET",
                "headers": {
                    "accept": "application/json",
                    "authorization": "Bearer "+token
                }
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

Example response:

        
            {
                "SUC": [
                    {
                        "hour": "01",
                        "temp": "40.0"
                    },
                    {
                        "hour": "03",
                        "temp": "22.0"
                    },
                    {
                        "hour": "04",
                        "temp": "22.0"
                    }
                ]
            }
        
    

HTTP Request

GET api/v1.2/smart/sunday_chart

api/v1.2/smart/sunday_chart

        
            curl "https://my.tenko.ua/api/v1.2/smart/sunday_chart" \
            -H "Accept: application/json" \
            -H "Content-Type: application/json" \
            -H "Authorization: Bearer $token" \
            -X POST -d '{
                            "SUC": [
                                {
                                    "hour": "$hour[1]",
                                    "temp": "$temp[1]"
                                },
                                {
                                    "hour": "$hour[2]",
                                    "temp": "$temp[2]"
                                },
                                {
                                    "hour": "$hour[3]",
                                    "temp": "$temp[3]"
                                }
                            ]
                        }'
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/sunday_chart",
                "method": "POST",
                "headers": {
                    "accept": "application/json",
                    "content-type": "application/json",
                    "authorization": "Bearer "+token
                },
                "data": JSON.stringify({
                            "SUC": [
                                {
                                    "hour": "$hour[1]",
                                    "temp": "$temp[1]"
                                },
                                {
                                    "hour": "$hour[2]",
                                    "temp": "$temp[2]"
                                },
                                {
                                    "hour": "$hour[3]",
                                    "temp": "$temp[3]"
                                }
                            ]
                        })
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

        
            {
                "status": "ok",
                "message": "Sunday chart updated"
            }
        
    

HTTP Request

POST api/v1.2/smart/sunday_chart

api/v1.2/smart/charts

Example request:

        
            curl "https://my.tenko.ua/api/v1.2/smart/charts" \
            -H "Accept: application/json" \
            -H "Authorization: Bearer $token"
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/charts",
                "method": "GET",
                "headers": {
                    "accept": "application/json",
                    "authorization": "Bearer "+token
                }
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

Example response:

        
            {
                "USE": "DChart",
                "COT": {
                    "x": "22",
                    "y": "0.31"
                },
                "DC": [
                    {
                        "hour": "5",
                        "temp": "34.5"
                    },
                    {
                        "hour": "1",
                        "temp": "22.9"
                    },
                    {
                        "hour": "6",
                        "temp": "30.0"
                    },
                    {
                        "hour": "12",
                        "temp": "30.0"
                    },
                    {
                        "hour": "22",
                        "temp": "22.2"
                    }
                ],
                "MC": [
                    {
                        "hour": "5",
                        "temp": "34.5"
                    },
                    {
                        "hour": "1",
                        "temp": "22.9"
                    },
                    {
                        "hour": "6",
                        "temp": "30.0"
                    },
                    {
                        "hour": "12",
                        "temp": "30.0"
                    },
                    {
                        "hour": "22",
                        "temp": "22.2"
                    }
                ],
                "TUC": [
                    {
                        "hour": "5",
                        "temp": "34.5"
                    },
                    {
                        "hour": "1",
                        "temp": "22.9"
                    },
                    {
                        "hour": "6",
                        "temp": "30.0"
                    },
                    {
                        "hour": "12",
                        "temp": "30.0"
                    },
                    {
                        "hour": "22",
                        "temp": "22.2"
                    }
                ],
                "WEC": [
                    {
                        "hour": "5",
                        "temp": "34.5"
                    },
                    {
                        "hour": "1",
                        "temp": "22.9"
                    },
                    {
                        "hour": "6",
                        "temp": "30.0"
                    },
                    {
                        "hour": "12",
                        "temp": "30.0"
                    },
                    {
                        "hour": "22",
                        "temp": "22.2"
                    }
                ],
                "THC": [
                    {
                        "hour": "5",
                        "temp": "34.5"
                    },
                    {
                        "hour": "1",
                        "temp": "22.9"
                    },
                    {
                        "hour": "6",
                        "temp": "30.0"
                    },
                    {
                        "hour": "12",
                        "temp": "30.0"
                    },
                    {
                        "hour": "22",
                        "temp": "22.2"
                    }
                ],
                "FC": [
                    {
                        "hour": "5",
                        "temp": "34.5"
                    },
                    {
                        "hour": "1",
                        "temp": "22.9"
                    },
                    {
                        "hour": "6",
                        "temp": "30.0"
                    },
                    {
                        "hour": "12",
                        "temp": "30.0"
                    },
                    {
                        "hour": "22",
                        "temp": "22.2"
                    }
                ],
                "SAC": [
                    {
                        "hour": "5",
                        "temp": "34.5"
                    },
                    {
                        "hour": "1",
                        "temp": "22.9"
                    },
                    {
                        "hour": "6",
                        "temp": "30.0"
                    },
                    {
                        "hour": "12",
                        "temp": "30.0"
                    },
                    {
                        "hour": "22",
                        "temp": "22.2"
                    }
                ],
                "SUC": [
                    {
                        "hour": "5",
                        "temp": "34.5"
                    },
                    {
                        "hour": "1",
                        "temp": "22.9"
                    },
                    {
                        "hour": "6",
                        "temp": "30.0"
                    },
                    {
                        "hour": "12",
                        "temp": "30.0"
                    },
                    {
                        "hour": "22",
                        "temp": "22.2"
                    }
                ],
                "VALTYPE": "float"
            }
        
    

HTTP Request

GET api/v1.2/smart/charts

api/v1.2/smart/charts

        
            curl "https://my.tenko.ua/api/v1.2/smart/charts" \
            -H "Accept: application/json" \
            -H "Content-Type: application/json" \
            -H "Authorization: Bearer $token" \
            -X POST -d '{
                            "USE": "$use",
                            "COT": {
                                "x": "$x",
                                "y": "$y"
                            },
                            "DC": [
                                {
                                    "hour": "$hour[1]",
                                    "temp": "$temp[1]"
                                },
                                {
                                    "hour": "$hour[2]",
                                    "temp": "$temp[2]"
                                },
                                {
                                    "hour": "$hour[3]",
                                    "temp": "$temp[3]"
                                }
                            ],
                            "MC": [
                                {
                                    "hour": "$hour[1]",
                                    "temp": "$temp[1]"
                                },
                                {
                                    "hour": "$hour[2]",
                                    "temp": "$temp[2]"
                                },
                                {
                                    "hour": "$hour[3]",
                                    "temp": "$temp[3]"
                                }
                            ],
                            "TUC": [
                                {
                                    "hour": "$hour[1]",
                                    "temp": "$temp[1]"
                                },
                                {
                                    "hour": "$hour[2]",
                                    "temp": "$temp[2]"
                                },
                                {
                                    "hour": "$hour[3]",
                                    "temp": "$temp[3]"
                                }
                            ],
                            "WEC": [
                                {
                                    "hour": "$hour[1]",
                                    "temp": "$temp[1]"
                                },
                                {
                                    "hour": "$hour[2]",
                                    "temp": "$temp[2]"
                                },
                                {
                                    "hour": "$hour[3]",
                                    "temp": "$temp[3]"
                                }
                            ],
                            "THC": [
                                {
                                    "hour": "$hour[1]",
                                    "temp": "$temp[1]"
                                },
                                {
                                    "hour": "$hour[2]",
                                    "temp": "$temp[2]"
                                },
                                {
                                    "hour": "$hour[3]",
                                    "temp": "$temp[3]"
                                }
                            ],
                            "FC": [
                                {
                                    "hour": "$hour[1]",
                                    "temp": "$temp[1]"
                                },
                                {
                                    "hour": "$hour[2]",
                                    "temp": "$temp[2]"
                                },
                                {
                                    "hour": "$hour[3]",
                                    "temp": "$temp[3]"
                                }
                            ],
                            "SAC": [
                                {
                                    "hour": "$hour[1]",
                                    "temp": "$temp[1]"
                                },
                                {
                                    "hour": "$hour[2]",
                                    "temp": "$temp[2]"
                                },
                                {
                                    "hour": "$hour[3]",
                                    "temp": "$temp[3]"
                                }
                            ],
                            "SUC": [
                                {
                                    "hour": "$hour[1]",
                                    "temp": "$temp[1]"
                                },
                                {
                                    "hour": "$hour[2]",
                                    "temp": "$temp[2]"
                                },
                                {
                                    "hour": "$hour[3]",
                                    "temp": "$temp[3]"
                                }
                            ]
                        }'
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/charts",
                "method": "POST",
                "headers": {
                    "accept": "application/json",
                    "content-type": "application/json",
                    "authorization": "Bearer "+token
                },
                "data": JSON.stringify({
                            "USE": "$use",
                            "COT": {
                                "x": "$x",
                                "y": "$y"
                            },
                            "DC": [
                                {
                                    "hour": "$hour[1]",
                                    "temp": "$temp[1]"
                                },
                                {
                                    "hour": "$hour[2]",
                                    "temp": "$temp[2]"
                                },
                                {
                                    "hour": "$hour[3]",
                                    "temp": "$temp[3]"
                                }
                            ],
                            "MC": [
                                {
                                    "hour": "$hour[1]",
                                    "temp": "$temp[1]"
                                },
                                {
                                    "hour": "$hour[2]",
                                    "temp": "$temp[2]"
                                },
                                {
                                    "hour": "$hour[3]",
                                    "temp": "$temp[3]"
                                }
                            ],
                            "TUC": [
                                {
                                    "hour": "$hour[1]",
                                    "temp": "$temp[1]"
                                },
                                {
                                    "hour": "$hour[2]",
                                    "temp": "$temp[2]"
                                },
                                {
                                    "hour": "$hour[3]",
                                    "temp": "$temp[3]"
                                }
                            ],
                            "WEC": [
                                {
                                    "hour": "$hour[1]",
                                    "temp": "$temp[1]"
                                },
                                {
                                    "hour": "$hour[2]",
                                    "temp": "$temp[2]"
                                },
                                {
                                    "hour": "$hour[3]",
                                    "temp": "$temp[3]"
                                }
                            ],
                            "THC": [
                                {
                                    "hour": "$hour[1]",
                                    "temp": "$temp[1]"
                                },
                                {
                                    "hour": "$hour[2]",
                                    "temp": "$temp[2]"
                                },
                                {
                                    "hour": "$hour[3]",
                                    "temp": "$temp[3]"
                                }
                            ],
                            "FC": [
                                {
                                    "hour": "$hour[1]",
                                    "temp": "$temp[1]"
                                },
                                {
                                    "hour": "$hour[2]",
                                    "temp": "$temp[2]"
                                },
                                {
                                    "hour": "$hour[3]",
                                    "temp": "$temp[3]"
                                }
                            ],
                            "SAC": [
                                {
                                    "hour": "$hour[1]",
                                    "temp": "$temp[1]"
                                },
                                {
                                    "hour": "$hour[2]",
                                    "temp": "$temp[2]"
                                },
                                {
                                    "hour": "$hour[3]",
                                    "temp": "$temp[3]"
                                }
                            ],
                            "SUC": [
                                {
                                    "hour": "$hour[1]",
                                    "temp": "$temp[1]"
                                },
                                {
                                    "hour": "$hour[2]",
                                    "temp": "$temp[2]"
                                },
                                {
                                    "hour": "$hour[3]",
                                    "temp": "$temp[3]"
                                }
                            ]
                        })
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

        
            {
                "status": "ok",
                "message": "Charts updated"
            }
        
    

HTTP Request

POST api/v1.2/smart/charts

api/v1.2/smart/get_weather

GET get_weather - получение значений погоды

Example request:

        
            curl "https://my.tenko.ua/api/v1.2/smart/get_weather" \
            -H "Accept: application/json" \
            -H "Authorization: Bearer $token"
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/get_weather",
                "method": "GET",
                "headers": {
                    "accept": "application/json",
                    "authorization": "Bearer "+token
                }
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

Example response:

        
            {
                "coord": {
                    "lon": -4.8818,
                    "lat": 58.5809
                },
                "weather": [
                    {
                        "id": 802,
                        "main": "Clouds",
                        "description": "scattered clouds",
                        "icon": "03d"
                    }
                ],
                "base": "stations",
                "main": {
                    "temp": 8.47,
                    "feels_like": 3.98,
                    "temp_min": 7.61,
                    "temp_max": 8.47,
                    "pressure": 1015,
                    "humidity": 64,
                    "sea_level": 1015,
                    "grnd_level": 1002
                },
                "visibility": 10000,
                "wind": {
                    "speed": 10.95,
                    "deg": 235,
                    "gust": 13.91
                },
                "clouds": {
                    "all": 26
                },
                "dt": 1636545194,
                "sys": {
                    "type": 2,
                    "id": 2010322,
                    "country": "GB",
                    "sunrise": 1636531058,
                    "sunset": 1636560563
                },
                "timezone": 0,
                "id": 2645401,
                "name": "Inverness",
                "cod": 200
            }
        
    

HTTP Request

GET api/v1.2/smart/get_weather

api/v1.2/smart/full_data

GET full_data - Получение всех значений в одном запросе

Example request:

        
            curl "https://my.tenko.ua/api/v1.2/smart/full_data" \
            -H "Accept: application/json" \
            -H "Authorization: Bearer $token"
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/full_data",
                "method": "GET",
                "headers": {
                    "accept": "application/json",
                    "authorization": "Bearer "+token
                }
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

Example response:

        
            {
                "state": {
                    "SN": "pine_smart_test",
                    "VER": "v0.63",
                    "AT": "27",
                    "WFT": "23.6",
                    "RWFT": "0",
                    "PMP": [
                        "On",
                        [
                            "NC"
                        ]
                    ],
                    "PRS": "2.8",
                    "MMT": {
                        "status": "Off",
                        "temp": "27.0"
                    },
                    "STAT": 276,
                    "YSTAT": [
                        "0.0",
                        "0.0",
                        "0.0",
                        "0.0",
                        "0.0",
                        "0.0",
                        "0.0",
                        "0.0",
                        "0.0",
                        "0.0",
                        "0.0",
                        "0.0"
                    ],
                    "BDT": {
                        "h": "19",
                        "m": "53",
                        "dow": "5",
                        "dd": "26",
                        "mm": "3",
                        "yy": "21"
                    },
                    "ERR": {
                        "type_total": 0,
                        "type_time": 1
                    },
                    "POW": 3,
                    "MOD": {
                        "x": "Off",
                        "y": "On",
                        "h": "1",
                        "a": "3"
                    },
                    "AF": "On",
                    "DSTAT": 23
                },
                "settings": {
                    "MMT": {
                        "min_temp": "11",
                        "max_temp": "11"
                    },
                    "WF": {
                        "temp": "44.0",
                        "delta": "4.0"
                    },
                    "RWF": {
                        "temp": "25.0",
                        "delta": "5.0"
                    },
                    "PSS": {
                        "up": "1",
                        "dd": "2",
                        "a": "On",
                        "ss": "30",
                        "ns": "Off"
                    },
                    "MOD": {
                        "x": "Off",
                        "y": "On",
                        "h": "1",
                        "a": "3"
                    }
                },
                "charts": {
                    "USE": "DChart",
                    "COT": {
                        "x": "22",
                        "y": "0.31"
                    },
                    "DC": [
                        {
                            "hour": "5",
                            "temp": "34.5"
                        },
                        {
                            "hour": "1",
                            "temp": "22.9"
                        },
                        {
                            "hour": "6",
                            "temp": "30.0"
                        },
                        {
                            "hour": "12",
                            "temp": "30.0"
                        },
                        {
                            "hour": "22",
                            "temp": "22.2"
                        }
                    ],
                    "MC": [
                        {
                            "hour": "5",
                            "temp": "34.5"
                        },
                        {
                            "hour": "1",
                            "temp": "22.9"
                        },
                        {
                            "hour": "6",
                            "temp": "30.0"
                        },
                        {
                            "hour": "12",
                            "temp": "30.0"
                        },
                        {
                            "hour": "22",
                            "temp": "22.2"
                        }
                    ],
                    "TUC": [
                        {
                            "hour": "5",
                            "temp": "34.5"
                        },
                        {
                            "hour": "1",
                            "temp": "22.9"
                        },
                        {
                            "hour": "6",
                            "temp": "30.0"
                        },
                        {
                            "hour": "12",
                            "temp": "30.0"
                        },
                        {
                            "hour": "22",
                            "temp": "22.2"
                        }
                    ],
                    "WEC": [
                        {
                            "hour": "5",
                            "temp": "34.5"
                        },
                        {
                            "hour": "1",
                            "temp": "22.9"
                        },
                        {
                            "hour": "6",
                            "temp": "30.0"
                        },
                        {
                            "hour": "12",
                            "temp": "30.0"
                        },
                        {
                            "hour": "22",
                            "temp": "22.2"
                        }
                    ],
                    "THC": [
                        {
                            "hour": "5",
                            "temp": "34.5"
                        },
                        {
                            "hour": "1",
                            "temp": "22.9"
                        },
                        {
                            "hour": "6",
                            "temp": "30.0"
                        },
                        {
                            "hour": "12",
                            "temp": "30.0"
                        },
                        {
                            "hour": "22",
                            "temp": "22.2"
                        }
                    ],
                    "FC": [
                        {
                            "hour": "5",
                            "temp": "34.5"
                        },
                        {
                            "hour": "1",
                            "temp": "22.9"
                        },
                        {
                            "hour": "6",
                            "temp": "30.0"
                        },
                        {
                            "hour": "12",
                            "temp": "30.0"
                        },
                        {
                            "hour": "22",
                            "temp": "22.2"
                        }
                    ],
                    "SAC": [
                        {
                            "hour": "5",
                            "temp": "34.5"
                        },
                        {
                            "hour": "1",
                            "temp": "22.9"
                        },
                        {
                            "hour": "6",
                            "temp": "30.0"
                        },
                        {
                            "hour": "12",
                            "temp": "30.0"
                        },
                        {
                            "hour": "22",
                            "temp": "22.2"
                        }
                    ],
                    "SUC": [
                        {
                            "hour": "5",
                            "temp": "34.5"
                        },
                        {
                            "hour": "1",
                            "temp": "22.9"
                        },
                        {
                            "hour": "6",
                            "temp": "30.0"
                        },
                        {
                            "hour": "12",
                            "temp": "30.0"
                        },
                        {
                            "hour": "22",
                            "temp": "22.2"
                        }
                    ],
                    "VALTYPE": "float"
                },
                "user_data": {
                    "login": "pine_smart_test",
                    "name": "Иван",
                    "email": "samohin.it@gmail.com2",
                    "country": "ukraine",
                    "city": "420"
                },
                "weather": {
                    "coord": {
                        "lon": -4.8818,
                        "lat": 58.5809
                    },
                    "weather": [
                        {
                            "id": 802,
                            "main": "Clouds",
                            "description": "scattered clouds",
                            "icon": "03d"
                        }
                    ],
                    "base": "stations",
                    "main": {
                        "temp": 8.47,
                        "feels_like": 3.98,
                        "temp_min": 7.61,
                        "temp_max": 8.47,
                        "pressure": 1015,
                        "humidity": 64,
                        "sea_level": 1015,
                        "grnd_level": 1002
                    },
                    "visibility": 10000,
                    "wind": {
                        "speed": 10.95,
                        "deg": 235,
                        "gust": 13.91
                    },
                    "clouds": {
                        "all": 26
                    },
                    "dt": 1636545352,
                    "sys": {
                        "type": 2,
                        "id": 2010322,
                        "country": "GB",
                        "sunrise": 1636531058,
                        "sunset": 1636560563
                    },
                    "timezone": 0,
                    "id": 2645401,
                    "name": "Inverness",
                    "cod": 200
                }
            }
        
    

HTTP Request

GET api/v1.2/smart/full_data

api/v1.2/smart/relevant_app_ver/{OS}

GET relevant_app_ver/{$OS} - description

$OS может принимать значения "android", "ios".

Example request:

        
            curl "https://my.tenko.ua/api/v1.2/smart/relevant_app_ver/{OS}" \
            -H "Accept: application/json" \
            -H "Authorization: Bearer $token"
        
    
        
            var settings = {
                "async": true,
                "crossDomain": true,
                "url": "https://my.tenko.ua/api/v1.2/smart/relevant_app_ver/{OS}",
                "method": "GET",
                "headers": {
                    "accept": "application/json",
                    "authorization": "Bearer "+token
                }
            }
            $.ajax(settings).done(function (response) {
                console.log(response);
            });
        
    

Example response:

        
            8
        
    

HTTP Request

GET api/v1.2/smart/relevant_app_ver/{OS}