A Telegram BOT for this awesome all-in-one board.
Dependencies: BSP_B-L475E-IOT01 mbed es_wifi jsmn
Telegram Bot for DISCO_L475VG_IOT01
This application embeds aTelegram chatbot into the DISCO_L475VG_IOT01 board.
The Bot answers to the users queries about:
- Real time environmental data taken from the on board sensors.
- Environmental data history of the latest 24 hours stored on board.
- Camera images taken from the Arducam-mini-2mp (optional).
This software uses:
- A modified version of the wifi library provided by ST in order to enable the TCP-SSL connection.
- An open source json parser jsmn (https://github.com/zserge/jsmn).
- A web service (http://now.http.org) to initialize the RTC.
- A web service (https://image-charts.com) to publish temperature,humidity and pressure charts.
- A modified version of the Arducam driver (https://os.mbed.com/users/dflet/)
Compilation
Import in your compiler and modify the following defines:
- WIFI_SSID
- WIFI_PASSWORD
- TELEGRAM_BOT_APIKEY
Please follow the Telegram bots documentation (https://core.telegram.org/bots) to better understand how the Telegram API works and how to create your bot.
In order to support the Arducam-Mini-2MP set WITH_ARDUCAM_2640 #define to 1.
Screenshots
Security
The Inventek wifi module creates the ssl connection but does not authenticate the server's certificate ( AT cmd P9=0 ).
For more details http://www.inventeksys.com/IWIN/programming-certificates-tcp-ssltls/
History
WITH_ARDUCAM_2640 default value to 0
2018-02-16, by dvddnr [Fri, 16 Feb 2018 09:17:47 +0000] rev 10
WITH_ARDUCAM_2640 default value to 0
added option for arducam ov2640 support
2018-02-15, by dvddnr [Thu, 15 Feb 2018 14:57:52 +0000] rev 9
added option for arducam ov2640 support
First version
2018-02-15, by dvddnr [Thu, 15 Feb 2018 14:31:15 +0000] rev 8
First version
added daily history charts
2018-01-30, by dvddnr [Tue, 30 Jan 2018 10:23:41 +0000] rev 7
added daily history charts
Added Bot response for RTC value
2018-01-26, by dvddnr [Fri, 26 Jan 2018 15:27:26 +0000] rev 6
Added Bot response for RTC value
reworked http request; added RTC initialization using now.httpbin.org free web service
2018-01-26, by dvddnr [Fri, 26 Jan 2018 14:59:14 +0000] rev 5
reworked http request; added RTC initialization using now.httpbin.org free web service
manage wifi module disconnections
2018-01-25, by dvddnr [Thu, 25 Jan 2018 15:27:29 +0000] rev 4
manage wifi module disconnections
minor fix
2018-01-24, by dvddnr [Wed, 24 Jan 2018 11:51:07 +0000] rev 3
minor fix
first release
2018-01-24, by dvddnr [Wed, 24 Jan 2018 11:10:46 +0000] rev 2
first release
first release
2018-01-24, by dvddnr [Wed, 24 Jan 2018 11:03:38 +0000] rev 1
first release