Brewblox install on a Synology NAS offical guide

I think I’m understanding the setup here a bit better.

The situation now is that you have separate Brewblox installs on both the NAS and the Pi. Both have their own independent history database. The Tilt on the Pi is currently sending data to the history database on the Pi, while you want to collect it on the NAS.

To get to the desired situation, edit the Tilt service on the Pi, and add a command setting:

  command: --mqtt-host=NAS_IP_ADDRESS --mqtt-port=NAS_HTTPS_PORT

Afterwards, you can strip down the configuration on the Pi to only run the Tilt service, but first let’s get it to work that the Tilt service on the Pi pushes data to the NAS database.

Yes that was the problem. It works now. Thanks a lot for the support!!

If you want to make logging work with brewblox-ctl log, add the following to your docker-compose.yml:

services:
  spark-one:
    [your spark config]
    logging:
      driver: "json-file"
  mdns:
    logging:
      driver: "json-file"    
  eventbus:
    logging:
      driver: "json-file"  
  influx:
    logging:
      driver: "json-file"
  datastore:
    logging:
      driver: "json-file"
  history:
    logging:
      driver: "json-file"
  traefik:
    logging:
      driver: "json-file"
  ui:
    logging:
      driver: "json-file"

Synology uses a different logging engine for their graphical docker app. unfortunately it is either brewblox-ctl or Synology’s docker app that can read the logs.

Just a warning for everybody that considders installing the preview DSM7, brewblox doesnt work after the installation. Docker and Python3 can’t be installed anymore (for now). Maybe there are more issues but I can’t say now. So if you’re planning to install the update you should wait :slight_smile:

2 Likes

For those that installed Brewblox on Synology how did you connect the Spark controller to the Synology box? My Synology box is on the opposite side of the house of my fermentation chamber. Is it possible to run usb that far?

Also is there a benefit for the Brewblox over the BrewPi?

Just use WiFi instead of USB.
Brewblox has a lot of more features and improvements, it’s definitely worth the upgrade.

I’m working on getting Brewblox installed on my Synology box but when I try to run brewblox-ctl setup I get the following error.

JoelMoore@STELLA:~$ brewblox-ctl setup
Usage: __main__.py [OPTIONS] COMMAND [ARGS]...
Try '__main__.py --help' for help.

Error: No such command 'setup'.

Many commands only work if your current directory is a Brewblox directory.

I ran this before the setup command.

 brewblox-ctl install --no-docker-user --no-reboot
Command is about to: Create Brewblox directory; install system dependencies; reboot.
Do you want to continue? (yes, no, verbose, dry-run) [press ENTER for default value 'yes']y
Do you want to install with default settings? [Press ENTER for default value 'yes']

INFO       Docker is already installed.
INFO       Installing apt packages...
apt: invalid flag: update
Usage: apt <apt and javac options> <source files>
where apt options include:
  -classpath <path>          Specify where to find user class files and annotation processor factories
  -cp <path>                 Specify where to find user class files and annotation processor factories
  -d <path>                  Specify where to place processor and javac generated class files
  -s <path>                  Specify where to place processor generated source files
  -source <release>          Provide source compatibility with specified release
  -version                   Version information
  -help                      Print a synopsis of standard options; use javac -help for more options
  -X                         Print a synopsis of nonstandard options
  -J<flag>                   Pass <flag> directly to the runtime system
  -A[key[=value]]            Options to pass to annotation processors
  -nocompile                 Do not compile source files to class files
  -print                     Print out textual representation of specified types
  -factorypath <path>        Specify where to find annotation processor factories
  -factory <class>           Name of AnnotationProcessorFactory to use; bypasses default discovery process
See javac -help for information on javac options.

You’ll have to say no to default settings, and not install apt packages. apt is the Debian/Ubuntu package manager, and is not available on Synology.

The other problem should then be solved: brewblox-ctl install stopped here with an error, and never created the brewblox/ directory.

brewblox-ctl setup should be run inside the brewblox directory.

Thank you. That worked. Now I need to wait until my current Helles is done fermenting to get everything transitioned over.

Thanks,
Joel

I’ve taken some time this morning and worked on migrating over to the new Brewblox and I’ve been able to sucessfull flash and update the Spark but now I cannot get the controller to see the Spark when on wifi. It works just fine when connected to USB. I was able to get a sucessfull Wifi connection when setting it up and the Spark device has an IP address on it. It’s only the controller that doesn’t see it.

Any ideas?

Do you see the wifi address appear when running brewblox-ctl discover-spark?

I get a No buffer space available error.

How large is your SD card? It may be you’re out of space.

It’s on a Synology NAS that has several free TB. That shouldn’t be an issue.

I got it working and here are the results.

Does you service now discover the Spark? If not, could you please run brewblox-ctl log?

I receive this error message.

You may need to install that separately. In Synology packets, can you find “net-tools” or “netcat”?

I’ll keep researching but I’m not seeing any netcat or net-tools as a Synology package or even a community package.

Does the synology box need to have wifi or can the Spark utilize the wifi signal from the access points that I have around the house?