triplestrange / StrangeScout

The free software FRC scouting system.
GNU Affero General Public License v3.0
3 stars 1 forks source link

StrangeBox (BT PAN, local server) #61

Open aidanbh opened 5 years ago

aidanbh commented 5 years ago

This issue will be used to track implementation of StrangeBox (though it has separate repo, issue will be here for projects integration).

Requirements:

aidanbh commented 5 years ago

@PenguinSnail perhaps we could add the request sync UI to the new server/user management page and then just do regular web requests to the node backend for that?

PenguinSnail commented 5 years ago

@PenguinSnail perhaps we could add the request sync UI to the new server/user management page and then just do regular web requests to the node backend for that?

We should be able to schedule replication by adding a document to the _replicator database More info here: http://guide.couchdb.org/draft/replication.html

This is definitely doable, the tricky part will be where to specify the location of other database instances/nodes.

aidanbh commented 5 years ago

Since CouchDB 1.1.0, permanent continuous replications that survive a server restart without you having to do anything can be defined by inserting documents in the replicator database (which by default is named _replicator).

If they will survive restarts, we can just go into fauxton and manually add them on each StrangeBox, since the StrangeNet runs on static IPs and domain names can be used for the server.

aidanbh commented 5 years ago

I got a basic BT PAN working using the blueman GUI, so we can use that as a worst case fallback. There doesn't seem to be a single cleanly coded script to manage a PAN under bluez 5, so I guess we'll just piece together whats available and we may have to modify some of it. Couldn't get the Windows 10 Surface to work on it though, so that's an issue. Although the surface can just use ethernet.