× Benvenuti sul nostro forum su Sint Wind PI!

Postate qui domande o segnalate problemi / bug che riscontrate,

heart nuovi comandi sms

More
10 years 3 months ago #3497 by jackie2_it
nuovi comandi sms was created by jackie2_it
Ciao è possibile aggiungere uno/due comandi SMS per poter variare le impostazioni FTP della stazione meteo?
Me ne servirebbe uno che cambia il percorso di salvataggio delle immagini della fotocamera

Please Log in to join the conversation.

More
10 years 3 months ago #3500 by jackie2_it
Replied by jackie2_it on topic nuovi comandi sms
Tony è possibile attivare questa funzione?

Please Log in to join the conversation.

More
10 years 3 months ago #3501 by jackie2_it
Replied by jackie2_it on topic nuovi comandi sms
l'idea è quella di aggiungere i seguenti comandi

FSVR nomeServer (imposta il nome del server ftp)
FUSR username (reimposta lo username del ftp)
FPWD password (reimposta la password del ftp)
FPHT percorso (imposta il percorso delle immagini)

Please Log in to join the conversation.

More
10 years 3 months ago #3518 by jackie2_it
Replied by jackie2_it on topic nuovi comandi sms
Tony ho abbozzato le modifiche dacci un occhiata per vedere se vanno bene?
Attachments:

Please Log in to join the conversation.

More
10 years 3 months ago #3519 by tony
Replied by tony on topic nuovi comandi sms
Non riesco a scaricare gli allegati.

Comunque mi sembra una impostazione molto particolare e non credo altri abbiano esigenze del genere. Quindi testale tu.

Please Log in to join the conversation.

More
10 years 3 months ago #3520 by roberto2011
Replied by roberto2011 on topic nuovi comandi sms
@tony potrebbe usare il comando SYS.
Già implementato in swpi.

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
10 years 3 months ago #3521 by jackie2_it
Replied by jackie2_it on topic nuovi comandi sms
se vuoi te li allego come zip?
a che cosa serve il comando SYS?

Please Log in to join the conversation.

More
10 years 3 months ago #3522 by jackie2_it
Replied by jackie2_it on topic nuovi comandi sms
Ecco i file riallegati come zip
Attachments:

Please Log in to join the conversation.

More
10 years 3 months ago #3523 by jackie2_it
Replied by jackie2_it on topic nuovi comandi sms
Secondo me può servire ad altri utenti che per motivi di installazione non possono accedere direttamente al raspberry nè via 3g perchè bloccato nè via rete o tastiera perchè installato in campo aperto.

Please Log in to join the conversation.

More
10 years 3 months ago #3525 by roberto2011
Replied by roberto2011 on topic nuovi comandi sms
In teoria ( se non vengo smentito da Tony) il comando sys lancia uno script python.
Potresti crearti uno script modftp.py
ed eseguirlo tramite "password SYS modftp.py"

da provare!

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
10 years 3 months ago #3526 by jackie2_it
Replied by jackie2_it on topic nuovi comandi sms
Una variante potrebbe essere quella di inviare un sms al sint wind con il quale scarica un file di configurazione aggiornato.

Please Log in to join the conversation.

More
10 years 3 months ago - 10 years 3 months ago #3527 by roberto2011
Replied by roberto2011 on topic nuovi comandi sms
prendiamo per buona l'ultima idea ..

Attachment dwcfg.zip not found


sudo nano dwcfg.sh
Cambia l'indirizzo web del file da scaricare, nel file zip inserisci il file swpi.cfg

sudo chmod 777 dwcfg.sh

per richiamare lo script tramite sms
password SYS ./dwcfg.sh

provato e funzionante ...
Fammi sapere se può andare
Ciao ciao :)

Sensori Davis +BME280 + Raspberry b+ webCam serrasanta.fleanet.it (Eremo di Serrasanta - Gualdo Tadino - 1.340 m s.l.m.)
Attachments:
Last edit: 10 years 3 months ago by roberto2011.

Please Log in to join the conversation.

More
10 years 3 months ago - 10 years 3 months ago #3528 by tony
Replied by tony on topic nuovi comandi sms
Scusate il ritardo ma sono un pò incasinato

quella del SYS mi sembra una buona idea per queste personalizzazioni . Comunque Jackey in questo momento non stò apportando modifiche quindi se il tuo codice è stabile ( provalo bene ) lo inserirò nella versione ufficiale.

Per le modifiche poi potete usate GIT richiedendo un Pull request su :

github.com/ToninoTarsi/swpi
Last edit: 10 years 3 months ago by tony.

Please Log in to join the conversation.

More
10 years 3 months ago #3539 by jackie2_it
Replied by jackie2_it on topic nuovi comandi sms
@Tony procedo con dei test accurati e poi ti mando su le modifiche.

Please Log in to join the conversation.

Time to create page: 0.978 seconds