chiefwigms/picobrew_picoAllows for full control of the PicoBrew Pico S/C/Pro & Zymatic models. Shout out to @hotzenklotz, Brian Moineau for PicoFerm API, @tmack8001 for Z series support & updates.
Demo Server
Refer to the Releases Page for steps to get up and running with your own Pico server with a Raspberry Pi device (recommended models include: Raspberry Pi Zero-W or Raspberry Pi 4).
By default the hostname of the RaspberryPi device will be "raspberrypi" and is discoverable on your local network along with the "samba" (or network shares) for sessions and recipes. You can use these to view the files created by the server during interactions with the user and connected devices.
There are two primary ways to help get additional details of errors that occur.
First is to see what is happening in your local browser. Most modern browsers have "development tools" that are included (in Chrome "Settings > More Tools > Developer Tools") and from these there are usually a console log as well as a "Network" tab that shows all the network requests made by the existing experience/page.
Second is to view the application logs from the included python server over an ssh or local keyboard+screen session.
sudo systemctl status rc.local -n <num-log-lines>
The remainder of this guide is oriented around creating a development environment for contributors.
DNS Forwarding (either through a router, RaspberryPi etc)
address=/picobrew.com/<Server IP running this code>Docker v19.x ([***]
Setup the following directory structure for use by the server.
recipes/ pico/ zymatic/ sessions/ brew/ active/ archive/ ferm/ active/ archive/
Run server volume mounting the above directory structure.
(Optional) Step 1: Generate SSL Certs
If you are looking to support a ZSeries device which requires HTTP+SSL communication we need to generatae some self-signed certificates to place in front of the flask app. These will be used when running nginx to terminate SSL connection before sending the requests for processing by flask.
./scripts/doccker/nginx/ssl_certificates.sh
On MacOS you can add permenant trust for the Certificate Authority (yourself) if you use Chrome and/or Safari this makes it so that the authority of the certificate generaated above is trusted. Only these browsers check keychain access to get a list of CAs whereas Firefox stores its own list of trusted CAs in the browser.
sudo security add-trusted-cert -d -r trustAsRoot -k /Library/Keychains/System.keychain $(pwd)/scripts/docker/nginx/certs/bundle.crt
Step 2: Run Flask Server (optionally with docker run or with docker-compose)
Either provide all variables to docker command directly or use the repository's docker-compose.yml (which will also include a working SSL enabled nginx configuration given you have setup certificates correctly with ./scripts/docker/nginx/ssl_certificates.sh)
Option 1: Docker Run (without SSL support or external SSL termination)
Running straight with docker is useful for easy setups which don't require SSL connections (aka non ZSeries brew setups) and/or for those that leveraging another existing system to handle the SSL connections (ie. mitmproxy, nginx, etc).
docker run -d -it -p 80:80 --name picobrew_pico \ --mount type=bind,source=<absolute-path-to-recipes>,target=/picobrew_pico/app/recipes \ --mount type=bind,source=<absolute-path-to-sessions>,target=/picobrew_pico/app/sessions \ chiefwigms/picobrew_pico
To view logs check the running docker containers and tail the specific instance's logs directly via docker.
docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 3cfda85cd90c chiefwigms/picobrew_pico "/bin/sh -c 'python3…" 45 seconds ago Up 45 seconds 0.0.0.0:80->80/tcp picobrew_pico
docker logs -f 3cfda85cd90c WebSocket transport not available. Install eventlet or gevent and gevent-websocket for improved performance. * Serving Flask app "app" (lazy loading) * Environment: production WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. * Debug mode: off * Running on [***] (Press CTRL+C to quit)
Option 2: Docker Compose (with SSL support via a dedicated nginx container)
To run a setup with http and https and want to have the ssl termination handled by the included nginx docker-compose is the easiest configuration to go with.
docker-compose up --build
or to start the servers in the background
docker-compose up --build -d
To view logs use the aliases service name app to view logs via the docker-compose command.
docker-compose logs -f app
Python >= 3.6.9
Clone this repo, then run
sudo pip3 install -r requirements.txt on *nix or pip3 install -r requirements.txt as an Administrator in windows
sudo python3 server.py on *nix or python3 server.py as an Administrator in windows (default host interface is 0.0.0.0 and port 80, but these can be specified via command-line arguments like so python3 server.py <interface> <port>)
Except as represented in this agreement, all work product by Developer is provided “AS IS”. Other than as provided in this agreement, Developer makes no other warranties, express or implied, and hereby disclaims all implied warranties, including any warranty of merchantability and warranty of fitness for a particular purpose.
探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
在 Linux 系统配置镜像服务
在 Docker Desktop 配置镜像
Docker Compose 项目配置
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
MacOS OrbStack 容器配置
在宝塔面板一键配置镜像
Synology 群晖 NAS 配置
飞牛 fnOS 系统配置镜像
极空间 NAS 系统配置服务
爱快 iKuai 路由系统配置
绿联 NAS 系统配置镜像
QNAP 威联通 NAS 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
无需登录使用专属域名
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
免费版仅支持 Docker Hub 访问,不承诺可用性和速度;专业版支持更多镜像源,保证可用性和稳定速度,提供优先客服响应。
专业版支持 docker.io、gcr.io、ghcr.io、registry.k8s.io、nvcr.io、quay.io、mcr.microsoft.com、docker.elastic.co 等;免费版仅支持 docker.io。
当返回 402 Payment Required 错误时,表示流量已耗尽,需要充值流量包以恢复服务。
通常由 Docker 版本过低导致,需要升级到 20.x 或更高版本以支持 V2 协议。
先检查 Docker 版本,版本过低则升级;版本正常则验证镜像信息是否正确。
使用 docker tag 命令为镜像打上新标签,去掉域名前缀,使镜像名称更简洁。
来自真实用户的反馈,见证轩辕镜像的优质服务