+ Reply to Thread
Page 8 of 8 FirstFirst ... 678
Results 71 to 76 of 76

Thread: Weather 2 Wishlist

  1. #71
    Join Date
    Nov 2006
    Location
    Louisville, KY, USA
    Posts
    7,094
    You are probably not doing it wrong. I might have messed it up attempting to get both alerts and warning working. I'll try to take a look at this on Monday or Tuesday and see if I can fix it.

  2. #72
    Join Date
    Nov 2006
    Location
    Louisville, KY, USA
    Posts
    7,094
    Quote Originally Posted by whurlston View Post
    I'm aware of the alerts issue. I was able to fix one type of alert by modifying Plugins\Weather\Config\sources.xml and replacing the "AlertNodes" tag with the following:

    Code:
    		<AlertNodes>
    			<Node>//div[@class='panel-body-lt']/div[@class='panel-body-rt']/div[@class='panel-body']/div[@class='panel-body-content']/div[@class='tab-panel']/div[@class='content awx-story']</Node>
    		</AlertNodes>
    This however AFAIK will only give you alerts and not warnings. I haven't had any warnings to test parsing those.

    Some changes to the plugin are on my todo list that will allow for better parsing but I'm not sure when I will get to it.
    I just retested this and I am indeed getting the alerts. It only works if this is the only <Node> line in <AlertNodes> though. If it isn't working or if you experience a severe weather warning, please zip and post the following file:

    Code:
    Plugins\Weather\config\[Some long GUID]\alert_source.html

  3. #73
    Join Date
    Feb 2009
    Location
    Upper Peninsula Michigan, USA
    Posts
    875
    Yes that fixed the alert. I must have messed up the XML the first time I tried it. Thanks for getting back to this.
    Gigabyte GA-EP45-UD3R, Win8, Core 2 Duo E8400 3.0GHz, 6 GB (2GBx2, 1GBx2) DDR2 800, GIGABYTE GV-N220OC-1GI Video, CM Real Power Pro 550 Watt PS, HVR-2250 & HVR-1600 analog/Clear QAM, Realtek S/PDIF, Harmony 880 in MCE remote mode w/ Gestion LM Remote Keymap.
    NPVR 2.5.9 (SAF6) Cyberlink video & LAV/ffdshow Audio Filters. Skin=Default Horizontal
    Plugins: Weather
    External Apps: XBMC, Hulu, Boxee, Winamp
    Utilities:Comskip

  4. #74
    Join Date
    Apr 2005
    Location
    Washington, USA
    Posts
    708
    @whurlston:

    Tried the fix, but doesn't work for me. The alert-source html is attached, and I think I can see why it doesn't work. The alert link doesn't go the alert text, but instead to a "story" about the alert. Compare to the small craft advisory (assuming it is still there when you get to this). Not sure what can be done about something like this.
    Attached Files Attached Files
    HTPC: E7500, Nvidia 9500GT, ATI Theater 650Pro PCI/Firewire Network Recorder/Avermedia Duet A188, NPVR 2.6.2, Win7 Pro
    Test: Asrock 890GM Pro 3, Athlon X2 255 , internal HD4290, ATI Theater 650Pro PCIe, NPVR 2.6.2, Win7 Home Premium
    Lounge: Athlon 3200, Nvidia 7600GT, Network Recorder, NPVR 2.5.5, Win7 Home Premium

  5. #75
    Join Date
    Nov 2006
    Location
    Louisville, KY, USA
    Posts
    7,094
    Quote Originally Posted by mikeh49 View Post
    @whurlston:

    Tried the fix, but doesn't work for me. The alert-source html is attached, and I think I can see why it doesn't work. The alert link doesn't go the alert text, but instead to a "story" about the alert. Compare to the small craft advisory (assuming it is still there when you get to this). Not sure what can be done about something like this.
    I see the problem. The alert you are getting is under "/div[@class='info']" instead of "/div[@class='content awx-story']". Adding this as a second node will not work. It looks like the plugin was coded when accuweather was supplying all nodes even if they were empty but they are no longer doing that. So the plugin is erroring when one of the alert nodes is missing. I'll see what I can do to fix that.

  6. #76
    Join Date
    Apr 2005
    Location
    Washington, USA
    Posts
    708
    @whurlston:
    Here are a couple more alert.html files from today. The one for Sheboygan does not work in Weather (cannot parse error), but the one for Minneapolis does. Note that the advisory text in the one for Minneapolis is "expanded" when the file is opened in a broweser, but the one for Sheboygan is not. I don't know if this helps, but it is more data.
    Attached Files Attached Files
    HTPC: E7500, Nvidia 9500GT, ATI Theater 650Pro PCI/Firewire Network Recorder/Avermedia Duet A188, NPVR 2.6.2, Win7 Pro
    Test: Asrock 890GM Pro 3, Athlon X2 255 , internal HD4290, ATI Theater 650Pro PCIe, NPVR 2.6.2, Win7 Home Premium
    Lounge: Athlon 3200, Nvidia 7600GT, Network Recorder, NPVR 2.5.5, Win7 Home Premium

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts