If you’re adding multiple Sparks, make sure each service is connected to its own controller. During add-spark you can select from discovered controllers. Each controller has a unique serial number (device ID) that will be listed during discovery.
Block names are linked to the service name. If you swap service names, it’ll start using the wrong names for blocks.
If you’re changing names, I recommend first exporting all blocks on the controller (action in admin page on UI), then changing the name, re-adding the service to the UI, and then importing the exported blocks.
I think I am really out of my depth - nano docker-compose.yml does not give me any file to look at & brewblox-ctl service editor say starting editor and then a blank screen apart from cont X to quit.
service editor starts a small web server. You can open your browser and visit the Pi url at port 8300 to view the editor (it shows the address after “editor now running”). When you’re done go back to the terminal and press Ctrl-C to stop the editor.
I am still at a loss why after removing services from docker-compose.yml, they come back as an option to add.
Is there a way I can remove all the services and then create new ones?
Many thanks
Recently wifi stops, when I go onto the raspberry, it says error reading wpa_supplicant. No idea why it is happening, instead of running the wpa_supplicant fix, described in earlier ticket, which takes ages and only fixes sometimes, it is quicker to do a fresh install of all
“spark-one” is the name of your Spark service. This is just a name: “waffles” would also be a valid spark service name.
“Spark 3 Pins” is a type of block. You have it because you have a Spark v3 controller. You will always get this block when using a Spark v3 controller, regardless of how you named the service.
Spark v2 controllers always get the “Spark 2 Pins” block.
To set up three Spark services, run the commands below.
I used spark-a, spark-b, and spark-c as names, but you can choose your own.
During add-spark, choose a different device ID for all three sparks.
brewblox-ctl down
brewblox-ctl service remove -n spark-one
brewblox-ctl add-spark -n spark-a
brewblox-ctl add-spark -n spark-b
brewblox-ctl add-spark -n spark-c
brewblox-ctl up
Now go to the UI. In the sidebar, it will show spark-one as offline (red dot), and show prompts to add spark-a, spark-b, and spark-c.
Click on spark-a, spark-b, and spark-c to add them as service. Go to the admin page (button top left in sidebar), and remove spark-one.