Getting the Raspberry pi to send instant messages


Commands

Disclaimer: all commands are software based. This software is provided AS IS, under GPL license, without any warranty. Do not use the kit for any kind of critical application. No responsibility for any kind of losses under any circumstances.

You should have Telegram account activated on Raspberry Pi and Telegramic Alarm software running in order to use commands and to be notified by triggering the motion sensor. Telegramic Alarm software starts automatically on RPi boot. For manual start log in and type:

cd /home/pi/setup

sudo python qrsetup.py

Make sure, that you have your Raspberry Pi phone number in the phone book, and Telegram account in your contact list. If not – add it:



You can control your system with simple Telegram messages.

Send to your Raspberry Telegram account:

help


and you'll have the full list of available commands. Here goes detailed description of them:

Command

Description

Example

ip

Tells current IP address of the RPi

ip

alarm

Shows help how to user ALARM

alarm

alarm on

Sets Telegram notifications on for your Telegram account. Many accounts can have notifications at the same time.

alarm on

alarm off

Sets Telegram notifications off for your Telegram account

alarm on

alarm N

Sets number of photos to be taken and sent to you when alarm is triggered. Default - 1

alarm 5

alarm history

Shows number, time and duration of last 10 triggers of motion detector

alarm history

alarm history R

Shown time, duration and first photo of event number R

alarm history 25

alarm delay M

Sets minimum interval between notification for M minutes. Usually Motion sensor trigger sequentially when if there is a motion in front of it. To avoid non-stop messaging there is a default delay – 1 minute. You can set longer (2,3,4...) or no delay – 0.

alarm delay 0

alarm now

Take and send a photo right now!

alarm now

alarm now K

Take and send K photos with 2 seconds interval right now!

alarm now 3

alarm status

Shows your current subscription status

alarm status

alarm status all

Shows subscription status for all users who ever sent a command to the system

alarm status all

temp

Tells current temperature from the sensor

temp

setup

Switches to set up mode: enables Camera and QR Code reading for another setup cycle. To exit setup mode send any recognizable command to Telegram account or manually remove file /home/pi/setup/stopit

setup

When Motion sensor triggers, it will take and save on SD card N photos with 2 second interval. If you're subscribed for notifications with

alarm on

you'll get a notification along with N photos, reduced to 800x600 pixels, and current temperature (if sensor is connected).


Previous: Assembling and Wiring

Zircon - This is a contributing Drupal Theme
WeebPal