guild icon
Toit
#Missing in artemis, device list/device del
Thread channel in help
mattsoftware
mattsoftware 04/07/2023 02:23 AM
I was trying to find the post in general explaining this, and I cant find it, but I feel like this would be a welcome addition to the artemis tool.

At the moment I have the ability use artemis device flash to create a new device with a device UUID. I can then interact through the artemis tool using that UUID in the device and fleet commands. Unless I then store that UUID somewhere I can easily loose track of which device id's I can use and manage through the artemis tool.

I understand that this was not the original intension of the tool, and it would be best to manage the devices through some other means, but I also feel like its a very natural place to get the complete list of devices currently assigned to an organisation.
bitphlipphar
bitphlipphar 04/07/2023 06:00 AM
We are adding better support for managing fleets in the next release. We can show you the list of all devices you have registered in your broker, but we'd like to provide even more structure than just that.
bitphlipphar
bitphlipphar 04/07/2023 06:36 AM
We're thinking of keeping the fleet information in a version control friendly directory/file structure and let Artemis manage it.
👍1
bitphlipphar
bitphlipphar 05/16/2023 07:43 PM
@mattsoftware We have spent a few weeks solidifying the fleet story. Artemis v0.6.0 is a big step in that direction. We maintain the fleet state locally in a form that is easy to have under version control.
mattsoftware
mattsoftware 05/17/2023 10:37 PM
I will check it out later today thanks
mattsoftware
mattsoftware 05/17/2023 10:45 PM
is there a way to not hardcode my wifi credentials in the config files - if these are meant to be committed to git for state then I really don't want them in the commits
mattsoftware
mattsoftware 05/17/2023 10:47 PM
I'm also not really a fan of git for state either - its not like you can really branch of a state and make changes etc. Also if you dont push state then if other people are also managing the fleet they will be out of date
mattsoftware
mattsoftware 05/17/2023 10:47 PM
That was the major issue with early terraform until they moved to an s3 backed state and dynamodb lock files
mattsoftware
mattsoftware 05/17/2023 10:47 PM
but i'll have more of a play when i get time to work out the workflow, these are just initial comments!
bitphlipphar
bitphlipphar 05/18/2023 05:22 AM
Thanks, @mattsoftware. We will prioritize adding a way to manage secrets. I'd also like to add a basic GitHub workflow that allows some level of push-to-update.
mattsoftware
mattsoftware 05/18/2023 05:24 AM
It might make more sense in a gitopts scenario. Still doens't make much sense in a branch situation, but again, i'll probably need to have a think about that a bit harder too :🙂:
bitphlipphar
bitphlipphar 05/18/2023 05:24 AM
The state of the individual devices is backed by Postgres, but maybe there are still things that need improvement as multiple people start managing a fleet.
bitphlipphar
bitphlipphar 05/18/2023 05:27 AM
The pod specifications are very "branchable", but maybe those are the only ones. You can add new devices (experimental ones?) on a branch and have them become "visible" when merged back to main. Messing with other devices is probably going to be a bit confusing.
mattsoftware
mattsoftware 05/18/2023 05:27 AM
right, its good that there is some state outside git, so i'll stress less about that :🙂:
bitphlipphar
bitphlipphar 05/18/2023 05:28 AM
The pods are now compiled (transitively closed) and uploaded, so you can talk about a device running a specific (built) version of your software.
bitphlipphar
bitphlipphar 05/18/2023 05:28 AM
artemis fleet status shows it.
mattsoftware
mattsoftware 05/18/2023 05:28 AM
Let me play a little more and i'll get back to you - and yes, i'm just upskilling about pods now - and that whole concept about the specific build etc is very cool!
bitphlipphar
bitphlipphar 05/18/2023 05:29 AM
Looking forward to your feedback! :🙂:
👍1
mattsoftware
mattsoftware 05/18/2023 05:29 AM
sorry i'm a little slow - its a side project that needs to slot in with everything else. As soon as I can massage it to a work project I will be able to iterate faster :🙂:
bitphlipphar
bitphlipphar 05/18/2023 05:30 AM
I totally get it. Been there, done that :🙂:
👍1
bitphlipphar
bitphlipphar 05/18/2023 05:31 AM
You might enjoy how we upload the pods in individual parts, so the parts shared by multiple pods only need to be uploaded once.
bitphlipphar
bitphlipphar 05/18/2023 05:31 AM
The biggest one is the ELF file for the firmware with all its debugging symbols.
bitphlipphar
bitphlipphar 05/18/2023 05:32 AM
But it is very sharable.
bitphlipphar
bitphlipphar 05/18/2023 05:32 AM
(it is all taken care of by artemis pod upload and artemis pod download, so you will not really see this)
👍1
24 messages in total