Giter Club home page Giter Club logo

smingswitch's Introduction

Sming Switch

An alternative firmaware for SONOFF - TH10/TH16 switches based on Sming Framework.

sonoff-th16.jpg

Introduction

TBD...

Features

SmartConfig Support

By pressing the button for a long time the device will enter a configuration mode. Using smartconfig one can easier provide WIFI credentials without having to flash new firmware.

Automatic Over-The-Air(OTA) updates

The application will be updated automatically when there is a new version. This is done via a secure connection to a MQTT server. If interested you can easily change the MQTT server with your own one. For more details see the OtaUpgradeMqtt documentation.

Automatic start when humidity is increasing

UPnP Support

Universal Plug and Play (UPnP) is a set of networking protocols that permits networked devices, such as personal computers, printers, Internet gateways, Wi-Fi access points and mobile devices to seamlessly discover each other’s presence on the network and establish functional network services for data sharing, communications, and entertainment.

Getting Started

Requirements

This application is based on Sming Framework. You will need to install at least the Esp8266 toolchain for your operating system. Take a look at Sming's documentation for details.

Compilation

Once ready with the Sming installation you need to go to the root folder of this project and run:

make

The command above will compile Sming and your application. The initial compilation takes a bit of time so be patient.

Wiring

Warning

DANGER OF ELECTROCUTION

If your device connects to mains electricity (AC power) there is danger of electrocution if not installed properly. If you don't know how to install it, please call an electrician (Beware: certain countries prohibit installation without a licensed electrician present). Remember: SAFETY FIRST. It is not worth the risk to yourself, your family and your home if you don't know exactly what you are doing. Never tinker or try to flash a device using the serial programming interface while it is connected to MAINS ELECTRICITY (AC power).

We don't take any responsibility nor liability for using this software nor for the installation or any tips, advice, videos, etc. given by any member of this site or any related site.

TBD ...

Flashing

Warning

DANGER OF ELECTROCUTION

For this step your device MUST be disconnected from mains electricity (AC power). Never tinker or try to flash a device using the serial programming interface while it is connected to MAINS ELECTRICITY (AC power). We don't take any responsibility nor liability for using this software nor for the installation or any tips, advice, videos, etc. given by any member of this site or any related site.

Make sure that you have the correct wiring. Connect your device to your laptop. From your laptop run the following command from the root application folder:

make flash

smingswitch's People

Contributors

slaff avatar slav-at-attachix avatar

Stargazers

 avatar

Watchers

 avatar  avatar

smingswitch's Issues

[SOLVED] UPnP: Automatic generation of .h files from XML

@mikee47 For a Sming sample project I have created a XML device and service files (https://github.com/slaff/SmingSwitch/tree/master/schema/schemas-sming-org). Now I would like to generate automatically .h files. How can I do this?

See the comments for the solution.
Some notes:

  • Location of the .h and .cpp files:
    The .h and .cpp files will be generated in the global build directory. The directory location can be found by typing make list-config and looking at the prerequisites to find the desired directory. Example
PREREQUISITES
- /opt/Sming/Sming/out/Host/debug/build/UPnP-Schema/.gen
CUSTOM_TARGETS
...

From the excerpt above the build directory for the schema is /opt/Sming/Sming/out/Host/debug/build/UPnP-Schema/.

  • .h and .cpp regeneration:
    If the original device or service(s) XML files are updated then no .h and .cpp files will be re-generated. One way to regenerate, unfortunately all, .h and .cpp files for the schemas is to run: make UPnP-Schema-clean and the run again make.

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.