Differences

This shows you the differences between two versions of the page.

Link to this comparison view

iothings:proiecte:2022sric:surveillance [2023/06/02 08:09]
ruxandra.grigorie
iothings:proiecte:2022sric:surveillance [2023/06/02 09:57] (current)
ruxandra.grigorie
Line 3: Line 3:
 Grigorie Ruxandra - SRIC Grigorie Ruxandra - SRIC
  
-Demo: [[https://​www.canva.com/​design/​DAFkkIwiYsA/​Pa3jRddZpZGIIisbDiHYRA/​ +Demo: [[https://​www.canva.com/​design/​DAFkkIwiYsA/​Pa3jRddZpZGIIisbDiHYRA/​edit?​utm_content=DAFkkIwiYsA&​utm_campaign=designshare&​utm_medium=link2&​utm_source=sharebutton]]
-editutm_content=DAFkkIwiYsA&​utm_campaign=designshare&​utm_medium=link2&​utm_source=sharebutton]]+
  
 ==== Project Description ==== ==== Project Description ====
-The purpose of this project is to have an ESP32CAM that can be remotely controlled to take and send a picture using a Telegram bot, and also to send a picture when motion is detected in front of the camera.+The purpose of this project is to have an ESP32CAM that can be remotely controlled to take and send a picture ​to the Telegram App, using a Telegram bot, and also to send a picture when motion is detected in front of the camera.
  
 ==== Hardware Description ==== ==== Hardware Description ====
Line 17: Line 16:
  
 ==== Software Description ==== ==== Software Description ====
-The main loop of the program checks after a fixed period if any command from the Telegram bot was issued. If the "/​photo"​ command was received, a new photo will be taken using the ESP32CAM and sent to the telegram bot API. The main loop of the program also after a fixed period ​checks ​if the ultrasonic sensor detected movement, and if it did, it takes and sends a picture to the telegram bot API.+The main loop of the program checks after a fixed period if any command from the Telegram bot was issued. If the "/​photo"​ command was received, a new photo will be taken using the ESP32CAM and sent to the telegram bot API using a POST HTTP request. The main loop of the program also checks ​after a fixed period if the ultrasonic sensor detected movement, and if it did, it takes and sends a picture to the telegram bot API.
  
   * **Telegram Bot init**   * **Telegram Bot init**
Line 63: Line 62:
 </​code>​ </​code>​
   * **Check if command was issued from Telegram bot**   * **Check if command was issued from Telegram bot**
-The code checks if a command was issued to the Telelgram bot, and if so, checks if the command was issued from the chad id that we configured as ours, in order to prevent others from issuing commands to our bot. If a valid command was issued, it is performed.+The code checks if a command was issued to the Telelgram bot, and if so, checks if the command was issued from the chat id that we configured as ours, in order to prevent others from issuing commands to our bot. If a valid command was issued, it is performed.
 <​code>​ <​code>​
 void handleNewMessages(int numNewMessages){ void handleNewMessages(int numNewMessages){
iothings/proiecte/2022sric/surveillance.1685682591.txt.gz · Last modified: 2023/06/02 08:09 by ruxandra.grigorie
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0