× Benvenuti sul nostro forum su Sint Wind PI!

Postate qui domande o segnalate problemi / bug che riscontrate,

file Telegram Plugin

More
7 years 11 months ago - 7 years 11 months ago #6824 by roberto2011
Telegram Plugin was created by roberto2011
Come Installare telegram sui nostri raspberry.

Per installare Telepot digitare i comandi
rw
sudo pip install telepot
// sudo pip install telepot --upgrade # UPGRADE

Aprite telegram sul vostro telefono e cercate il contatto
BotFather
(Il bot è indipendente dal numero di telefono,quindi potete usare il vostro e non quello connesso a swpi)





Avviate la chat con
BotFather
Digitate il comando /newbot
Date un nome al vostro bot
Es. " Meteo Serrasanta"

successivamente definite il nome del bot che deve finire con _bot
Es.: "Meteo_bot"


A questo punto BotFather vi restituirà un codice api (detto 'token', una specie di lunga password) che serve per 'attivare' i nostri script.

Allego una bozza del mio script

Sensori Davis +BME280 + Raspberry b+ webCam serrasanta.fleanet.it (Eremo di Serrasanta - Gualdo Tadino - 1.340 m s.l.m.)
Attachments:
Last edit: 7 years 11 months ago by seven.
The following user(s) said Thank You: tony

Please Log in to join the conversation.

More
7 years 11 months ago #6825 by roberto2011
Replied by roberto2011 on topic Telegram Plugin
Seven Aggiungi Modifica e Correggi
;) ;) ;)

Sensori Davis +BME280 + Raspberry b+ webCam serrasanta.fleanet.it (Eremo di Serrasanta - Gualdo Tadino - 1.340 m s.l.m.)

Please Log in to join the conversation.

More
7 years 11 months ago #6833 by seven
Replied by seven on topic Telegram Plugin
Ah buon Roby per me è un capolavoro! :cheer: Mi sono permesso solo di espandere il concetto del token sperando giovi alla chiarezza, ma per il resto secondo me va benissimo. Ottimo mini tutorial.

Please Log in to join the conversation.

More
7 years 10 months ago - 7 years 10 months ago #7027 by SkizZO
Replied by SkizZO on topic Telegram Plugin
Interessante... Da provare! Mi odierete perché sto rispondento a tutti i topic ahahah ma ormai, daro che la stazione 'va' (dita incrociate), ora la sto perfezionando.

Vorrei fare un plugin che avvisa con un messaggio (poi magari screen etc etc) quando la media del vento va sopra un determinato valore in un determinato range di direzione (metterei un counter per non avere un sms bombing, ma limitare l'avviso ad ogni mezz'ora/ 1h), e quando poi è calata.
Vidi tempo fa qualcosa per la twmperatura se non erro? Non lo trovo più.

Inoltre chiedevo: Il bot è accessibile da tutti in privato?, vorrei metterlo in un gruppo e farlo usare solo da quelli aggiunti al gruppo... Si può fare?
Last edit: 7 years 10 months ago by SkizZO.

Please Log in to join the conversation.

Time to create page: 1.072 seconds