Skip to content

vergissberlin/coffee-bin

Repository files navigation

coffee-bin

Holds flows for raspberry coffee bin counter with NodeRED.

NSP Status

Installation

Local development

  1. Create an docker network docker network create webproxy
  2. Rename the docker-compose file cp docker-compose.development.yml docker-compose-override.yml
  3. Start the application docker-compose up -d

Server

  1. Start your httpd proxy
  2. Start the application docker-compose up -d

Usage

Deployment with git

If you wanna use git to save your flows, you have to install git and create a key

  1. sudo apt update && apt install git-core
  2. Gennerate ssh key ssh-keygen (hit enter twice) and add the generated key to your deployment key list on your repository server cat .ssh/id_rsa.pub
  3. Configure git
    • git config --global push.default matching
    • git config --global user.name "Coffee"
    • git config --global user.email sammy@example.com
  4. git clone YOUR-REPO.git ~/flows

Environment variables

  1. Authentification
    • ADMIN_USERNAME
    • ADMIN_PASSWORD
  2. Deployment
    • GIT_EMAIL
    • GIT_NAME
    • GIT_REPOSITORY
  3. Monitoring
    • PM2_SECRET_KEY
    • PM2_PUBLIC_KEY

Password generation

node-red-admin hash-pw docker-compose build --no-cache node-red

About

IOT Coffee bin. Prevents bin from overflow. Uses Node-RED.

Topics

Resources

License

Stars

Watchers

Forks