Small issue with NOAA Weather plug in

Posted on
Sun Nov 20, 2011 10:16 pm
asw24b offline
Posts: 222
Joined: Dec 30, 2007
Location: Los Altos Hills, CA

Small issue with NOAA Weather plug in

After I enable the plug in, and attempt to create a new instance/device, I get to the page that has a button that it supposed to open a browser window, pointing to the list of weather sites.

For me, the button does not work.

Instead, for a second the phrase "Waiting For Button Reply" is displayed in red text, as is a red spinner icon. No web page opens, and no error is recorded in the log.

Both server and client are on the same machine.

Mike

Posted on
Mon Nov 21, 2011 10:06 am
jay (support) offline
Site Admin
User avatar
Posts: 18220
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Small issue with NOAA Weather plug in

What OS version are you using? Also, did you install the server and client under the same user account?

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Mon Nov 21, 2011 11:05 pm
asw24b offline
Posts: 222
Joined: Dec 30, 2007
Location: Los Altos Hills, CA

Re: Small issue with NOAA Weather plug in

jay wrote:
What OS version are you using? Also, did you install the server and client under the same user account?



10.5.8

yes. A single Mac Mini

Posted on
Tue Nov 22, 2011 7:57 am
jay (support) offline
Site Admin
User avatar
Posts: 18220
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Small issue with NOAA Weather plug in

Interesting - we're just using the standard "webbrowser" package in Python. Do the following:

  1. Select "Open Scripting Shell" from the "Plugins" menu
  2. Type (or copy/paste) in the following script
    Code: Select all
    import webbrowser
    webbrowser.open_new("http://www.weather.gov/xml/current_obs/")

Does it work? Try opening the URL above in your default web browser (which is what the command above is supposed to do) - does that work?

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Tue Nov 22, 2011 9:01 am
asw24b offline
Posts: 222
Joined: Dec 30, 2007
Location: Los Altos Hills, CA

Re: Small issue with NOAA Weather plug in

jay wrote:
Interesting - we're just using the standard "webbrowser" package in Python. Do the following:

  1. Select "Open Scripting Shell" from the "Plugins" menu
  2. Type (or copy/paste) in the following script
    Code: Select all
    import webbrowser
    webbrowser.open_new("http://www.weather.gov/xml/current_obs/")

Does it work? Try opening the URL above in your default web browser (which is what the command above is supposed to do) - does that work?



It opened the web page as expected.

This was displayed on the console:





2011-11-22 06:59:18.190 osascript[6090:613] Error loading /Library/ScriptingAdditions/XSLT Tools.osax/Contents/MacOS/XSLT Tools: dlopen(/Library/ScriptingAdditions/XSLT Tools.osax/Contents/MacOS/XSLT Tools, 262): no suitable image found. Did find:
/Library/ScriptingAdditions/XSLT Tools.osax/Contents/MacOS/XSLT Tools: mach-o, but wrong architecture
osascript: OpenScripting.framework - scripting addition /Library/ScriptingAdditions/XSLT Tools.osax declares no loadable handlers.
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/webbrowser.py", line 65, in open_new
return open(url, 1)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/webbrowser.py", line 60, in open
if browser.open(url, new, autoraise):
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/webbrowser.py", line 589, in open
rc = osapipe.close()
IOError: [Errno 10] No child processes

Posted on
Tue Nov 22, 2011 12:27 pm
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: Small issue with NOAA Weather plug in

Apparently the webbrowser module is a bit buggy. We'll use an alternative technique in 5.0.2 to avoid it.

Image

Posted on
Tue Nov 22, 2011 2:52 pm
asw24b offline
Posts: 222
Joined: Dec 30, 2007
Location: Los Altos Hills, CA

Re: Small issue with NOAA Weather plug in

support wrote:
Apparently the webbrowser module is a bit buggy. We'll use an alternative technique in 5.0.2 to avoid it.



Really not a big deal... I just wanted to let you know that I was seeing weird behavior...

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 5 guests