GithubHelp home page GithubHelp logo

ben5en / rpi_mqttclient_openhab2 Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 15 KB

Script for temperature reading and WS2812b handling via MQTT in an openHAB2 environment

Home Page: https://hackaday.io/project/168517-openhab2-raspberry-pi-touch-display

Python 100.00%
adafruit adafruit-neopixel bmp280 touchscreen home-automation home-assistant homebrew smarthome smart-home led

rpi_mqttclient_openhab2's Introduction

RPI_mqttClient_OpenHAB2

Script for temperature reading and WS2812b handling via MQTT in an openHAB2 environment

This is the software running on an RPI 3 Model A+ I am using for a OpenHAB2 Raspberry Pi Touch Display hackaday.io

Here are the steps I did to get this up an running:

  1. flashed a new raspbian buster on SD

  2. configured WIFI & SSH before the first start like done here: https://learn.adafruit.com/raspberry-pi-zero-creation/text-file-editing

  3. pluged in the SD card and powered up the RPI

  4. looked up for e.g. the router for the IP of the RPI

  5. connected via SSH

  6. changed the standard password https://www.raspberrypi.org/documentation/linux/usage/users.md

  7. run:

    sudo apt-get update sudo apt-get full upgrade

  8. installed remote desktop protocol:

    sudo apt install xrdp

  9. made local settings (timezone etc.) via RDP

  10. installed Adafruit blinka like, but with root support (sudo): https://learn.adafruit.com/circuitpython-on-raspberrypi-linux/installing-circuitpython-on-raspberry-pi

  11. installed Adafruit BMP280 lib like: https://learn.adafruit.com/adafruit-bmp280-barometric-pressure-plus-temperature-sensor-breakout/circuitpython-test

  12. installed Adafruit Neopixels like: https://learn.adafruit.com/adafruit-neopixel-uberguide/python-circuitpython

  13. Since this library and the onboard Raspberry Pi audio both use the PWM (when using GPIO18), they cannot be used together. You will need to blacklist the Broadcom audio kernel module by creating a file /etc/modprobe.d/snd-blacklist.conf with "blacklist snd_bcm2835"

  14. installed paho-mqtt:

    sudo pip3 install paho-mqtt

  15. enabled script to run with autostart (edit rc.local)

rpi_mqttclient_openhab2's People

Contributors

ben5en avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

rpi_mqttclient_openhab2's Issues

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.