项目作者: romanpeters

项目描述 :
💡 Raspberry Pi Blinkt! LED MQTT Client
高级语言: Python
项目地址: git://github.com/romanpeters/blinkt-mqtt-client.git
创建时间: 2018-08-11T20:00:39Z
项目社区:https://github.com/romanpeters/blinkt-mqtt-client

开源协议:

下载


blinkt-mqtt-client

Raspberry Pi Blinkt! LED MQTT Client

Features:

Installation:

  1. Install MQTT client software
    $ sudo apt-get install mosquitto-clients
  2. Install Python dependencies
    $ pip3 install -r requirements.txt
  3. Run it
    $ python3 main.py
  4. See lights.yaml on https://github.com/romanpeters/home-assistant for Home Assistant integration.

Auto-start

  1. Create a systemd unit file
    $ sudo nano /lib/systemd/system/blinkt.service
    with the following contents:
  1. [Unit]
  2. Description=blinkt
  3. After=network.target
  4. [Service]
  5. Type=simple
  6. User=your username
  7. WorkingDirectory=/path/to/blinkt-mqtt-client
  8. ExecStart=/usr/local/bin/python3 /path/to/blinkt-mqtt-client/main.py
  9. [Install]
  10. WantedBy=multi-user.target

Fill in your username, path to the files and Python executable where necessary.

  1. Update systemd
    $ sudo systemctl daemon-reload
  2. Enable auto-start on boot
    $ sudo systemctl enable blinkt.service