This files are useful to connect Arduino's serial communication to the internet!
Arduino sends a simple command throgh serial port then the pyscript act as server for services like IFTTT or Telegram
You may want to register a IFTTT account at https://ifttt.com/join
On IFTTT you must activate Maker and iOS Notification (or similar) channels. When Maker is active you have a key!
When IFTTT is active you have to create a receipe similar to the one I already created
You have to create a bot, more documentation at https://core.telegram.org/bots
The simplest process is:
- add @BotFather
- write him
/newbot
and follow the instruction - get the API key
Now connect Arduino to a USB port of your computer, open IDE and get the name of serial port (something like /dev/tty.usbmodem314)
Clone this repo git clone https://github.com/fvalle1/Arduino_serial
open pyscript.py write your correct keys and change the messages!
Complete the easy circuit at top of this page, load Arduino.ino to your board and finally
run python pyscript.py
telegram.py is a simple script the replies to a message in telegram as an echo
if you write him 'dimmi qualcosa' it will send to telegram the read of the serial port
Copyright (C) 2016 fvalle1
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
More details at LICENSE