Skip to content

ESP8266 gets Ege University Computer Engineering website announcements via HTTPS GET. After that checks if a new announcement has made by looking Firebase real-time database, if yes then it posts it on Telegram group.

License

Notifications You must be signed in to change notification settings

emre-sahinn/BilMuhTelegramBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

BilMuh Telegram Bot 🤖

Some of us are too lazy to check our department's website to see the important announcements. To overcome this problem we created the BilMuh Telegram bot. Basically, Telegram bot runs on the ESP8266 development board and fetches pure HTML code at our department's announcement scrollbar using ThingSpeak's ThingHTTP (We preferred ESP8266 by NodeMCU because it is a cost-effective and highly integrated Wi-Fi MCU). After getting data, our C algorithm makes HTTP GET request to ThingHTTP and fetches all data available. Then, comparing the new data with old data using Firebase Realtime Database. If new data differs from the old one, then make an HTTP PUT request to Firebase and replace the current data to new data. At the end of this process, we put ESP8266's MCU to deep sleep mode for power efficiency.

Goal 🎯

We don't need to check our department website every day anymore. We push a Telegram notification to more than 200 students in a single cycle. This automation makes our life carefree as we don't miss any important notification. For electricity, ESP8266 sleeps for 99% of the day, so don't worry about the electricity bill.

Reliability 💎

Our current system has been working for 3 months without any issue.

Getting Started 📖

These instructions will get you a copy of the project up and running on your development board:
Step 1) Download Arduino IDE
Step 2) Download ESP8266 Core for IDE
Step 3) Create an account on Firebase
Step 4) Create an account on ThingSpeak
Step 5) Download Universal Telegram Bot Library
Step 6) Compile the given code
Step 7) Connect a jumper cable between D0 and RST pins.
Step 8) Plug some high-quality 5V adaptor to ESP8266(Raspberry Pi adaptor works great)

That's all! While you are sleeping, ESP8266 will work at 1-hour intervals.

Prerequisites 📝

1 x Breadboard
1 x Jumper Cable
1 x 5V 2A adaptor
1 x ESP8266
1 x USB Cable (to upload the code)
2 x Heatsink (Optional)

Built With 🎇

About

ESP8266 gets Ege University Computer Engineering website announcements via HTTPS GET. After that checks if a new announcement has made by looking Firebase real-time database, if yes then it posts it on Telegram group.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages