Hi,
I have a Telraam device at my house and want to show the data in my dashboard. It has an api (https://telraam-api.net/) but I have not the skills to show the data in my dashboard. Could anyone help me
Hi,
I have a Telraam device at my house and want to show the data in my dashboard. It has an api (https://telraam-api.net/) but I have not the skills to show the data in my dashboard. Could anyone help me
Moved. Please read the category descriptions.
For anyone else, this is the data returned from the api:
{
"status_code": 200,
"message": "ok",
"report": [
{
"instance_id": 2279,
"segment_id": -1,
"date": "2022-05-31T12:00:00.000Z",
"interval": "hourly",
"uptime": 0.5369444444,
"heavy": 50.2845318158,
"car": 3.7247801345,
"bike": 1.8623900673,
"pedestrian": 0.0,
"heavy_lft": 24.2110708743,
"heavy_rgt": 26.0734609415,
"car_lft": 1.8623900673,
"car_rgt": 1.8623900673,
"bike_lft": 0.0,
"bike_rgt": 1.8623900673,
"pedestrian_lft": 0.0,
"pedestrian_rgt": 0.0,
"direction": 1,
"car_speed_hist_0to70plus": [
50.0,
0.0,
50.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
"car_speed_hist_0to120plus": [
50.0,
0.0,
0.0,
0.0,
50.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
"timezone": "Europe/Brussels",
"v85": 21.0
},
{
"instance_id": 2279,
"segment_id": -1,
"date": "2022-05-31T13:00:00.000Z",
"interval": "hourly",
"uptime": 0.7286111111,
"heavy": 6.8623713305,
"car": 6.8623713305,
"bike": 0.0,
"pedestrian": 0.0,
"heavy_lft": 5.4898970644,
"heavy_rgt": 1.3724742661,
"car_lft": 2.7449485322,
"car_rgt": 4.1174227983,
"bike_lft": 0.0,
"bike_rgt": 0.0,
"pedestrian_lft": 0.0,
"pedestrian_rgt": 0.0,
"direction": 1,
"car_speed_hist_0to70plus": [
20.0,
0.0,
40.0,
0.0,
40.0,
0.0,
0.0,
0.0
],
"car_speed_hist_0to120plus": [
20.0,
0.0,
0.0,
0.0,
0.0,
40.0,
0.0,
0.0,
40.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
"timezone": "Europe/Brussels",
"v85": 40.5
},
{
"instance_id": 2279,
"segment_id": -1,
"date": "2022-05-31T14:00:00.000Z",
"interval": "hourly",
"uptime": 0.5833333333,
"heavy": 3.4285714286,
"car": 15.4285714286,
"bike": 1.7142857143,
"pedestrian": 0.0,
"heavy_lft": 3.4285714286,
"heavy_rgt": 0.0,
"car_lft": 6.8571428571,
"car_rgt": 8.5714285714,
"bike_lft": 1.7142857143,
"bike_rgt": 0.0,
"pedestrian_lft": 0.0,
"pedestrian_rgt": 0.0,
"direction": 1,
"car_speed_hist_0to70plus": [
11.1111111111,
22.2222222222,
55.5555555556,
11.1111111111,
0.0,
0.0,
0.0,
0.0
],
"car_speed_hist_0to120plus": [
11.1111111111,
0.0,
11.1111111111,
11.1111111111,
33.3333333333,
22.2222222222,
11.1111111111,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
"timezone": "Europe/Brussels",
"v85": 26.5
},
{
"instance_id": 2279,
"segment_id": -1,
"date": "2022-05-31T15:00:00.000Z",
"interval": "hourly",
"uptime": 0.7313888889,
"heavy": 1.3672616787,
"car": 17.774401823,
"bike": 5.4690467148,
"pedestrian": 0.0,
"heavy_lft": 1.3672616787,
"heavy_rgt": 0.0,
"car_lft": 13.6726167869,
"car_rgt": 4.1017850361,
"bike_lft": 4.1017850361,
"bike_rgt": 1.3672616787,
"pedestrian_lft": 0.0,
"pedestrian_rgt": 0.0,
"direction": 1,
"car_speed_hist_0to70plus": [
0.0,
7.6923076923,
61.5384615385,
23.0769230769,
7.6923076923,
0.0,
0.0,
0.0
],
"car_speed_hist_0to120plus": [
0.0,
0.0,
0.0,
7.6923076923,
30.7692307692,
30.7692307692,
15.3846153846,
7.6923076923,
7.6923076923,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
"timezone": "Europe/Brussels",
"v85": 33.0
},
{
"instance_id": 2279,
"segment_id": -1,
"date": "2022-05-31T16:00:00.000Z",
"interval": "hourly",
"uptime": 0.7036111111,
"heavy": 1.4212396368,
"car": 5.6849585472,
"bike": 4.2637189104,
"pedestrian": 0.0,
"heavy_lft": 1.4212396368,
"heavy_rgt": 0.0,
"car_lft": 4.2637189104,
"car_rgt": 1.4212396368,
"bike_lft": 2.8424792736,
"bike_rgt": 1.4212396368,
"pedestrian_lft": 0.0,
"pedestrian_rgt": 0.0,
"direction": 1,
"car_speed_hist_0to70plus": [
25.0,
50.0,
25.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
"car_speed_hist_0to120plus": [
25.0,
0.0,
25.0,
25.0,
0.0,
25.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
"timezone": "Europe/Brussels",
"v85": 24.5
},
{
"instance_id": 2279,
"segment_id": -1,
"date": "2022-05-31T17:00:00.000Z",
"interval": "hourly",
"uptime": 0.7597222222,
"heavy": 1.3162705667,
"car": 15.7952468007,
"bike": 3.9488117002,
"pedestrian": 1.3162705667,
"heavy_lft": 0.0,
"heavy_rgt": 1.3162705667,
"car_lft": 9.2138939671,
"car_rgt": 6.5813528336,
"bike_lft": 1.3162705667,
"bike_rgt": 2.6325411335,
"pedestrian_lft": 1.3162705667,
"pedestrian_rgt": 0.0,
"direction": 1,
"car_speed_hist_0to70plus": [
8.3333333333,
33.3333333333,
41.6666666667,
16.6666666667,
0.0,
0.0,
0.0,
0.0
],
"car_speed_hist_0to120plus": [
0.0,
8.3333333333,
8.3333333333,
25.0,
33.3333333333,
8.3333333333,
16.6666666667,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
"timezone": "Europe/Brussels",
"v85": 28.0
},
{
"instance_id": 2279,
"segment_id": -1,
"date": "2022-05-31T18:00:00.000Z",
"interval": "hourly",
"uptime": 0.7905555556,
"heavy": 2.5298664793,
"car": 3.7947997189,
"bike": 1.2649332396,
"pedestrian": 1.2649332396,
"heavy_lft": 2.5298664793,
"heavy_rgt": 0.0,
"car_lft": 1.2649332396,
"car_rgt": 2.5298664793,
"bike_lft": 1.2649332396,
"bike_rgt": 0.0,
"pedestrian_lft": 1.2649332396,
"pedestrian_rgt": 0.0,
"direction": 1,
"car_speed_hist_0to70plus": [
0.0,
66.6666666667,
33.3333333333,
0.0,
0.0,
0.0,
0.0,
0.0
],
"car_speed_hist_0to120plus": [
0.0,
0.0,
0.0,
66.6666666667,
33.3333333333,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
"timezone": "Europe/Brussels",
"v85": 20.0
},
{
"instance_id": 2279,
"segment_id": -1,
"date": "2022-05-31T19:00:00.000Z",
"interval": "hourly",
"uptime": 0.7980555556,
"heavy": 0.0,
"car": 2.5060911939,
"bike": 3.7591367908,
"pedestrian": 2.5060911939,
"heavy_lft": 0.0,
"heavy_rgt": 0.0,
"car_lft": 2.5060911939,
"car_rgt": 0.0,
"bike_lft": 1.2530455969,
"bike_rgt": 2.5060911939,
"pedestrian_lft": 2.5060911939,
"pedestrian_rgt": 0.0,
"direction": 1,
"car_speed_hist_0to70plus": [
50.0,
0.0,
50.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
"car_speed_hist_0to120plus": [
50.0,
0.0,
0.0,
0.0,
50.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
"timezone": "Europe/Brussels",
"v85": 21.0
},
{
"instance_id": 2279,
"segment_id": -1,
"date": "2022-05-31T20:00:00.000Z",
"interval": "hourly",
"uptime": 0.0444444444,
"heavy": 0.0,
"car": 0.0,
"bike": 0.0,
"pedestrian": 0.0,
"heavy_lft": 0.0,
"heavy_rgt": 0.0,
"car_lft": 0.0,
"car_rgt": 0.0,
"bike_lft": 0.0,
"bike_rgt": 0.0,
"pedestrian_lft": 0.0,
"pedestrian_rgt": 0.0,
"direction": 1,
"car_speed_hist_0to70plus": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
"car_speed_hist_0to120plus": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
"timezone": "Europe/Brussels",
"v85": 0
},
{
"instance_id": 2279,
"segment_id": -1,
"date": "2022-05-31T21:00:00.000Z",
"interval": "hourly",
"uptime": 0.0,
"heavy": 0.0,
"car": 0.0,
"bike": 0.0,
"pedestrian": 0.0,
"heavy_lft": 0.0,
"heavy_rgt": 0.0,
"car_lft": 0.0,
"car_rgt": 0.0,
"bike_lft": 0.0,
"bike_rgt": 0.0,
"pedestrian_lft": 0.0,
"pedestrian_rgt": 0.0,
"direction": 1,
"car_speed_hist_0to70plus": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
"car_speed_hist_0to120plus": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
"timezone": "Europe/Brussels",
"v85": 0
},
{
"instance_id": 2279,
"segment_id": -1,
"date": "2022-05-31T22:00:00.000Z",
"interval": "hourly",
"uptime": 0.0,
"heavy": 0.0,
"car": 0.0,
"bike": 0.0,
"pedestrian": 0.0,
"heavy_lft": 0.0,
"heavy_rgt": 0.0,
"car_lft": 0.0,
"car_rgt": 0.0,
"bike_lft": 0.0,
"bike_rgt": 0.0,
"pedestrian_lft": 0.0,
"pedestrian_rgt": 0.0,
"direction": 1,
"car_speed_hist_0to70plus": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
"car_speed_hist_0to120plus": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
"timezone": "Europe/Brussels",
"v85": 0
},
{
"instance_id": 2279,
"segment_id": -1,
"date": "2022-05-31T23:00:00.000Z",
"interval": "hourly",
"uptime": 0.0,
"heavy": 0.0,
"car": 0.0,
"bike": 0.0,
"pedestrian": 0.0,
"heavy_lft": 0.0,
"heavy_rgt": 0.0,
"car_lft": 0.0,
"car_rgt": 0.0,
"bike_lft": 0.0,
"bike_rgt": 0.0,
"pedestrian_lft": 0.0,
"pedestrian_rgt": 0.0,
"direction": 1,
"car_speed_hist_0to70plus": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
"car_speed_hist_0to120plus": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
"timezone": "Europe/Brussels",
"v85": 0
}
]
}
hi!
me and chatgpt created an integration for telraam GitHub - kervel/telraam-hacs: home assistant integration for telraam
seems to work fine for me, but note that there is quite a delay between the data being acquired and it being shown on the dashboard: the free API gives you hourly data only, and you can’t request “between now and 1 hour ago”, so you are looking at 2 hour old data. It would need some modifications to also support the paid API…
Frank