Skip to content

Commit

Permalink
Merge pull request #13 from spothings/beta
Browse files Browse the repository at this point in the history
fixing telegram bot
  • Loading branch information
bukanspot authored Jun 2, 2023
2 parents 1c1f32e + 964892c commit 4251f1f
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 14 deletions.
7 changes: 4 additions & 3 deletions doc/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
- https://dl.espressif.com/dl/package_esp32_index.json

## Reference
- [Get Started](https://randomnerdtutorials.com/getting-started-with-esp8266-wifi-transceiver-review/) : Getting Started with ESP8266 NodeMCU Development Board
- [Digital Pin](https://randomnerdtutorials.com/esp8266-nodemcu-digital-inputs-outputs-arduino/) : ESP8266 NodeMCU Digital Inputs and Digital Outputs (Arduino IDE)\
- [Potentiometer](https://www.instructables.com/ESP8266-Using-PWM-With-Potentiometer/) : Basic Code to Get LDR Value.
- [Getting Started with ESP8266 NodeMCU Development Board| Random Nerd Tutorials](https://randomnerdtutorials.com/getting-started-with-esp8266-wifi-transceiver-review/)
- [ESP8266 NodeMCU Digital Inputs and Digital Outputs (Arduino IDE) | Random Nerd Tutorials](https://randomnerdtutorials.com/esp8266-nodemcu-digital-inputs-outputs-arduino/)
- [ESP8266 Using PWM With Potentiometer : 4 Steps - Instructables](https://www.instructables.com/ESP8266-Using-PWM-With-Potentiometer/)
- [Telegram: Control ESP32/ESP8266 Outputs with Arduino IDE | Random Nerd Tutorials](https://randomnerdtutorials.com/telegram-control-esp32-esp8266-nodemcu-outputs/)
22 changes: 12 additions & 10 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
---

## About Project
I have created a project solely for exploring the features of the NodeMCU microcontroller (ESP8266) and fulfilling my desire to create an automatic backlight for my desk that adjusts according to day and night time using an LDR sensor. Several variables are stored in the ESP8266 EEPROM to prevent data loss upon restart. Additionally, I have incorporated a Telegram bot as an alternative method for remote control. I may consider adding more features in the future.
I have created this project solely for exploring the features of the NodeMCU microcontroller (ESP8266) and fulfilling my desire to create an automatic backlight for my desk that adjusts according to day and night time using an LDR sensor. Several variables are stored in the ESP8266 EEPROM to prevent data loss upon restart. Additionally, I have incorporated a Telegram bot as an alternative method for remote control. I may consider adding more features in the future.

[![Development Status](https://img.shields.io/badge/status-development-red)](https://github.com/spothings/strip-table/tree/dev)
![GitHub last commit](https://img.shields.io/github/last-commit/spothings/strip-table)
Expand All @@ -14,16 +14,18 @@ I have created a project solely for exploring the features of the NodeMCU microc

## Feature
- [Current](https://github.com/spothings/strip-table/releases)
- Turn on and off the lights using relay
- Use NTP client to get value day or night
- Using the LDR sensor to get the light intensity
- Using average light intensity for reasons of stability of sensor readings [`by default is off`](https://github.com/spothings/strip-table/pull/12)
- Make auto sampling dark value
- Using Telegram bot for remote control
- [x] Turn on and off the lights using relay
- [x] Use NTP client to get value day or night
- [x] Using the LDR sensor to get the light intensity
- [ ] Using average light intensity for stability sensor readings [`by default is off`](https://github.com/spothings/strip-table/pull/12)
- [x] Make auto sampling dark value
- [Development](https://github.com/spothings/strip-table/tree/dev-code)
- Using EEPROM to store data
- [x] Using Telegram bot for remote control
- [ ] Using EEPROM to store data
- [ ] Use pointer for function
- [ ] Use Webserver

## Development
## Contents
- [Documentation](/doc)
- [Project Workflow](/flow)
- [Source Code](/src/main)
Expand All @@ -39,4 +41,4 @@ I have created a project solely for exploring the features of the NodeMCU microc
If you think this project is helpful, you can make a donation. For those of you who want to make a donation, we would really appreciate it. Donations can be made through [Buy Me a Coffee](https://www.buymeacoffee.com/bukanspot) and [PayPal](https://paypal.me/bukanspot).

## License
This project is using [spothings template](https://github.com/spothings/spothings). Copyright, Privacy Policy and License also sourced from there.
This project is owned by [spothings](https://github.com/spothings). Copyright, Privacy Policy and License also sourced from there.
1 change: 1 addition & 0 deletions src/main/main.ino
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ void loop() {

// if morning, it's time to rest 😴
else {
TDELAY = 0;
Relay(pin_relay, false);
}
}
Expand Down
7 changes: 6 additions & 1 deletion src/main/secret.ino.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
// wifi requirement
#define WIFI_SSID "your_ssid"
#define WIFI_PASSWORD "your_password"
#define WIFI_PASSWORD "your_password"

// telegram requirement
#define BOTtoken "XXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
#define CHAT_ID "XXXXXXXXXX"

0 comments on commit 4251f1f

Please sign in to comment.