Coder Social home page Coder Social logo

smart-home-remote's Introduction

Projekt: Pilot do smart home (MQTT)

Michał Kurleto

Instrukcja:

  1. Należy uzupełnić w pliku config.json dane potrzebne do połączenia się ze swoim brokerem MQTT
  2. Uruchomić plik app.py powinna się pokazać wiadomość:
* Serving Flask app "app.py"
 * Environment: development
 * Debug mode: off
 * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
  1. Należy uruchomić powyższy link w przeglądarce
  2. Po włączeniu/wyłączeniu dowolnego użądzenia powinno się pokazać w konsoli coś w rodzaju:
[INCOMING MESSAGE] {'topic': 'home/bedroom/light', 'payload': 'OFF'}

Co oznacza że operacja dotarła do serwera MQTT i wróciła do nas bo subskrybujemy topic.

Informacje

Project jest wykonany w oparciu o bibliotekę Flask oraz Flask-MQTT.
Wszystkie pokoje i znajdujące się w nich urządzenia są ładowane dynamicznie na stronę z pliku config.json

Przykład działania

IMAGE ALT TEXT

smart-home-remote's People

Contributors

zbsss avatar

Watchers

James Cloos avatar  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.