Info

Spazio dedicato agli utenti Italiani
Post Reply
videobelu
Posts: 73
Joined: Fri Feb 12, 2021 4:25 pm
Location: Villar Perosa
Has thanked: 140 times
Been thanked: 16 times

Info

Post by videobelu »

Buongiorno inauguro il forum Italiano...
Volevo sapere se esiste il modo di trasferire la pagina web (generata da Annex che si vede sulla uscita Output ) via FTP
su un sito esterno tipo altervista per permetterne la visualizzazione.
In questo modo non si deve creare un accesso alla propria rete.....e non serve un DDNS .
Premetto che sono a digiuno di linguaggi HTML mi auguro di non aver fatto una domanda stupida... :)
Grazie

Fabrizio
Fabrizio Bellini
User avatar
Electroguard
Posts: 836
Joined: Mon Feb 08, 2021 6:22 pm
Has thanked: 268 times
Been thanked: 317 times

Re: Info

Post by Electroguard »

Hi Fabrizio,
Annex Output page is very dynamic, capable of continual changing web-socket interactions, whereas FTP (file transfer protocal) can only be a fleeting snapshot ... a bit like the difference between watching discrete pictures uploaded as files, rather than watching live streaming video.
Also, as the FTP pictures would not be live, it would not be possible to interact with web components such as buttons and sliders.
videobelu
Posts: 73
Joined: Fri Feb 12, 2021 4:25 pm
Location: Villar Perosa
Has thanked: 140 times
Been thanked: 16 times

Re: Info

Post by videobelu »

Grazie per la risposta....capisco le limitazioni ma nel mio caso avrei solo bisogno di una pagina
"statica" dove pochi valori vengono aggiornati ogni 1/5 minuti.
Devo controllare delle tensioni ed eventualmente delle temperature ma e' sufficiente una lettura ogni tanto.
Fabrizio
Fabrizio Bellini
User avatar
Electroguard
Posts: 836
Joined: Mon Feb 08, 2021 6:22 pm
Has thanked: 268 times
Been thanked: 317 times

Re: Info

Post by Electroguard »

It seems you are hoping to take periodic snapshots (screen-dumps) of what a browser screen shows.
But that requires a permanently connected browser to interpret and display the Annex html css and javascript output, and then some means of taking periodic screen-dumps of the browser display on that device, for saving as graphics files for FTPing.
It would be the browser device (which is interpreting and displaying the html then taking the screen-dumps) that would need to FTP its images, not Annex which is merely 'serving' up raw html to the browser. Therefore there would be nothing useful to be gained by Annex redirecting raw html into a file for FTPing (unless the remote device had a browser which could interpret and display the html).

It may not be feasible to FTP screen-dump graphics or raw html, but there are other file types which might be used, eg: an easy but less pretty solution could be to simply FTP the required data as a text file.
User avatar
cicciocb
Site Admin
Posts: 1900
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 407 times
Been thanked: 1271 times
Contact:

Re: Info

Post by cicciocb »

Buongiorno Fabrizio,
Comprendo la tua domanda di creare una pagina html e di trasferirla via FTP su un server remoto per evitare di dare accesso al tuo modulo ed esporlo quindi agli attacchi dal web.
Potrei aggiungere in futuro questa funzionalità anche se non credo che sia la giusta soluzione al tuo bisogno.

Probabilmente quello che tu cerchi di ottenere é quello che di solito si fa con Thingspeak, per esempio
questa pagina demo https://thingspeak.com/channels/305396.

Thingspeak propone un accesso gratuito, limitato ovviamente, ma probabilmente sufficiente per i tuoi scopi.
Il vantaggio é che i dati vengono memorizzati su un server quindi potrai manterere tutta la "time history" dei tuoi parametri senza dovertene occpare nel tuo device.

Alternativamente potresti utilizzare del codice in php sul tuo web server e interrogare in background il modulo ma, ovviamente, questo é più complicato da realizzare anche se in questo modo potresti creare delle interazioni dinamiche con il modulo.
videobelu
Posts: 73
Joined: Fri Feb 12, 2021 4:25 pm
Location: Villar Perosa
Has thanked: 140 times
Been thanked: 16 times

Re: Info

Post by videobelu »

Grazie mille a tutti per le risposte.....provo a valutare le varie ipotesi.
Buon sviluppo @cicciocb !!!

Fabrizio
Fabrizio Bellini
Post Reply