Sign inSign up

sebd/co2-mqtt

By sebd

•Updated almost 7 years ago

Image
0

10K+

sebd/co2-mqtt repository overview

⁠CO2 sensor readout and push to mqtt, in docker container on rpi - desinged for a K8S cluster

WIP

copied logic and code from:

kubernetes deployment config:

apiVersion: extensions/v1beta1
kind: Deployment
labels:
    app: co2-mqtt
    name: co2-mqtt
spec:
  replicas: 1
  selector:
    matchLabels:
      app: co2-mqtt
  template:
    metadata:
      labels:
        app: co2-mqtt
    spec:
      containers:
      - env:
        - name: USB_DEVICE
          value: /dev/hidraw0
        - name:  MQTT_SERVER
          value: 192.168.1.1
        - name: MQTT_PORT
          value: 1883
        - name: MQTT_TOPIC
          value: co2/room_1

        image: sebastiand/co2-mqtt-pi:latest
        name: co2-mqtt
        tty: true

Tag summary

Content type

Image

Digest

Size

17 MB

Last updated

almost 7 years ago

docker pull sebd/co2-mqtt