particle-iot / spark-server

UNMAINTAINED - An API compatible open source server for interacting with devices speaking the spark-protocol
https://www.particle.io/
GNU Affero General Public License v3.0
441 stars 136 forks source link

Suggestion: safe mode healing / fleet management #62

Open chuank opened 8 years ago

chuank commented 8 years ago

Automatically handling system-part updates on spark-server will be awesome. Especially when firmware updates need to be updated en masse to a large number of devices on the local cloud.

Can there be a way to manage a local fleet of devices, giving administrators the ability to batch-update devices with new system-part firmware as well as user firmware? Right now it's a process that's done via particle-cli, one device at a time.

Perhaps there can a 'firmware' folder on spark-server where custom system-parts and user firmware can be uploaded to.

spark-server can then update information on each device's system+user firmware versions, and OTA what's different only to devices that need an update.

The [deviceid].json file stored for each claimed device in the core_keys folder seems an ideal place to track this additional information.

We can then serve a simple JS admin UI on the server to manage the files in the core_keys folder and effectively build our own fleet management console.

KarbonDallas commented 8 years ago

@chuank safe mode healing and fleet management are things we've already implemented on our cloud! Fleet management will be out of beta shortly, and I suspect this is exactly what you're looking for.

chuank commented 8 years ago

@emilyrose when will we see these features trickle down to spark-server? Hope it won't become a massive operation making these features available for local clouds.