Giter VIP home page Giter VIP logo

brew96-docker's Introduction

brew96 - brewpi for 96boards with Sensors Mezzanine

Docker container that uses the legacy brewpi branch (arduino compatible), created to run on 96boards CE compatible platforms with the Sensors Mezzanine (arduino).

Optionally the environment variable TZ can be set, this will set the timezone of the docker container. If not assigned, the UTC timezone is used.

Building the container

$ docker build -t brew96-docker .

Using pre-built containers

You can also use the pre-built docker container available at https://hub.docker.com/r/rsalveti/brewpi-docker-arm64/ and https://hub.docker.com/r/rsalveti/brewpi-docker-armhf/.

ARM64 host machine:

$ docker pull rsalveti/brewpi-docker-arm64

ARMHF (32-bit) host machine:

$ docker pull rsalveti/brewpi-docker-armhf

Flashing Arduino

BrewPi requires a specific firmware to be flashed into the Arduino chip (responsible for handling the sensor data and reporting back to the brewpi service).

To flash the BrewPi firmware into the Sensors Mezzanine Arduino chip (via a 96boards CE board):

$ sudo apt-get install arduino-core
$ wget https://github.com/BrewPi/firmware/releases/download/0.2.10/brewpi-arduino-uno-revC-0_2_10.hex
$ avrdude -F -e -p atmega328p -c arduino -b 115200 -P /dev/tty96B0 -U flash:w:"brewpi-arduino-uno-revC-0_2_10.hex" -C /etc/avrdude.conf
# Erase EEPROM (required after initial flash)
$ echo -ne 'E\n' > /dev/tty96B0

Running BrewPi docker container

Since BrewPi writes the log, configs and data under the same folder used by the service and webui, everything is mounted as an external container volume (to allow retaining the data when updating the container image).

$ git clone --branch legacy --depth 1 https://github.com/BrewPi/brewpi-script ~/brewpi/home
$ git clone --branch legacy --depth 1 https://github.com/BrewPi/brewpi-www ~/brewpi/www
# Copy custom config, required for the UART/arduino port
$ cp brewpi-config.cfg ~/brewpi/home/settings/config.cfg

Then just start with docker run:

$ docker run -it -p 8080:80 -v ~/brewpi/home:/home/brewpi -v ~/brewpi/www:/var/www --device=/dev/ttyMSM1 brew96-docker bash

Additional info

BrewPi Shield (pin mapping used by the Arduino firmware):

brew96-docker's People

Contributors

rsalveti avatar seeflat avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.