Multiple chambers progress?

brewblox-ctl setup

Is now running, Thanks for all your time and support!

1 Like

When running ```
brewblox-ctl wifi

I got subprocess.CalledProcessError: Command ‘docker run -it --rm --privileged brewblox/firmware -flasher:rpi-edge wifi’ returned non-zero exit status 1.
and the blue LED is flashing, issue?
Update/query: I am standing by to see if I have an issue on WIFI, but looking at the next instruction does this mean that the Spark3 and RPI do not need the USB cable to interface, cool if true.
Thanks again, I feel I am real close now.
Mike

Unplug the Spark, plug it back in, and try again. If it happens again, could you please post the full output?

To use a code block, have the opening and closing backticks on the beginning of the line.
To format just a few words as code, quote them with a single backtick (no need to put at the start of the line).

Example single backtick
Example triple backticks above and below text:

(text)

Edit: for normal use, you can indeed use Wifi. Right now you can only update the firmware over USB, but the next release includes updating over Wifi.

Please press ENTER when your Spark is connected over USB
The following shell commands will be used:

         docker-compose down
         docker pull brewblox/firmware-flasher:rpi-edge
         docker run -it --rm --privileged brewblox/firmware-flasher:rpi-edge wifi

Press ENTER to continue, Ctrl+C to cancel

Running command:
         docker-compose down

Removing network brewblox_default
WARNING: Network brewblox_default not found.

Running command:
         docker pull brewblox/firmware-flasher:rpi-edge

rpi-edge: Pulling from brewblox/firmware-flasher
Digest: sha256:2cfb63e7482602e2aeb56fc76175201ff2383f023f8b328ba6a6079a066f93a3
Status: Image is up to date for brewblox/firmware-flasher:rpi-edge
docker.io/brewblox/firmware-flasher:rpi-edge

Running command:
         docker run -it --rm --privileged brewblox/firmware-flasher:rpi-edge wifi

Important: Select no when asked to scan for Wi-Fi networks
? Should I scan for nearby Wi-Fi networks? Yes
Error configuring Wi-Fi: Unable to scan for Wi-Fi networks. Do you have permission to do t                               hat on this system?
Traceback (most recent call last):
  File "/usr/local/bin/brewblox-ctl", line 10, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.7/dist-packages/brewblox_ctl/__main__.py", line 81, in main
    cli()
  File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/brewblox_ctl/commands.py", line 192, in wif                               i
    utils.run_all(shell_commands)
  File "/usr/local/lib/python3.7/dist-packages/brewblox_ctl/utils.py", line 130, in run_al                               l
    return [run(cmd) for cmd in shell_cmds]
  File "/usr/local/lib/python3.7/dist-packages/brewblox_ctl/utils.py", line 130, in <listc                               omp>
    return [run(cmd) for cmd in shell_cmds]
  File "/usr/local/lib/python3.7/dist-packages/brewblox_ctl/utils.py", line 124, in run
    return check_call(shell_cmd, shell=True, stderr=STDOUT)
  File "/usr/lib/python3.7/subprocess.py", line 347, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'docker run -it --rm --privileged brewblox/firmware                               -flasher:rpi-edge wifi' returned non-zero exit status 1.
pi@raspberrypi:~/brewblox $ ^C
pi@raspberrypi:~/brewblox $ ^C
pi@raspberrypi:~/brewblox $ brewblox-ctl wifi
Please press ENTER when your Spark is connected over USB
The following shell commands will be used:

         docker-compose down
         docker pull brewblox/firmware-flasher:rpi-edge
         docker run -it --rm --privileged brewblox/firmware-flasher:rpi-edge wifi

Press ENTER to continue, Ctrl+C to cancel

Running command:
         docker-compose down

Removing network brewblox_default
WARNING: Network brewblox_default not found.

Running command:
         docker pull brewblox/firmware-flasher:rpi-edge

rpi-edge: Pulling from brewblox/firmware-flasher
Digest: sha256:2cfb63e7482602e2aeb56fc76175201ff2383f023f8b328ba6a6079a066f93a3
Status: Image is up to date for brewblox/firmware-flasher:rpi-edge
docker.io/brewblox/firmware-flasher:rpi-edge

Running command:
         docker run -it --rm --privileged brewblox/firmware-flasher:rpi-edge wifi

Important: Select no when asked to scan for Wi-Fi networks
? Should I scan for nearby Wi-Fi networks? Yes
Error configuring Wi-Fi: Unable to scan for Wi-Fi networks. Do you have permission to do that on this system?
Traceback (most recent call last):
  File "/usr/local/bin/brewblox-ctl", line 10, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.7/dist-packages/brewblox_ctl/__main__.py", line 81, in main
    cli()
  File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/brewblox_ctl/commands.py", line 192, in wifi
    utils.run_all(shell_commands)
  File "/usr/local/lib/python3.7/dist-packages/brewblox_ctl/utils.py", line 130, in run_all
    return [run(cmd) for cmd in shell_cmds]
  File "/usr/local/lib/python3.7/dist-packages/brewblox_ctl/utils.py", line 130, in <listcomp>
    return [run(cmd) for cmd in shell_cmds]
  File "/usr/local/lib/python3.7/dist-packages/brewblox_ctl/utils.py", line 124, in run
    return check_call(shell_cmd, shell=True, stderr=STDOUT)
  File "/usr/lib/python3.7/subprocess.py", line 347, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'docker run -it --rm --privileged brewblox/firmware-flasher:rpi-edge wifi' returned non-zero exit status 1.
pi@raspberrypi:~/brewblox $```
Important: Select no when asked to scan for Wi-Fi networks
? Should I scan for nearby Wi-Fi networks? Yes

There it is.

OK, I’ll run again, after disconnect/reconnect.

Success! Sorry I missed the no prompt, my bad,

Is there a guide to help me understand how to change to imperial instead of metric? Also how do I add a second fermenter/frig? Pointers on the brew system that includes valves, sensors, etc. will be very helpful.
Thanks again for sticking with me to get this system up and running. I am really looking forward to learning, and using these systems!
Mike

To use fahrenheit: spark service page, actions, units. The DisplaySettings block that controls the Spark display has its own setting.

To add a fridge: run the wizard again, pick a different name.

The control chains document on netlify (same site as startup guide) describes how to set up a HERMS configuration.

What kind of valves do you have that you want to connect? The Motor Valve block is suitable for DS2408 valves.

When using BrewBlox, can one spark handle multiple chambers or do I need multiple?

I am using a Spark V2 which has 4 connectors for sensors ond four for actuators.

Depending on your configuration, the software can handle 6-10 fermentation chambers before its EEPROM storage is full. Unless you’re daisy chaining DS2413 extension boards, you’ll run out of physical ports first.

Nice, I have been waiting for that for 4 years.

In fact, I have 3 unused Spark-One V2 cause that was not implemented. Time to dig them out and give them another try.

Bob,
Have the issues with Buster and docker been resolved in the standard BrewBlox scripts? With all the support you and Elco gave me I ended up with a near install and want to give it another go. I ended up with the Spark 3 showing the IP address at the top next to USB on the top line, six grayed out boxes and the bottom line telling me to go to the web interface for configuring (green light blinking periodically). However there seemed to be an issue on the web interface screen. So I am going to try again using the BrewBlox install instructions, if that is a good thing. Thank you again for your time and support.
Mike

The issues you encountered were solved. I last tried it a few weeks back, but ran into a different issue (but did not spend time trying to fix it).

If you’re using a Pi 3, I’d stick with Stretch for now.

Bob do you have a link to Stretch as I do not see it in the download site for RPI and I will work with that.
Thank you.
Mike

Update: I think I found an April version of Stretch and am downloading it now. I will followi the documented procedure.
Thanks again for your time and support.

I had to run several scripts up to three times but got the following:
pi@raspberrypi:~/brewblox $ brewblox-ctl setup
brewblox-ctl requires extensions that match your BrewBlox release. Do you want to download them now? [Y/n]
y
The following shell commands will be used:

     docker rm ctl-lib 2> /dev/null || true
     docker pull brewblox/brewblox-ctl-lib:rpi-edge || true
     docker create --name ctl-lib brewblox/brewblox-ctl-lib:rpi-edge
     rm -rf ./brewblox_ctl_lib 2> /dev/null || true
     docker cp ctl-lib:/brewblox_ctl_lib ./
     docker rm ctl-lib

Press ENTER to continue, Ctrl+C to cancel

Running command:
docker rm ctl-lib 2> /dev/null || true

Running command:
docker pull brewblox/brewblox-ctl-lib:rpi-edge || true

Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.40/images/create?fromImage=brewblox%2Fbrewblox-ctl-lib&tag=rpi-edge: dial unix /var/run/docker.sock: connect: permission denied

Running command:
docker create --name ctl-lib brewblox/brewblox-ctl-lib:rpi-edge

Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.40/containers/create?name=ctl-lib: dial unix /var/run/docker.sock: connect: permission denied

Error: Command ‘docker create --name ctl-lib brewblox/brewblox-ctl-lib:rpi-edge’ returned non-zero exit status 1
pi@raspberrypi:~/brewblox $

After installing, you need to reboot for the new privileges to take effect.

1 Like

Hopping in to see if anyone has had success controlling a dual-zone refrigerator yet?
If so, was it wired like Elco had in the post below?

My dual zone fridge has stopped working (control board is on the fritz) so I was hoping to control the entire system with Raspberry Pi and found this website while researching this idea. After reading through this thread I am still unsure if this is something I can accomplish.

Any help would be greatly appreciated!

-CJ

A lot has happened since '12 when that post was made.
Highlights:

  • The BrewPi Spark controller replaced the Arduino for actuator / sensor control.
  • The Brewblox software replaced the BrewPi software. Brewblox can manage multiple fermentation chambers or brew kettles simultaneously.

Basic setup is to have a Raspberry Pi server, connected to one or more Sparks.

The wiring has remained the same, with SSRs being controlled by the Spark controller.

Documentation for the software can be found at https://brewblox.netlify.com

@Bob_Steers Thank you so much for the quick response on an old thread!
Looking forward to trying this out and saving my fridge!

I’ll dive into the Brewblox docs and see if I can learn enough to do this myself!

Cheers!