Add a weather API to your Subsonic

Before we start you will need
-A text editor, I prefer Notepad ++
-Back up file "\subsonic\jetty\2361\webapp\WEB-INF\jsp\top.jsp" to a safe place
Open the file "\subsonic\jetty\2361\webapp\WEB-INF\jsp\top.jsp"
Locate this section (Line 22-29 using Notepad++):
- Code: Select all
<c:if test="${not model.musicFoldersExist}">
<td style="padding-right:2em">
<p class="warning"><fmt:message key="top.missing"/></p>
</td>
</c:if>
<td>
<table><tr align="center">
Now visit http://www.wunderground.com/ enter your location in the search section. I used my Zip Code and hit enter. Look for "Make this Location a Weather Sticker" click here. Choose your color & copy code.
Now go back to your editor (using Notepad++) paste (at line 30),
- Code: Select all
<td style="min-width:4em;padding-right:0.5em">
and paste your code from wunderground, after pasting the "weather code" place
- Code: Select all
</td>
Now your mod should look like this (line 30-32):
- Code: Select all
<td style="min-width:4em;padding-right:0.5em">
<a href="http://www.wunderground.com/cgi-bin/findweather/getForecast?query=zmw:29566.1.99999&bannertypeclick=wu_macwhite"><img src="http://weathersticker.wunderground.com/cgi-bin/banner/ban/wxBanner?bannertype=wu_macwhite&airportcode=KCRE&ForcedCity=Little River&ForcedState=SC" alt="Click for Little River, South Carolina Forecast" height="40" width="100" /></a>
</td>
I did change the code from wunderground to fit my top bar area better instead of using height="90" width="160", I used height="40" width="100". I have an older smaller monitor & found the button a nice addition, but some of the letters rather small. Ones of you with larger monitors can adjust for a better fit.
Now I opened the Subsonic Control Panel, and stopped the service. I saved the file "\subsonic\jetty\2361\webapp\WEB-INF\jsp\top.jsp".
Go back to the Subsonic Control Panel, and start the service.
Also I logged out & cleared my browers cache as well.
Now when I logged back into my subsonic I see the attached as it appears on the top bar.