modify python code as newbie

2020-01-17 Thread ron . eggler
Hi, I'm semi new to Python but need to modify a program that calls the mqtt_client.publish() function from aws iot. Now, when the publish function fails, it raises an exception. I need to change the code so that when an exception is raised, instead of giving up, it should retry

Modify Python code as newbie

2020-01-17 Thread ron . eggler
Hi, I'm semi new to Python but need to modify a program that calls the mqtt_client.publish() function from aws iot. Now, if the publish function fails, it raises an exception. I need to change the code so that when an exception is raised, instead of giving up, it should retry. Here's some

Re: logger doesn't roll over

2012-11-21 Thread Ron Eggler
Hooops sh*t! I outsmarted myself I guess... :o However, Thanks for the kick GC! Ron Eggler 1804 - 1122 Gilford St. Vancouver, BC V6G 2P5 (778) 230-9442 On 12-11-21 11:41 AM, Gary Chambers wrote: Ron, LOGFILE, maxBytes=(1048576*10), backupCount=5 What am I doing wrong here, I don't get

Re: serial module

2012-05-22 Thread Ron Eggler
Grant Edwards wrote: On 2012-05-19, Paul Simon psi...@sonic.net wrote: Ron Eggler rondotegg...@tscheemail.com wrote: [...] my code looks like this: #!/usr/bin/python [...] port='/dev/ttyUSB0', Sounds like you may be using this on a Windows machine. I don't think so

serial module

2012-05-18 Thread Ron Eggler
Hoi, I'm trying to connect to a serial port and always get the error serial.serialutil.SerialException: Port is already open. whcih is untrue. I have no serial port open yet, my code looks like this: #!/usr/bin/python import time import serial # configure the serial connections (the parameters

Re: Broken pipe

2010-05-07 Thread Ron Eggler
On May 6, 2010 10:37:14 pm Chris Rebert wrote: On Thu, May 6, 2010 at 10:27 PM, cerr ron.egg...@gmail.com wrote: Hi There, I'm very new to Python and i wanna write a script that sends a certain string to a server. The code I came up with looks like this: #!/usr/bin/python import

Re: Broken pipe

2010-05-07 Thread Ron Eggler
-- Ron Eggler Suite# 1804 1122 Gilford St Vancouver, BC V6G 2P5 Canada (778) 230-9442 On Thu, May 6, 2010 at 11:11 PM, Ron Eggler ron.egg...@gmail.com wrote: On May 6, 2010 10:37:14 pm Chris Rebert wrote: On Thu, May 6, 2010 at 10:27 PM, cerr ron.egg...@gmail.com wrote: Hi

Re: last mouse movment or keyboard hit

2008-03-28 Thread Ron Eggler
Diez B. Roggisch wrote: Ron Eggler schrieb: Hi, I would like to get the time of the most recent human activity like a cursor movement or a key hit. Does anyone know how I can get this back to start some action after there has been no activity for X minutes/seconds? Try hooking yourself

Re: last mouse movment or keyboard hit

2008-03-26 Thread Ron Eggler
Gabriel Genellina wrote: En Wed, 26 Mar 2008 00:38:08 -0300, Ron Eggler [EMAIL PROTECTED] escribió: I would like to get the time of the most recent human activity like a cursor movement or a key hit. Does anyone know how I can get this back to start some action after there has been

Re: last mouse movment or keyboard hit

2008-03-26 Thread Ron Eggler
the interactions of key strokes and mouse gestures. Apply some statistics and voila. there it is. But that wouldn't be system wide, would it? :o On Mar 26, 3:28 pm, Ron Eggler [EMAIL PROTECTED] wrote: Gabriel Genellina wrote: En Wed, 26 Mar 2008 00:38:08 -0300, Ron Eggler [EMAIL PROTECTED] escribió

Re: last mouse movment or keyboard hit

2008-03-26 Thread Ron Eggler
Gabriel Genellina wrote: En Wed, 26 Mar 2008 00:38:08 -0300, Ron Eggler [EMAIL PROTECTED] escribió: I would like to get the time of the most recent human activity like a cursor movement or a key hit. Does anyone know how I can get this back to start some action after there has been

last mouse movment or keyboard hit

2008-03-25 Thread Ron Eggler
Hi, I would like to get the time of the most recent human activity like a cursor movement or a key hit. Does anyone know how I can get this back to start some action after there has been no activity for X minutes/seconds? Thank you! -- chEErs roN --