[Python] aiuto applicazione con flask

Andrea D'alessandro andrea.dalessandro a ingv.it
Mar 20 Nov 2018 19:23:23 CET


Udoo, il nome mi piace ma il prezzo comparato a raspberry è un po
alto....per smanettare resto legato al lampone.

Il giorno mar 20 nov 2018, 18:08 Vinny Mautone <vinny74man a gmail.com> ha
scritto:

> 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
>
> Il giorno Mar 20 Nov 2018, 17:05 laziale <laziolazietta a winguido.it> ha
> scritto:
>
>> ciao.
>> ma come riuscite a fare tutte queste cose????
>> Messaggio originale:
>> Mittente: Andrea D'alessandro.
>> EMail mittente: andrea.dalessandro a ingv.it.
>> Data e ora: 20/11/2018, ore: 16:19.
>> Oggetto: Re: [Python] aiuto applicazione con flask.
>> Testo:
>> Loggare tutti i parametri in un database e farli leggere alla pagina web
>> ed usare flask per i rele', potrebbe essere un'ottima soluzione......
>> Mi metto all 'opera....
>> grazie
>>
>> Il giorno mar 20 nov 2018 alle ore 16:07 Francesco Pischedda <
>> francesco.pischedda a gmail.com> ha scritto:
>>
>> >
>> >
>> > Il giorno mar 20 nov 2018 alle ore 15:20 Andrea D'alessandro <
>> > andrea.dalessandro a ingv.it> ha scritto:
>> >
>> >> Grazie per la risposta ,  anche se quel ciclo while true non mi serve
>> >> solo per sapere se e' in corrente,
>> >> dovrebbe mandare una mail o un messaggio telegram quando la corrente va
>> >> via o ritorna (ovviamente il raspi deve avere la batteria.)
>> >> provero' prima a far girare uno script in background che esegue il
>> ciclo
>> >> e quando si apre la pagina web gli passa la variabile status(in
>> corrente o
>> >> non in corrente)
>> >> anche se il discorso per il mio livello comincia a farsi un po
>> complicato.
>> >>
>> >
>> > Per "scomplicarlo" un pochino, invece di passare la variabile alla web
>> > app, potresti mettere questo valore da qualche parte cosí che
>> > l'applicazione flask possa leggerlo;
>> > quindi potresti:
>> > - scrivere lo stato su un file
>> > - scrivere lo stato in un database (anche sqlite3)
>> > - scrivere lo stato in un key value store come redis
>> >
>> > --
>> > "I really detest the use of the word "training" in relation to
>> > professional activities. Training is what you do to dogs. What you
>> should
>> > be doing with people is educating them, not training them. There is a
>> big,
>> > big difference." - Ron Garret
>> >
>> > "Unix IS user friendly. It's just selective about who its friends are"
>> >
>> > "Nevertheless I still think it’s a bad idea to make things harder for
>> > ourselves if we can avoid it."
>> >
>> > "C is quirky, flawed, and an enormous success."
>> >                                    -- Dennis Ritchie
>> >
>> > "Shipping is a feature. A really important feature. Your product must
>> have
>> > it."
>> >
>> > "There is no such a thing as a temporary change or workaround: In most
>> > cases, workarounds are tech debt."
>> >
>> > "La gatta frettolosa ha fatto i gattini ciechi"
>> >
>> > _______________________________________________
>> > Python mailing list
>> > Python a lists.python.it
>> > https://lists.python.it/mailman/listinfo/python
>> >
>>
>> _______________________________________________
>> Python mailing list
>> Python a lists.python.it
>> https://lists.python.it/mailman/listinfo/python
>>
> _______________________________________________
> Python mailing list
> Python a lists.python.it
> https://lists.python.it/mailman/listinfo/python
>
-------------- parte successiva --------------
Un allegato HTML è stato rimosso...
URL: <http://lists.python.it/pipermail/python/attachments/20181120/0fe069cb/attachment.html>


Maggiori informazioni sulla lista Python