<< Click to Display Table of Contents >> History read |
![]() ![]() ![]() |
To read history data from TeslaCloud you have to use key word - teslascadahistory and name of the Tag in the topic. Value contains in JSON format:
{
name: {tagname},
begindate: {begin},
enddate: {end}
}
Where:
{tagname} - Name of the tag you want to read history information.
{begin} - Begin time period in milliseconds since 1970 year.
{end} - End time period in milliseconds since 1970 year.
History values will be returned in JSON format:
{
x: {time},
y: {tagvalue}
}
Where:
{time} - Time in milliseconds since 1970 year.
{tagvalue} - Value of the tag.
Example:
Topic: teslascadahistory/Temperature
Value: {"name":"Temperature", "begindate":0, "enddate":1688373780250}
RESPONSE:
Value: {"x":1688311087038, "y":26.0, "x": 1688360294299, "y":25.1.....}