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:
Thanks very much, I will have a look.
Doug
On Feb 2, 10:22 am, howesc wrote:
> use the GAE taskqueues for background processes. i also recommend looking
> at GAE backend instances for background tasks.
use the GAE taskqueues for background processes. i also recommend looking
at GAE backend instances for background tasks.
I like to try to get my crons and background processes working in a
controller first since it's easier to debug. Also, you might try writing the
response to mail.send to the DB to see if there are any errors.
I'm not sure that "== False" is the best way to query since False has
special properti
At least requesting a new password works. I assume it uses those
settings as well.
BR,
Jason Brower
On 05/27/2011 04:30 PM, Anthony wrote:
Are you sure you have configured Mail properly? See
http://web2py.com/book/default/chapter/08#Auth-and-Mail. Are you able
to send an email from a controll
Are you sure you have configured Mail properly? See
http://web2py.com/book/default/chapter/08#Auth-and-Mail. Are you able to
send an email from a controller?
On Friday, May 27, 2011 9:05:00 AM UTC-4, encompass wrote:
> I am running this:
>
> python web2py.py -S welcome -M -N -R
> applic
On 28 abr, 20:39, Jose wrote:
> One more question.
>
> The model is imported with-M, but I do not know is how to pass session
> to the script.
>
> Jose
I answer myself. I used pickle.
Jose
One more question.
The model is imported with-M, but I do not know is how to pass session
to the script.
Jose
If anyone else may need it, the code is this and it works fine.
The only difference is that the script had to do an explicit commit.
def procesar():
import subprocess
import os
script = os.path.join(request.folder, 'private', 'script.py')
comando = "python %s/web2py.py -S py_ccu -M
On 28 abr, 18:31, Jose wrote:
>
> Running the script as you said, how to access the same to application
> context: db, session, etc.
I said nothing, I just read the output of python web2py.py -h
Jose
i like massimo's idea of using cron...but if you need it to be
launched by the user perhaps you setup cron to run at small intervals
and have the job simply check if the user has requested work, and then
do the work. i suspect that is much easier than getting the threading
right.
cfh
On Apr 28,
On 28 abr, 16:11, mdipierro wrote:
> Do not use threads for background processes. Use an actual seperate
> process
>
> python web2py.py -S app -M -R applications/app/private/
> process_script.py
>
> You can have it start by web2py cron
>
A cron do not need it, since it must be the user who laun
Do not use threads for background processes. Use an actual seperate
process
python web2py.py -S app -M -R applications/app/private/
process_script.py
You can have it start by web2py cron
On Apr 28, 11:30 am, Jose wrote:
> Hello,
>
> I am developing a web application that contains at least three
13 matches
Mail list logo