Closed jpmens closed 7 months ago
or, we could split the waypoints from the config and add an .otrw
and inline equivalent
Also a good idea, but I think it'll be easier for users to create a JSON array of waypoints -- syntax is a bit easier.
Also inline otrw would mean changing our android app which I'd like to avoid
Also a good idea, but I think it'll be easier for users to create a JSON array of waypoints -- syntax is a bit easier.
The waypoints array in .otrc is the same as in an .otrw
which is wrapped into a dict with two additional elements:
{
"waypoints" : [
{
"tst" : 1432817332,
"lat" : 52.0,
"lon" : 6.0,
"rad" : 0,
"desc" : "Main@WestWing"
}
],
"_type" : "waypoints"
}
We might support both:
Similarly to how we create friend-specific MQTT ACLs, we could add user-specific waypoints to the inline/otrc configuration during bootstrapping.
A directory
waypoints/
would contain<username>.json
with an array of waypoints which is merged into.otrc
.This permits, say, a family to pre-configure "Home", "Sports", etc. for certain or all members.