Giter Site home page Giter Site logo

homecontrol_hardware's Introduction

Project for devices soft and frontend of device webserver

Device sketch configuration

Wifi access point

const char* ssid = "NodeMCU";
const char* password = "12345678";

Endpoint

String host = "http(s)://example.com/buttons/GetWithToken?token=";

Pins

You can configure input reset pin

pinMode(0,INPUT_PULLUP);

And output pin that control relay or transistor

pinMode(4, OUTPUT);

frontend links

Because of memory limitation frontend is stored on the side server. You should write the links on the index.css and index.js in sketch

216. index_content += "<script type='module' crossorigin src='http(s)://example.com/index.js'></script><link rel='stylesheet' href='http(s)://example.com/index.css'>";

Frontend configuration

Host configuration

In .env file write the following line with your host address

VITE_HOST=http(s)://example.com/

Deploy

Then you can build the vue application

npm run build

and publish index.js and index.css on side server

How it works

On startup new device create access point with ssid and password specified in sketch.

image

Then you should open your browser and write in the address bar 192.168.1.1. You are on the page where you write ssid and password of your home network. It will saved in EEPROM of the device.

image

Then restart the device and connect to your home network. In address bar write the address that was given to device by router. There you can configure device.

image Write your email and password Then you will see the page where you should write the name of device.

image After setup you should restart device. After restarting device is ready to work.

homecontrol_hardware's People

Contributors

bialri avatar

Watchers

 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.