Open JakeHartnell opened 7 years ago
I'm all for it! Let's make it happen!
What's the primary hardware people run Grow-IoT on? x86_64? RPI3?
Both! The master server runs best on x86_64, but any linux system capable of running node can be used for creating IoT device currently (but lately we've mostly been using RPI3). There's an open issue for hosting the main server from a Raspberry pi, but we'll get around to that soon enough (probably by ditching meteor): https://github.com/CommonGarden/Grow-IoT/issues/387
I think what would be most useful in the short term is managing the drivers running on various RPI3s.
Ditching meteor? Would make things easier for UBOS ...
What does "managing the drivers" mean exactly? Is there a set of steps ....?
Not particularly, I'm looking to be able to manage the code that runs on embedded devices like RPI3. Basically, software update and roll out management, kind of like https://eclipse.org/hawkbit/
Now that I think about it, using UBOS to run the main Grow-IoT instance is more interesting from a data ownership perspective. So maybe we should start with that before diving into device management?
Ok, so here's how it works on UBOS:
ssh shepherd@<device> sudo ubos-admin update
is supposed to do "everything" that needs to get done in order to get the device current (which obviously it does for apps currently running on UBOS). For devices running your code, what is that "everything"? Usually it's one or more of:
For the main Grow-IoT server / app:
curl https://install.meteor.com/ | sh
npm install
meteor
For devices:
npm install
)So I played with it a little and got it to run. Noticing that it is running Mongo? Is there a way of avoiding that? (Reason being that each database type we support in UBOS makes management -- like automated backups and restores -- harder. Currently MySQL and Postgresql are supported. We had early support for Mongo at some point when Known required it. But then Ben moved to MySQL -- for many of the same reasons -- and we didn't continue developing support for it.)
Noticing that it is running Mongo? Is there a way of avoiding that?
Yeah, we'll be working on that, but for the next few months we're probably sticking with Mongo until Graph-QL makes it easier to switch out databases.
Would be great to use UBOS for IoT device management. Would be great to integrate with Grow-IoT, I'm certainly willing to help!
Indie-IoT for the win.