Giter Club home page Giter Club logo

rpi-system-sensors-docker's Introduction

Dockerized RPI System Sensors

Alpine-based docker image of the RPI System sensors project: https://github.com/tygozwolle/system_sensors

Environment Variables

MQTT_HOST (default '127.0.0.1')
MQTT_PORT (default '1883')
MQTT_USER
MQTT_PASSWORD
DEVICE_NAME (default 'test')
CLIENT_ID (default 'test')
TIMEZONE (default 'Europe/Brussels')
UPDATE_INTERVAL (default '60')
SENSORS_TEMPERATURE (default 'true')
SENSORS_CLOCK_SPEED (default 'true')
SENSORS_DISK_USE (default 'true')
SENSORS_MEMORY_USE (default 'true')
SENSORS_CPU_USAGE (default 'true')
SENSORS_LOAD1 (default 'true')
SENSORS_LOAD5 (default 'true')
SENSORS_LOAD15 (default 'true')
SENSORS_NET_TX (default 'true')
SENSORS_NET_RX (default 'true')
SENSORS_SWAP_USAGE (default 'true')
SENSORS_POWER_STATUS (default 'true')
SENSORS_LAST_BOOT (default 'true')
SENSORS_HOSTNAME (default 'true')
SENSORS_HOST_IP (default 'true')
SENSORS_HOST_OS (default 'true')
SENSORS_HOST_ARCH (default 'true')
SENSORS_LAST_MESSAGE (default 'true')
SENSORS_UPDATES (default 'true')
SENSORS_WIFI_STRENGTH (default 'true')
SENSORS_WIFI_SSID (default 'true')
SENSORS_BATTERY (default 'false')
SENSORS_NET_TX_DATA (default 'true')
SENSORS_NET_RX_DATA (default 'true')
SENSOR_DRIVE 

Examples

docker-compose.yml

version: "3"

services:

  sensors:
    image: tygozwolle/rpi-system-sensors-docker:latest
    container_name: system-sensors
    hostname: rpi
    environment:
      - MQTT_HOST=192.168.100.100
    restart: unless-stopped
    devices:
      - /dev/vchiq
    volumes:
      - /etc/os-release:/app/host/os-release:ro
      - /etc/hostname:/app/host/hostname:ro

docker

docker run -d \
  -v /etc/os-release:/etc/os-release:ro \
  -h $(hostname -f)
  --device /dev/vchiq \
  -e MQTT_HOST=192.168.100.100 \
  tygozwolle/rpi-system-sensors-docker:latest

rpi-system-sensors-docker's People

Contributors

tomquist avatar tygozwolle 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.