Code Monkey home page Code Monkey logo

esp8266-wireless-switcher's Introduction

esp8266-wireless-switcher

A custom firmware to transform the ESP8266 wifi module into a wifi http based switcher

GPIO02 is used as an output pin. You can connect a led or a relay and controll it by a button added to GPIO00. Also the firmware provides a web interface and a simple API that will controll the GPIO02 state.

API DOC

Set GPIO02 output to active.

POST http://{ipAddress}/gpio02.cgi
Request Body: value=1

Set GPIO02 output to inactive.

POST http://{ipAddress}/gpio02.cgi
Request Body: value=0

Get GPIO02 state as a string (on|off)

GET http://{ipAddress}/api/gpio02.tpl

Get device info in JSON format.

GET http://{ipAddress}/api/device-info.tpl

Connect your device to your home network

Search for a network called "ESPxxxxx" and connect. Now you can access the interface using this: http://192.168.4.1

Use http://192.168.4.1/wifi and connect the wifi module to your home network.

You can find the IP of module inside your home network on the main page: http://192.168.4.1

Now you have the IP and you can connect to your home network back and access the module using that IP

esp8266-wireless-switcher's People

Contributors

dubaurazvan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

esp8266-wireless-switcher's Issues

other GPIOs & input

Great work! GPIO2 is configured as output here. can GPIO2 be configured as input too?
Can Other GPIO's reconfigured?
It would be great, if it has atleast 1 input and 1 output.

provide firmware

Hi,
would you mind to provide the compiled firmware?
In that case, one would not need any SDK to use your switch.
Thanks a lot!

Cheers, muetze

compile on mac

Is there a way to compile it on a mac?
I could use the makefile.mac from esp_mqtt but that didnt work for me.

cannot join other networks

when I try to use the interface to connect to another network, it seems to hang on scanning and doesn't proceed past that.

Cannot connect to ESPxxx access point

After spending a few days trying to flash, i finally got it to flash. for a brief few minutes, i could see esp8266 show up as advertising it's access point, but I could never connect to it. I'd get errors from my mac. Now, after several reboots, I cannot get the access point to advertise any longer either.

any ideas?

Thanks,
David

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.