nweather was supposed to look for nweather.conf in the directories below in this specific following order:
1. ~/.nghost/
2. /etc/nghost
3. /usr/local/etc/nghost
4. current directory where nweather is launched
I will add the option to look for the config file in the root of the home directory to make life easier.
Looking at govee's screenshot, it seems like the forecast isn't being populated. I will take a look at the script to find out what's wrong and keep you posted.
Linux(Learning the curve...Like when driving!!!)
Worklog!!!http://www.mp3car.com/vbulletin/fabr...l-worklog.html
I am pretty sure that Nweather.py is suppose to run at startup. Have you performed the iceconfig that is in APPS? That may be what setups up the autostart of nweather. I am just guessing...
Linux(Learning the curve...Like when driving!!!)
Worklog!!!http://www.mp3car.com/vbulletin/fabr...l-worklog.html
nghost starts nweather when nghost starts.
Former author of LinuxICE, nghost.
Current author of nobdy.
Btw I made some changes to nweather.py, weather, and also added observation station and last update information to the screen. Changes have been commited to the svn since yesterday.
Here are the contents of the xml in the file system "/tmp"....
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- This document is intended only for use by authorized licensees of The -->
<!-- Weather Channel. Unauthorized use is prohibited. Copyright 1995-2010, -->
<!-- The Weather Channel Interactive, Inc. All Rights Reserved. -->
<weather ver="2.0">
<head>
<locale>en_US</locale>
<form>MEDIUM</form>
<ut>C</ut>
<ud>km</ud>
<us>km/h</us>
<up>mb</up>
<ur>mm</ur>
</head>
<loc id="21207">
<dnam>Gwynn Oak, MD (21207)</dnam>
<tm>9:33 PM</tm>
<lat>39.32</lat>
<lon>-76.73</lon>
<sunr>7:26 AM</sunr>
<suns>5:06 PM</suns>
<zone>-5</zone>
</loc>
<cc>
<lsup>1/12/10 9:05 PM EST</lsup>
<obst>Catonsville, MD</obst>
<tmp>-2</tmp>
<flik>-7</flik>
<t>Fair</t>
<icon>33</icon>
<bar>
<r>1022.4</r>
<d>steady</d>
</bar>
<wind>
<s>16</s>
<gust>N/A</gust>
<d>290</d>
<t>WNW</t>
</wind>
<hmid>56</hmid>
<vis>16.1</vis>
<uv>
<i>0</i>
<t>Low</t>
</uv>
<dewp>-8</dewp>
<moon>
<icon>27</icon>
<t>Waning Crescent</t>
</moon>
</cc>
<dayf>
<lsup>1/12/10 6:25 PM EST</lsup>
<day d="0" t="Tuesday" dt="Jan 12">
<hi>N/A</hi>
<low>-4</low>
<sunr>7:26 AM</sunr>
<suns>5:05 PM</suns>
<part p="d">
<icon>44</icon>
<t>N/A</t>
<wind>
<s>N/A</s>
<gust>N/A</gust>
<d>N/A</d>
<t>N/A</t>
</wind>
<bt>N/A</bt>
<ppcp>10</ppcp>
<hmid>N/A</hmid>
</part>
<part p="n">
<icon>29</icon>
<t>Partly Cloudy</t>
<wind>
<s>19</s>
<gust>N/A</gust>
<d>314</d>
<t>NW</t>
</wind>
<bt>P Cloudy</bt>
<ppcp>10</ppcp>
<hmid>45</hmid>
</part>
</day>
<day d="1" t="Wednesday" dt="Jan 13">
<hi>4</hi>
<low>-3</low>
<sunr>7:26 AM</sunr>
<suns>5:06 PM</suns>
<part p="d">
<icon>34</icon>
<t>Mostly Sunny</t>
<wind>
<s>16</s>
<gust>N/A</gust>
<d>278</d>
<t>W</t>
</wind>
<bt>M Sunny</bt>
<ppcp>10</ppcp>
<hmid>50</hmid>
</part>
<part p="n">
<icon>31</icon>
<t>Clear</t>
<wind>
<s>10</s>
<gust>N/A</gust>
<d>269</d>
<t>W</t>
</wind>
<bt>Clear</bt>
<ppcp>0</ppcp>
<hmid>49</hmid>
</part>
</day>
<day d="2" t="Thursday" dt="Jan 14">
<hi>6</hi>
<low>-1</low>
<sunr>7:26 AM</sunr>
<suns>5:07 PM</suns>
<part p="d">
<icon>32</icon>
<t>Sunny</t>
<wind>
<s>6</s>
<gust>N/A</gust>
<d>241</d>
<t>WSW</t>
</wind>
<bt>Sunny</bt>
<ppcp>0</ppcp>
<hmid>55</hmid>
</part>
<part p="n">
<icon>27</icon>
<t>Mostly Cloudy</t>
<wind>
<s>5</s>
<gust>N/A</gust>
<d>215</d>
<t>SW</t>
</wind>
<bt>M Cloudy</bt>
<ppcp>20</ppcp>
<hmid>67</hmid>
</part>
</day>
<day d="3" t="Friday" dt="Jan 15">
<hi>8</hi>
<low>0</low>
<sunr>7:25 AM</sunr>
<suns>5:08 PM</suns>
<part p="d">
<icon>30</icon>
<t>AM Clouds / PM Sun</t>
<wind>
<s>8</s>
<gust>N/A</gust>
<d>266</d>
<t>W</t>
</wind>
<bt>AM Clouds</bt>
<ppcp>20</ppcp>
<hmid>65</hmid>
</part>
<part p="n">
<icon>29</icon>
<t>Partly Cloudy</t>
<wind>
<s>5</s>
<gust>N/A</gust>
<d>277</d>
<t>W</t>
</wind>
<bt>P Cloudy</bt>
<ppcp>10</ppcp>
<hmid>71</hmid>
</part>
</day>
<day d="4" t="Saturday" dt="Jan 16">
<hi>7</hi>
<low>0</low>
<sunr>7:25 AM</sunr>
<suns>5:09 PM</suns>
<part p="d">
<icon>30</icon>
<t>Partly Cloudy</t>
<wind>
<s>8</s>
<gust>N/A</gust>
<d>291</d>
<t>WNW</t>
</wind>
<bt>P Cloudy</bt>
<ppcp>20</ppcp>
<hmid>63</hmid>
</part>
<part p="n">
<icon>26</icon>
<t>Cloudy</t>
<wind>
<s>5</s>
<gust>N/A</gust>
<d>33</d>
<t>NNE</t>
</wind>
<bt>Cloudy</bt>
<ppcp>10</ppcp>
<hmid>63</hmid>
</part>
</day>
</dayf>
</weather>
Linux(Learning the curve...Like when driving!!!)
Worklog!!!http://www.mp3car.com/vbulletin/fabr...l-worklog.html
It looks like Nweather is getting a complete dump from weather.com. What does your weather screen look like? I had similar results but the weather screen was only partially populated, so it would appear the weather screen is not fully parsing the xml file or doesnt understand some of the tags.
locs4dayz, govee, I made some changes to nweather to solve the forecast problem. I've attached the changes I made if you don't want to wait for next week when Kev update the package.
Code:tar xzvf nweather.tar.gz cp nweather.py /usr/bin/ cp weather.py /usr/bin/ cp weather.xml /usr/share/nghost/vistique
Bookmarks