Giter Club home page Giter Club logo

Demo project using MQTT on the Joy-Pi

Description

This demo project consists of the following components:

  1. A MQTT producer sending temperature and humidity
  2. A Streamsheets app calculating the trend
  3. A MQTT consumer drawing the trends on the 8×8 pixel display as bars

Used hardware: Joy-Pi experimental case

Joy-Pi

The sensor is the blue part in the lower part.

Streamsheets

Installation

  1. Install Streamsheets. It runs the MQTT broker. I've installed it on a virtual machine running Debian.
  2. Install the necessary libraries to run the DHT11 sensor and the LED matrix as written in the manual (German version).
  3. Install Paho MQTT on the Raspberry Pi.

Preparation of Streamsheets

  1. Start Streamsheets by executing ./start.sh.
  2. Open Streamsheets in the browser on http://ip address:8081
  3. Login using your credentials.
  4. Import the Streamsheets app .
  5. Create the necessary MQTT connector and streams. It uses the local MQTT broker, which is already created by the installation. The topic of the connector is tutorial/. The topic of the consumer stream is joy1.
    Connector, Consumer and Producer
  6. Run the app by pressing the start button on the sheet.

Preparation on Raspberry Pi

  1. Set the following environment variables MQTT_SERVER, MQTT_USERNAME (most probably streamsheets) and MQTT_PASSWORD (see the password on the connector settings).
  2. Run ./send_mqtt.py in one terminal.
  3. Run ./receive_mqtt.py in the other terminal.
  4. Enjoy it!

Streamsheet projects in this repository

Display of the trend of temperature and humidity

This is the project described above. It was created for a demo at the University of Applied Sciences Burgenland.

Calculation of the dew point

Streamsheets

A project calculating the dew point using temperature and humidity, extended with an alarm, if the spread is too low.

This project was build for a presentation at the local Linux event called Linuxwochen Eisenstadt.

Franz Knipp's Projects

canpicker icon canpicker

Data collector for the CAN bus Elster protocol

cmdline-cast icon cmdline-cast

Cast the command line to a server to help students at the lectures

jsbin icon jsbin

Collaborative JavaScript Debugging App (Code 14 edition)

simple-chat icon simple-chat

My version of the Meteor demo-starter application, as used in my live coding sessions.

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.