Coder Social home page Coder Social logo

smart-home's Introduction

smart-home

Dependencies

esptool.py

sudo -H pip3 install -q esptool

nodemcu-uploader

sudo pip3 install nodemcu-uploader

Bin and Img

Each device type has a custom version of the nodemcu runtime. The modules to include are defined in devices folder user_config.h and user_modules.h. This changes infrequently, only when a new module is required from the nodemcu source. This is generated and flashed using the build_nodemcu.sh script.

Each device type also has a img file with it's Lua source code. This changes frequently. This is generated using the build_src.sh script.

All files are stored in the relevant devices folder.

Mosquitto Bridge Configuration

As the system uses ESP8266, they do not work well on TLS. The solution to this is to have a local broker running with a secure bridge to the platform. This can run on a RPi or router that supports MQTT bridges.

Teltonika RUT955

Access

Enable remote SSH access then: ssh [email protected] Or join the Teltonika local network and: ssh [email protected] Use the Teltonika admin password for SSH

Debugging

This is will run the broker in current session and output to console

/etc/init.d/mosquitto stop mosquitto -c /etc/mosquitto/tb-bridge.conf

It's also possible to subscribe to the broker to view traffic

Configuration

  • Copy into /etc/mosquitto
    • tb-bridge.conf
    • check.sh
    • passwords_hashed.txt
    • swb.ca
  • In the Teltonika UI add the following line to System->User Scripts
    • mosquitto -d -c /etc/mosquitto/tb-bridge.conf
  • Add the following Cron task to check the broker
    • */1 * * * * /bin/ash /etc/mosquitto/check.sh

smart-home's People

Contributors

tmcadam avatar

Watchers

 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.