My assumption is that you want to read your sensors at periodic time intervals, whether or not you are looking at them from the web interface. You can do this with the web2py scheduler but I think it is overkill. I would just create a process that loops and records he sensors in your database (or perhaps a CSV file). Then your web app just reads the data displays it to the user and makes plots.
Massimo On Saturday, 26 December 2015 03:55:52 UTC-6, Vinny Mautone wrote: > > Ciao a tutti sto cercando di creare qualcosa per le automatizzazioni del > mio acquario ho acquistato una UDOO quad e sto iniziando a testare arduino, > ma il mio scopo è quello di creare un'interfaccia web dalla quale leggere i > vari dati messi a disposizione delle sonde che collegherò ad arduino e in > più eseguire operazioni diciamo manuali, "cambio livello di illuminazione, > fermare la pompa del filtro, ecc." ovviamente tutte queste saranno fatte da > arduino. Le varie sonde andranno a scrivere su un database mysql. > La mia domanda è questa, potendo comandare arduino con Python tramite la > libreria Pyserial posso creare un'app completa con web2py che legga e > scriva da seriale su arduino, oppure devo creare un programma a parte che > faccia tutto il lavoro per arduino e con web2py creare un app che legga dal > database e mi visualizzi i valori? > > Grazie > > > Hello everyone I am trying to create something for the automations of my > aquarium I bought a udoo quad and I'm starting to test Arduino, but my aim > is to create a web interface from which to read the various data made > available to the probes I will connect to arduino and more perform manual > say, "change illumination level, stop the filter pump, and so on." > Obviously all of these will be made by Arduino. The various probes'll write > on a mysql database. > My question is this, being able to control Arduino with Python via the > library pySerial can create an app complete with web2py that read and write > to serial Arduino, or should I create a separate program that does all the > work for Arduino and create web2py an app that I read from the database and > displays the values? > > Thank you > > P.S. This is an on-line translation > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

