× Benvenuti sul nostro forum su Sint Wind PI!

Postate qui domande o segnalate problemi / bug che riscontrate,

file WhatsApp Plugin

More
8 years 7 months ago - 8 years 5 months ago #5764 by roberto2011
WhatsApp Plugin was created by roberto2011
Ciao a tutti,
Vi volevo informare che è possibile attivare whatsapp sui nostri sistemi swpi.

Link

unica aggiunta per i sistemi in sola lettura creare un link nella partizione rw
sudo su
ln -l /swpi /root/.yowsup/

Vi allego una bozza del mio script.
Buon Divertimento

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

Please Log in to join the conversation.

More
8 years 7 months ago #5765 by pierpis
Replied by pierpis on topic WhatsApp Plugin
Bello !!! Ma... a che serve? :)

Sensori PCE-FWS20, DVB-T 820T2 SDR, BMP085, Raspberry Pi mod. B www.meteoportocervo.it (Abbiadori Porto Cervo - Arzachena - OT) 108 m s.l.m.)

Please Log in to join the conversation.

More
8 years 7 months ago #5766 by roberto2011
Replied by roberto2011 on topic WhatsApp Plugin
Per ricevere tramite whatsapp i valori relativi al vento.
utile prima di salire in decollo

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

Please Log in to join the conversation.

More
8 years 7 months ago #5768 by Bigo
Replied by Bigo on topic WhatsApp Plugin
puoi impostare la soglia di intensità di vento dopo la quale farti inviare il msg ?
se si sei un grande !!!!

Please Log in to join the conversation.

More
8 years 7 months ago #5769 by roberto2011
Replied by roberto2011 on topic WhatsApp Plugin
si certo !
puoi utilizzare anche un plug-in direttamente su swpi.
con non più di tre righe di codice

Sensori Davis +BME280 + Raspberry b+ webCam serrasanta.fleanet.it (Eremo di Serrasanta - Gualdo Tadino - 1.340 m s.l.m.)
The following user(s) said Thank You: Bigo

Please Log in to join the conversation.

More
8 years 7 months ago #5772 by tony
Replied by tony on topic WhatsApp Plugin
Grande Roberto .
vedo solo ora la cosa . La userò subito
TT

Please Log in to join the conversation.

More
8 years 7 months ago #5776 by tony
Replied by tony on topic WhatsApp Plugin
Ho dato intanto una occhiata alla documentazioen e spero nel weekend di iniziare ad istallere la cosa.
Mi piacerebbe avere un plugin che invii i dati ad internalli regolari su un gruppo e che magari risponda ai messaggi con i dati.
TT

Please Log in to join the conversation.

More
8 years 7 months ago #5777 by roberto2011
Replied by roberto2011 on topic WhatsApp Plugin
attualmente c'e' solo un problema di disconnessione dopo x minuti.
infatti io ho fatto un cron che ogni 10 minuti kill e riparte.
ma nel ultima release mi sembra risolto.

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
8 years 7 months ago #5778 by asy961
Replied by asy961 on topic WhatsApp Plugin
Bellissimo....
per ora come funziona??
ad intervalli stabiliti o su richiesta??

Stazione Meteo: Raspberry PI B, Sensori Vento PCE, BME280, Camera PI, Web Cam HD, Huawei K3765, Pannello Fotovoltaico 50W - 1 Batteria 12V-40Ah

Please Log in to join the conversation.

More
8 years 7 months ago #5779 by tony
Replied by tony on topic WhatsApp Plugin
Per ora io stò ancora installando yowsup come da link di Roberto.
TT

Please Log in to join the conversation.

More
8 years 6 months ago - 8 years 6 months ago #5780 by tony
Replied by tony on topic WhatsApp Plugin
Questi i comandi che ho usato per installarte sulla mia scheda in modalità ro :

rw
sudo apt-get update
sudo apt-get -y install python-dateutil
sudo apt-get -y install python-setuptools
sudo apt-get -y install python-dev
sudo apt-get -y install libevent-dev
sudo apt-get -y install ncurses-dev

wget pypi.python.org/packages/source/P/Pillow...981d54ec543ad5b37d14
tar xvfz Pillow-2.9.0.tar.gz
cd Pillow-2.9.0
sudo python setup.py install
sudo rm -r Pillow-2.9.0 Pillow-2.9.0.tar.gz

git clone git://github.com/tgalal/yowsup.git
cd yowsup
sudo python setup.py install

mkdir /swpi/.yowsup/
sudo su
ln -s /swpi/.yowsup/ /root/.yowsup

TT
Last edit: 8 years 6 months ago by tony.

Please Log in to join the conversation.

More
8 years 6 months ago - 8 years 6 months ago #5781 by tony
Replied by tony on topic WhatsApp Plugin
Grazie al lavoro di Roberto questa è una mia prima versione del plug-in
Il Sint risponde ad un "cuore rosso" con i dati meteo.

Attachment Screenshot_2015-09-20-22-33-52.jpg not found





Attachment whatsapp_echo.zip not found

Attachments:
Last edit: 8 years 6 months ago by tony.

Please Log in to join the conversation.

More
8 years 6 months ago - 8 years 6 months ago #5782 by asy961
Replied by asy961 on topic WhatsApp Plugin
GRANDE!!!
a questo punto le domande sorgono spontanee... :whistle:

1) dopo le dovute prove e collaudi pensi di implementare la cosa nei prossimi rilasci??
2) si potrà 'personalizzare' il comando di richiesta??
3) si potrà 'personalizzare' anche i dati di risposta??
4) ci sarà una sezione dedicata nel file cfg??? (e web??)

Grazie come al solito a TT e Roberto2011

Stazione Meteo: Raspberry PI B, Sensori Vento PCE, BME280, Camera PI, Web Cam HD, Huawei K3765, Pannello Fotovoltaico 50W - 1 Batteria 12V-40Ah
Last edit: 8 years 6 months ago by asy961.

Please Log in to join the conversation.

More
8 years 6 months ago - 8 years 6 months ago #5783 by tony
Replied by tony on topic WhatsApp Plugin
Ancora siamo alla fase di test.
Comunque se guardi il codice è facilisimo personalizzare.
Allegata una nuova versione .
Per ora il problema maggiore da risolvere è, come detto da Roberto, il timeout di connessione.


Attachment Screenshot_2015-09-21-22-44-23.jpg not found




Attachment whatsapp_echo_2015-09-21.zip not found

Attachments:
Last edit: 8 years 6 months ago by tony.

Please Log in to join the conversation.

More
8 years 6 months ago #5784 by asy961
Replied by asy961 on topic WhatsApp Plugin
beh si...in effetti...

per ora buon lavoro a tutti e due....

Stazione Meteo: Raspberry PI B, Sensori Vento PCE, BME280, Camera PI, Web Cam HD, Huawei K3765, Pannello Fotovoltaico 50W - 1 Batteria 12V-40Ah

Please Log in to join the conversation.

More
8 years 6 months ago #5789 by asy961
Replied by asy961 on topic WhatsApp Plugin

tony wrote: ..........

wget pypi.python.org/packages/source/P/Pillow...981d54ec543ad5b37d14
tar xvfz Pillow-2.9.0.tar.gz
cd Pillow-2.9.0
sudo python setup.py install
sudo rm -r Pillow-2.9.0 Pillow-2.9.0.tar.gz
...........
TT



perchè questo passaggio??
sulle istruzioni del link non c'è.....

eppoi vorrei provare ad installarlo su una versione RW...
posso omettere di creare il link ???
sudo su
ln -l /swpi /root/.yowsup/

Stazione Meteo: Raspberry PI B, Sensori Vento PCE, BME280, Camera PI, Web Cam HD, Huawei K3765, Pannello Fotovoltaico 50W - 1 Batteria 12V-40Ah

Please Log in to join the conversation.

More
8 years 6 months ago #5790 by tony
Replied by tony on topic WhatsApp Plugin
Perche sulle mie schede Pillow non si installa in automatico con easy_install a causa di mancaza di spazio di /tmp.
Puoi provare senza ed in caso di errori ...

La versione allegata sembra non soffrire di disconnessioni e stà andando da me da 2 gg.


Attachment whatsapp_echo_2015-09-23.zip not found

Attachments:

Please Log in to join the conversation.

More
8 years 6 months ago #5802 by asy961
Replied by asy961 on topic WhatsApp Plugin
Allora...
ho installato....
sono al punto di dover chiedere la registrazione...
ora vorrei fare del prove al banco..
magari con una sim già registrata su WTSAPP...
anche perchè il numero e la relativa sim della stazione sono nella stazione...

pensate che sia possibile farlo??

Stazione Meteo: Raspberry PI B, Sensori Vento PCE, BME280, Camera PI, Web Cam HD, Huawei K3765, Pannello Fotovoltaico 50W - 1 Batteria 12V-40Ah

Please Log in to join the conversation.

More
8 years 6 months ago #5803 by roberto2011
Replied by roberto2011 on topic WhatsApp Plugin
Basta che hai accesso ai log della stazione.
Leggi la pass di registrazione.
Una volta che hai username e pass la inserisci nello script

Sensori Davis +BME280 + Raspberry b+ webCam serrasanta.fleanet.it (Eremo di Serrasanta - Gualdo Tadino - 1.340 m s.l.m.)
The following user(s) said Thank You: asy961

Please Log in to join the conversation.

More
8 years 6 months ago - 8 years 6 months ago #5804 by tony
Replied by tony on topic WhatsApp Plugin
La versione sopra sta funzionando oramai da 2 gg e quindi credo che siano risolti i problemi di disconnessione.
Una volta che hai installato il tutto basta mettere numero e pwd nella parte di inizializzazione del plugin come sotto.
       ###################### Plugin Initialization ################
        log("Intitializing plug-in %s" % sys.modules[__name__])
        
        self.phone = "393357863682"
        self.password = "Nfb12pdZq+hADLWWDSzu656qrSE="
        ###################### End Initialization ##################
TT
Last edit: 8 years 6 months ago by tony.

Please Log in to join the conversation.

More
8 years 6 months ago - 8 years 6 months ago #5805 by tony
Replied by tony on topic WhatsApp Plugin
A breve farò un upload di una nuova immagine con l'ultima versione del firmware ( rpi+swpi ) e con preinstalato yowsup.

PS.
Mi dite se vi arrivano le mail del forum. Ultimamente ho avuto dei problemi con aruba che ha aggiornato i servee e da un po le mail non mi arrivano :-(

TT
Last edit: 8 years 6 months ago by tony.
The following user(s) said Thank You: asy961

Please Log in to join the conversation.

More
8 years 6 months ago #5808 by asy961
Replied by asy961 on topic WhatsApp Plugin
mail ok....


in attesa del upload..

Stazione Meteo: Raspberry PI B, Sensori Vento PCE, BME280, Camera PI, Web Cam HD, Huawei K3765, Pannello Fotovoltaico 50W - 1 Batteria 12V-40Ah

Please Log in to join the conversation.

More
8 years 6 months ago - 8 years 6 months ago #5810 by tony
Replied by tony on topic WhatsApp Plugin
Questa è l'immagine aggiorata al fw 817 ieri ( apt-get update,apt-get upgrade,rpi-update ) + yowsup

Ho anche modificato il partizionamento della scheda in quanto c'era troppo poco spazio per il sistema e le nuove installazioni e aggiornameti erano problematici. Restano 600Mb per swpi che credo siano più che sufficenti.
A breve aggiorno la sezione downlaod :

mega.nz/#!6ZxmhbBR!Yu74ObPRyQEUv8TvOKtc2nMCdtWQ7HUZ5bAglzj-Sdo

Per come usare il plugin ho inizato a scrivere una wiki :

www.vololiberomontecucco.it/mediawiki/in...ionamento_del_plugin


TT
Last edit: 8 years 6 months ago by tony.

Please Log in to join the conversation.

More
8 years 5 months ago #6081 by gigia
Replied by gigia on topic WhatsApp Plugin
Aiutoo
Ho perso la password da inserire nel plugin.
Ho effettuato la registrazione con successo ma ho avuto la malsana idea di riformattare la scheda sd del mio raspberry e di reinstallare tutto senza però aver salvato prima le credenziali di accesso a whattsapp
Come posso recuperare la password ?
NB. non ho i file di log salvati, ovviamente :-)
grazie mille

Please Log in to join the conversation.

More
8 years 5 months ago #6082 by tony
Replied by tony on topic WhatsApp Plugin
Impossibile recuperarla credo :-( ma penso che puoi tranquillamente fare una nuova registrazione.
In fondo è quello che succede quando cambi telefono.
Tony

Please Log in to join the conversation.

More
8 years 5 months ago #6083 by gigia
Replied by gigia on topic WhatsApp Plugin
Grazie Tony
E' esattamente quello che ho provato a fare ma senza successo o meglio la nuova registrazione è avvenuta con successo, mi è stata data una nuova password mi da errore " WhatsApp-Plugin: Other Error" .
Non so se l'errore sia legato alla nuova password inserita ma effettivamente è come se avessi effettuato due registrazioni sul solito telefono :-(
gigia

Please Log in to join the conversation.

More
8 years 5 months ago #6084 by tony
Replied by tony on topic WhatsApp Plugin
Strano. Se fosse un problema di autenticazione dovrebbe comparire :
"WhatsApp-Plugin :  AuthError"
Nel tuo caso l'errore è diverso e generico.
Ho fatto una modifica per mandare in output il messaggio di errore.
Prova questa versione per capire meglio il problema.


Attachment whatsapp_echo_2015-11-09.zip not found

Attachments:

Please Log in to join the conversation.

More
8 years 5 months ago #6085 by gigia
Replied by gigia on topic WhatsApp Plugin
Grazie infinite
ora provo!
Gigia

Please Log in to join the conversation.

More
8 years 5 months ago #6091 by roberto2011
Replied by roberto2011 on topic WhatsApp Plugin
c'e' un piccolo bug sull'installazione per quanto riguarda il link simbolico
ln -s /swpi/.yowsup/ /root/
Altra piccolezza il cuore non funziona sui dispositivi apple.

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
8 years 5 months ago #6092 by tony
Replied by tony on topic WhatsApp Plugin
Non ti sfugge nulla ☺
Il bug IOS l'ho fixato nella mia versione corrente. Vedo di postarlo anche se mi sembrava fosse già ok nella versione postata sopra. Hai preso l'ultima versione che ho indicato a Gigia?
Vedo di aggiornare.

Please Log in to join the conversation.

Time to create page: 1.100 seconds