I'm not sure if i get your question right, but try the Scheduler. I've done a project that retrieve light, humidity and temperature from an arduino and store in a sqlite db on the server and it works fine. You also don't need a real time clock on the arduino.
Il giorno giovedì 14 aprile 2016 06:09:41 UTC+2, Georges Vidal ha scritto: > > HI > > I work on a project based on Python and PCDUINO plateform. > > I would like to use web2py framework to simplify the web communication > between the client and server. > > The process to implement in a few words is : > > On the server side : Define a python process that every 0.5 second asks > the gpsd daemon to retreive the GPS position of my car. Some calculations > are done during this process, so this job must be in a loop in parallel of > all other process. > > On the client side : (a browser in the car), I would like that the client > ask the server every second to get the position and results of calculations > and display them on the html page. I assume Ajax or cookies can to be use > to refresh only a part of the screen. > > > So, my question is, how to implement such architecture ? Is framework > mandatory? > > I know how to code the server process but not to make in parallel the > client process and make them to communicate to each other. > > Must I have to create a // server process getting data from GPS, doing > calculations twice per second and storing the result somewhere accessible > by the framework (i.e. database or cookies) ? > If I use your framework to create web UI and every second read the server > results, is it possible to put a loop somewhere in the Framework code to > put everything in one place rather that on process to run calculation and > one for the framework ? > > If the first solution is retained, what is the best support to store data > (one row of about 30 fields, about 100 octets). Saying that I am not sure > that storing into sqlite database is the best, cookie or sessions may be > would be better ? > > So, any information advice would be appreciated. > > > Best regards > > Georges > -- 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.

