IntroductionIn our office there is a parking for bicycles. For her, the
Chinese alarm was bought
with a remote control . There was an idea to remotely turn on / off the alarm. From the available iron, there was a
Punch Through LightBlue Bean . On board the board was a temperature sensor, which we also use. Let the office chat daily to us the temperature in the office reports.
Tasks• Creating a remote alarm control from a phone or computer
• Informing about the room temperature in the Slack messenger
')
Components• Punch Through LightBlue Bean
• 5V alarm power supply
• Voltage converter DC-DC 5V – 3.3V
• Alarm system with infrared control panel
• Office server - Mac mini
Programs• App for LightBlue Bean
• Web server on Mac mini
• Server application to control LightBlue Bean via Bluetooth
• Scripts for automatic alarm control
• Scripts for notification in the Slack messenger
• Program for mobile phone (remote on / off alarm)
General scheme of work
Alarm management takes place from a mobile device using the http protocol through a web server installed on Mac mini.
After receiving the http request, the server launches an application that communicates with LightBlue Bean via Bluetooth by executing the specified commands.
Wiring an alarm to LightBlue Bean
Server scriptsThe scripts allow you to disable / enable alarms on command or by timer for a specified time and realize the ability to automatically send a message about the room temperature in the Slack messenger.
Mobile appTo control the alarm, I added functionality to the already
created application for remote opening of doors and viewing cameras . Authorization in the application by Gmail. FireBase to store profile and settings.
Photos in the assembly process


