<div dir="auto">Ciao a tutti anche io ho scritto un applicazione in python su una  udoo quad (board unica con raspberry e arduino due) e per la virtualizzazione web e interagire con i comandi ho utilizzato openhab, non essendo pratico di html ed altro io l'ho trovato abbastanza agevole in più ha l applicazione per Android e Apple e ha anche la possibilità di connettersi tramite cloud</div><br><div class="gmail_quote"><div dir="ltr">Il giorno Mar 20 Nov 2018, 17:05 laziale <<a href="mailto:laziolazietta@winguido.it">laziolazietta@winguido.it</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">ciao.<br>
ma come riuscite a fare tutte queste cose????<br>
Messaggio originale:<br>
Mittente: Andrea D'alessandro.<br>
EMail mittente: <a href="mailto:andrea.dalessandro@ingv.it" target="_blank" rel="noreferrer">andrea.dalessandro@ingv.it</a>.<br>
Data e ora: 20/11/2018, ore: 16:19.<br>
Oggetto: Re: [Python] aiuto applicazione con flask.<br>
Testo:<br>
Loggare tutti i parametri in un database e farli leggere alla pagina web<br>
ed usare flask per i rele', potrebbe essere un'ottima soluzione......<br>
Mi metto all 'opera....<br>
grazie<br>
<br>
Il giorno mar 20 nov 2018 alle ore 16:07 Francesco Pischedda <<br>
<a href="mailto:francesco.pischedda@gmail.com" target="_blank" rel="noreferrer">francesco.pischedda@gmail.com</a>> ha scritto:<br>
<br>
><br>
><br>
> Il giorno mar 20 nov 2018 alle ore 15:20 Andrea D'alessandro <<br>
> <a href="mailto:andrea.dalessandro@ingv.it" target="_blank" rel="noreferrer">andrea.dalessandro@ingv.it</a>> ha scritto:<br>
><br>
>> Grazie per la risposta ,  anche se quel ciclo while true non mi serve<br>
>> solo per sapere se e' in corrente,<br>
>> dovrebbe mandare una mail o un messaggio telegram quando la corrente va<br>
>> via o ritorna (ovviamente il raspi deve avere la batteria.)<br>
>> provero' prima a far girare uno script in background che esegue il ciclo<br>
>> e quando si apre la pagina web gli passa la variabile status(in corrente o<br>
>> non in corrente)<br>
>> anche se il discorso per il mio livello comincia a farsi un po complicato.<br>
>><br>
><br>
> Per "scomplicarlo" un pochino, invece di passare la variabile alla web<br>
> app, potresti mettere questo valore da qualche parte cosí che<br>
> l'applicazione flask possa leggerlo;<br>
> quindi potresti:<br>
> - scrivere lo stato su un file<br>
> - scrivere lo stato in un database (anche sqlite3)<br>
> - scrivere lo stato in un key value store come redis<br>
><br>
> --<br>
> "I really detest the use of the word "training" in relation to<br>
> professional activities. Training is what you do to dogs. What you should<br>
> be doing with people is educating them, not training them. There is a big,<br>
> big difference." - Ron Garret<br>
><br>
> "Unix IS user friendly. It's just selective about who its friends are"<br>
><br>
> "Nevertheless I still think it’s a bad idea to make things harder for<br>
> ourselves if we can avoid it."<br>
><br>
> "C is quirky, flawed, and an enormous success."<br>
>                                    -- Dennis Ritchie<br>
><br>
> "Shipping is a feature. A really important feature. Your product must have<br>
> it."<br>
><br>
> "There is no such a thing as a temporary change or workaround: In most<br>
> cases, workarounds are tech debt."<br>
><br>
> "La gatta frettolosa ha fatto i gattini ciechi"<br>
><br>
> _______________________________________________<br>
> Python mailing list<br>
> <a href="mailto:Python@lists.python.it" target="_blank" rel="noreferrer">Python@lists.python.it</a><br>
> <a href="https://lists.python.it/mailman/listinfo/python" rel="noreferrer noreferrer" target="_blank">https://lists.python.it/mailman/listinfo/python</a><br>
><br>
<br>
_______________________________________________<br>
Python mailing list<br>
<a href="mailto:Python@lists.python.it" target="_blank" rel="noreferrer">Python@lists.python.it</a><br>
<a href="https://lists.python.it/mailman/listinfo/python" rel="noreferrer noreferrer" target="_blank">https://lists.python.it/mailman/listinfo/python</a><br>
</blockquote></div>