mercoledì 22 novembre 2017

How to send signals

Now let's see hot to send the decoded signal.

Using Python I wrote a Telegram bot  (ACBot) to send commands to my air conditioner also from remote with different devices.
using a PC, a Raspberry Pi or Arietta G25 (another Linux embedded ARM device).

The bot can run on a PC or on a Raspberry Pi or on Arietta and you can use it in the following ways:
    • an IrToy v2 connected to a PC USB port
    • an IrToy v2 connected to a Raspberry Pi USB port
    • a simple infrared LED connected to a GPIO of a Raspberry Pi (it needs pigpio library or Lirc)
    • a simple infrared LED connected to a pin of Arietta G25 (it needs Lirc)

     

    How to use ACBot

    My ACBot project is easy to use. It's enough to clone it or to copy the *.py files and the configuration file into a directory
    Then you must create your own bot through BotFather. Write the assigned token in the token_string key in the [common] section of acbot.conf configuration file.
    Be careful to correctly set the other sections in acbot.conf and to have the needed dependency modules: nothing difficult.
    Then run:

    python acbot.py

    The managed commands in ACBot are: /start, /menu, /stop, with obvious meanings.
    Typing /start in the bot a custom keyboard will appear:


    You can switch ON, OFF or selecting SETTINGS you can set the other parameter of the air conditioner (i.e. FAN SPEED, COOL, TEMP etc.).

    If you select ON or OFF it will appear another custom keyboard with which you can select if to start/stop the air conditioner just now or to set a time to do it:


    If you choose SCHEDULE you will be asked to set time in HH:MM format (24h)


    You'll receive a confirmation message.

    In the next posts we'll see in detail how to use each device.

    Nessun commento:

    Posta un commento

    In evidence

    Control your air conditioner with a Telegram bot

    I have a Mitsubishi SRK 258 CENF-R air conditioner with its RKS502A502A remote control. I can not set a timer to switch it on and/or off a...

    Most popular