Skip to content

Dewo72d/where_is_my_light

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Where is my light

This project consists of a Node.js server and an ESP8266 client that work together to notify a user via Telegram when a light is turned on.

Installation

npm install express node-telegram-bot-api

Also install ESP8266WiFi.h and ESP8266HTTPClient.h in your ArduinoIDE

Usage

Replace these lines according to your server, router and .js files configuration.

http.begin(client, "http://0.0.0.0:3001/light?&token=your_token");
http.begin(client, "http://0.0.0.0:3001/ping"); 
const bot = new TelegramBot('youre_bot_token', {polling: true});
const validToken = 'token';

Configure systemd to automatically start the index.js server.

nano /etc/systemd/system/example.service

About

Smart Home light esp8266 express telegram IoT

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published