Hi all.
I have a remote script sending updates to an MQTT Broker every minute or so. Each update consists of an array with 10 items (information regarding the closest satellites). An example is at the end of this post. The end-goal is to display the 10 satellites’ locations on a map.
To begin with, however, I’d like to understand what the best approach would be to splitting these messages, each containing this array of 10 items, into an entity/device/sensor, and a suggested configuration. (My instinct is to use an entity with a values template but I’m a little unclear on the best way to write that, and I’d value some other opinions.)
Thanks for reading and considering.
[
{
"name": "STARLINK-3746",
"distance": 49.85637240372878,
"catalog_number": 52268,
"latitude": 52.78822,
"longitude": 12.8252
},
{
"name": "STARLINK-4484",
"distance": 81.87793988261186,
"catalog_number": 53417,
"latitude": 52.4733,
"longitude": 14.58424
},
{
"name": "STARLINK-2502",
"distance": 118.39717079045235,
"catalog_number": 48327,
"latitude": 52.98583,
"longitude": 11.82206
},
{
"name": "LEMUR-2-ANGELA",
"distance": 153.41215968898857,
"catalog_number": 42752,
"latitude": 51.34647,
"longitude": 12.13112
},
{
"name": "SPACEBEE-66",
"distance": 180.64776499477824,
"catalog_number": 48628,
"latitude": 54.07102,
"longitude": 12.75997
},
{
"name": "STARLINK-4121",
"distance": 180.69571279552102,
"catalog_number": 53002,
"latitude": 53.14878,
"longitude": 10.92122
},
{
"name": "STARLINK-2673",
"distance": 204.1046229030983,
"catalog_number": 48649,
"latitude": 51.41761,
"longitude": 15.78956
},
{
"name": "BEIDOU-3 M12",
"distance": 204.57142383674756,
"catalog_number": 43602,
"latitude": 53.37941,
"longitude": 10.7077
},
{
"name": "STARLINK-1364",
"distance": 244.07179651134885,
"catalog_number": 45589,
"latitude": 50.42542,
"longitude": 14.55902
},
{
"name": "IRIDIUM 122",
"distance": 283.95065419429807,
"catalog_number": 42957,
"latitude": 54.74697,
"longitude": 15.38363
}
]