internet_earthquakes.pl updated in SVN

View: New views
5 Messages — Rating Filter:   Alert me  

internet_earthquakes.pl updated in SVN

by Michael Stovenour :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

I updated, ahhemm, rewrote internet_earthquakes.pl.  The new version uses a separate script (bin/get_earthquakes and bin/get_earthquakes.bat) that pulls a much larger data file with all earthquake events of any magnitude and stores a parsed version in a dbm file.  The common code module code/common/internet_earthquakes.pl then filters the dbm file and announces new entries. 

You can get the new version from SVN; you will need all three files I referenced above.  Let me know if you find any issues or want me to otherwise change the behavior.

Michael


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
________________________________________________________
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365


Re: internet_earthquakes.pl updated in SVN

by David Norwood-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
I'm getting the following errors when I run the "Get recent earthquakes" voice command:
10/07/09 10:13:43 PM Running: Get recent earthquakes
Error found in user code file: ./../../data/mh_temp.user_code
10/07/09 10:13:43 PM: Error in start Process exec for cmd=./get_earthquakes
normal: Error found in user code. Check the error log.
Error logged to: ./../../data/error.log
normal: Checking for recent earthquakes...
db
db
10/07/09 10:14:01 PM actiontec update error ./../../data/rrd/actiontec.rrd: illegal attempt to update using time 1254978841 when last update time is 1254978841 (minimum one second step)
10/07/09 10:15:01 PM actiontec update error ./../../data/rrd/actiontec.rrd: illegal attempt to update using time 1254978901 when last update time is 1254978901 (minimum one second step)
Exiting
Bye Bye
Exiting
Bye Bye

There also appears to be a bug in Process_Item.  After the problem starting the earthquake process, the forked "breaks out of the sandbox" and there were two full misterhouse processes running until I killed them.  

 

David

 

----- Original Message -----
Sent: Wednesday, October 07, 2009 5:54 AM
Subject: [mh] internet_earthquakes.pl updated in SVN

I updated, ahhemm, rewrote internet_earthquakes.pl.  The new version uses a separate script (bin/get_earthquakes and bin/get_earthquakes.bat) that pulls a much larger data file with all earthquake events of any magnitude and stores a parsed version in a dbm file.  The common code module code/common/internet_earthquakes.pl then filters the dbm file and announces new entries. 

You can get the new version from SVN; you will need all three files I referenced above.  Let me know if you find any issues or want me to otherwise change the behavior.

Michael


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference


________________________________________________________
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
________________________________________________________
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365


Re: internet_earthquakes.pl updated in SVN

by Michael Stovenour :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Are you running windows or unix?  Which version of perl?  Is it compiled?

You could try cutting the problem in half by commenting out the lines that call the external script.  I could send you a commented out version off line if you don’t want to take the time to figure out what to comment out.

Michael


From: David Norwood [mailto:dnorwood2@...]
Sent: Thursday, October 08, 2009 12:43 AM
To: The main list for the MisterHouse home automation program
Subject: Re: [mh] internet_earthquakes.pl updated in SVN

 

I'm getting the following errors when I run the "Get recent earthquakes" voice command:

10/07/09 10:13:43 PM Running: Get recent earthquakes

Error found in user code file: ./../../data/mh_temp.user_code

10/07/09 10:13:43 PM: Error in start Process exec for cmd=./get_earthquakes

normal: Error found in user code. Check the error log.

Error logged to: ./../../data/error.log

normal: Checking for recent earthquakes...

db

db

10/07/09 10:14:01 PM actiontec update error ./../../data/rrd/actiontec.rrd: illegal attempt to update using time 1254978841 when last update time is 1254978841 (minimum one second step)

10/07/09 10:15:01 PM actiontec update error ./../../data/rrd/actiontec.rrd: illegal attempt to update using time 1254978901 when last update time is 1254978901 (minimum one second step)

Exiting

Bye Bye

Exiting

Bye Bye

There also appears to be a bug in Process_Item.  After the problem starting the earthquake process, the forked "breaks out of the sandbox" and there were two full misterhouse processes running until I killed them.  

 

David

 

----- Original Message -----

From: michael@...

Sent: Wednesday, October 07, 2009 5:54 AM

Subject: [mh] internet_earthquakes.pl updated in SVN

 

I updated, ahhemm, rewrote internet_earthquakes.pl.  The new version uses a separate script (bin/get_earthquakes and bin/get_earthquakes.bat) that pulls a much larger data file with all earthquake events of any magnitude and stores a parsed version in a dbm file.  The common code module code/common/internet_earthquakes.pl then filters the dbm file and announces new entries. 

You can get the new version from SVN; you will need all three files I referenced above.  Let me know if you find any issues or want me to otherwise change the behavior.

Michael


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference


________________________________________________________
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
________________________________________________________
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365


Re: internet_earthquakes.pl updated in SVN

by David Norwood-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
I'm on linux, the new ubuntu karmic release.  BTW, digitemp doesn't work in this release.  I'm running perl 5.10.
 
I found the problem.  I had to run dos2unix on the bin/get_earthquakes script to get it to run on linux. I thought svn took care of this, so I'm confused. There is also a bug in Process_Item that causes two full misterhouse processes if the script errors out.
 
David
 
----- Original Message -----
Sent: Thursday, October 08, 2009 8:24 PM
Subject: Re: [mh] internet_earthquakes.pl updated in SVN

Are you running windows or unix?  Which version of perl?  Is it compiled?

You could try cutting the problem in half by commenting out the lines that call the external script.  I could send you a commented out version off line if you don’t want to take the time to figure out what to comment out.

Michael


From: David Norwood [mailto:dnorwood2@...]
Sent: Thursday, October 08, 2009 12:43 AM
To: The main list for the MisterHouse home automation program
Subject: Re: [mh] internet_earthquakes.pl updated in SVN

 

I'm getting the following errors when I run the "Get recent earthquakes" voice command:

10/07/09 10:13:43 PM Running: Get recent earthquakes

Error found in user code file: ./../../data/mh_temp.user_code

10/07/09 10:13:43 PM: Error in start Process exec for cmd=./get_earthquakes

normal: Error found in user code. Check the error log.

Error logged to: ../../../data/error.log

normal: Checking for recent earthquakes...

db

db

10/07/09 10:14:01 PM actiontec update error ./../../data/rrd/actiontec.rrd: illegal attempt to update using time 1254978841 when last update time is 1254978841 (minimum one second step)

10/07/09 10:15:01 PM actiontec update error ./../../data/rrd/actiontec.rrd: illegal attempt to update using time 1254978901 when last update time is 1254978901 (minimum one second step)

Exiting

Bye Bye

Exiting

Bye Bye

There also appears to be a bug in Process_Item.  After the problem starting the earthquake process, the forked "breaks out of the sandbox" and there were two full misterhouse processes running until I killed them.  

 

David

 

----- Original Message -----

From: michael@...

Sent: Wednesday, October 07, 2009 5:54 AM

Subject: [mh] internet_earthquakes.pl updated in SVN

 

I updated, ahhemm, rewrote internet_earthquakes.pl.  The new version uses a separate script (bin/get_earthquakes and bin/get_earthquakes.bat) that pulls a much larger data file with all earthquake events of any magnitude and stores a parsed version in a dbm file.  The common code module code/common/internet_earthquakes.pl then filters the dbm file and announces new entries. 

You can get the new version from SVN; you will need all three files I referenced above.  Let me know if you find any issues or want me to otherwise change the behavior.

Michael


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference


________________________________________________________
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference


________________________________________________________
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
________________________________________________________
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365


Re: internet_earthquakes.pl updated in SVN

by Michael Stovenour :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

That’s interesting.  I tested on both windows and linux, but I developed it on windows.  I transferred it to my linux system with WinSCP and probably selected “text” when I transferred it which would have fixed the line endings.  I check it in to SVN from my windows system.  The original file that I checked out had windows file endings so I assumed svn must be managing the line endings.

I suspect SVN is not managing the line endings of those files because the file does not have an extension.  I don’t know if svn can be configured to look in the file for perl tags or to default to linux for files w/o an extension. 

I’ll play with checkouts on windows vs linux some when I get my linux system back up (power supply fan locked up and fried the ps).  Of course I can’t just change the ps….  No time like the present to replace the entire chassis and upgrade Debian :^)

 


From: David Norwood [mailto:dnorwood2@...]
Sent: Friday, October 09, 2009 9:45 PM
To: The main list for the MisterHouse home automation program
Subject: Re: [mh] internet_earthquakes.pl updated in SVN

 

I'm on linux, the new ubuntu karmic release.  BTW, digitemp doesn't work in this release.  I'm running perl 5.10.

 

I found the problem.  I had to run dos2unix on the bin/get_earthquakes script to get it to run on linux. I thought svn took care of this, so I'm confused. There is also a bug in Process_Item that causes two full misterhouse processes if the script errors out.

 

David

 

----- Original Message -----

From: michael@...

Sent: Thursday, October 08, 2009 8:24 PM

Subject: Re: [mh] internet_earthquakes.pl updated in SVN

 

Are you running windows or unix?  Which version of perl?  Is it compiled?

You could try cutting the problem in half by commenting out the lines that call the external script.  I could send you a commented out version off line if you don’t want to take the time to figure out what to comment out.

Michael


From: David Norwood [mailto:dnorwood2@...]
Sent: Thursday, October 08, 2009 12:43 AM
To: The main list for the MisterHouse home automation program
Subject: Re: [mh] internet_earthquakes.pl updated in SVN

 

I'm getting the following errors when I run the "Get recent earthquakes" voice command:

10/07/09 10:13:43 PM Running: Get recent earthquakes

Error found in user code file: ./../../data/mh_temp.user_code

10/07/09 10:13:43 PM: Error in start Process exec for cmd=./get_earthquakes

normal: Error found in user code. Check the error log.

Error logged to: ../../../data/error.log

normal: Checking for recent earthquakes...

db

db

10/07/09 10:14:01 PM actiontec update error ./../../data/rrd/actiontec.rrd: illegal attempt to update using time 1254978841 when last update time is 1254978841 (minimum one second step)

10/07/09 10:15:01 PM actiontec update error ./../../data/rrd/actiontec.rrd: illegal attempt to update using time 1254978901 when last update time is 1254978901 (minimum one second step)

Exiting

Bye Bye

Exiting

Bye Bye

There also appears to be a bug in Process_Item.  After the problem starting the earthquake process, the forked "breaks out of the sandbox" and there were two full misterhouse processes running until I killed them.  

 

David

 

----- Original Message -----

From: michael@...

Sent: Wednesday, October 07, 2009 5:54 AM

Subject: [mh] internet_earthquakes.pl updated in SVN

 

I updated, ahhemm, rewrote internet_earthquakes.pl.  The new version uses a separate script (bin/get_earthquakes and bin/get_earthquakes.bat) that pulls a much larger data file with all earthquake events of any magnitude and stores a parsed version in a dbm file.  The common code module code/common/internet_earthquakes.pl then filters the dbm file and announces new entries. 

You can get the new version from SVN; you will need all three files I referenced above.  Let me know if you find any issues or want me to otherwise change the behavior.

Michael


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference


________________________________________________________
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference


________________________________________________________
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
________________________________________________________
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365