Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 24

Thread: possible nweather issue

  1. #11
    Newbie
    Join Date
    Sep 2009
    Posts
    12
    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.

  2. #12
    Maximum Bitrate locs4dayz's Avatar
    Join Date
    Sep 2009
    Location
    Philadelphia, PA
    Posts
    507
    Quote Originally Posted by kev000 View Post
    your research is very helpful. Make sure that nweather.py is running (and nghost doesn't complain about it).


    I need to know how to get nweather. py to start and to always start running on system start-up. Mine is not running at all( getting message...Location:is nweather.py running?). I changed my zip code in the weather.conf file...still the same message!


    Thanks in advance!!!
    Linux(Learning the curve...Like when driving!!!)
    Worklog!!!http://www.mp3car.com/vbulletin/fabr...l-worklog.html

  3. #13
    Newbie govee's Avatar
    Join Date
    Dec 2009
    Location
    Southern, Maryland
    Posts
    45
    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...

  4. #14
    Maximum Bitrate locs4dayz's Avatar
    Join Date
    Sep 2009
    Location
    Philadelphia, PA
    Posts
    507
    Quote Originally Posted by govee View Post
    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...

    I did when I installed my OS....will run another now and see if that fixes the issue....
    Linux(Learning the curve...Like when driving!!!)
    Worklog!!!http://www.mp3car.com/vbulletin/fabr...l-worklog.html

  5. #15
    licensed to kill - FKA kev000
    Auto Apps:loading...
    tripzero's Avatar
    Join Date
    Aug 2006
    Location
    16.40618, 120.61106
    Posts
    2,494
    nghost starts nweather when nghost starts.
    Former author of LinuxICE, nghost, nobdy.
    Current author of Automotive Message Broker (AMB).
    Works on Tizen IVI. Does not represent anyone or anything but himself.

  6. #16
    Newbie
    Join Date
    Sep 2009
    Posts
    12
    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.

  7. #17
    licensed to kill - FKA kev000
    Auto Apps:loading...
    tripzero's Avatar
    Join Date
    Aug 2006
    Location
    16.40618, 120.61106
    Posts
    2,494
    Quote Originally Posted by n2o_2k View Post
    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.
    Great! I'll update the packages and push them to the repo for next weeks round of updates.
    Former author of LinuxICE, nghost, nobdy.
    Current author of Automotive Message Broker (AMB).
    Works on Tizen IVI. Does not represent anyone or anything but himself.

  8. #18
    Maximum Bitrate locs4dayz's Avatar
    Join Date
    Sep 2009
    Location
    Philadelphia, PA
    Posts
    507
    Quote Originally Posted by govee View Post
    locs4days,
    If you have not updated LinuxICE recently I would do so. I think KEV pushed a fix for the nweather.py file that should allow you to update the weather.conf file located in /etc/nghost/. Replace the exsiting zip code with yours. Then run nghost in terminal to get the zip code updated in nweather.py. If it still is not updated when you go to the weather screen then you may have to open nweather.py with root permissions in mousepad and manually add the zip code near the top of the file. After nghost is run check to see if there is a file named weather.xml in location /tmp? If so what are the contents of the file?
    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

  9. #19
    Newbie govee's Avatar
    Join Date
    Dec 2009
    Location
    Southern, Maryland
    Posts
    45
    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.

  10. #20
    Newbie
    Join Date
    Sep 2009
    Posts
    12
    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
    Attached Files Attached Files

Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. DigitalFX 4.0
    By JohnWPB in forum RR Skins No Longer Supported
    Replies: 5576
    Last Post: 03-27-2014, 05:48 PM
  2. **Please help!! disk drive/windows issue
    By Phoenix750 in forum General Hardware Discussion
    Replies: 26
    Last Post: 05-12-2009, 12:38 PM
  3. HP Laptop LCD Exstension issue
    By kendallb in forum LCD/Display
    Replies: 3
    Last Post: 03-22-2009, 07:16 PM
  4. My RR/DFX 4.0 100% CPU usage issue
    By Minoritydan in forum RR Bug Tracker
    Replies: 27
    Last Post: 12-23-2008, 01:40 PM
  5. No audio after resume from hibernate issue - almost fixed - Help me finish?
    By Trin in forum Software & Software Development
    Replies: 0
    Last Post: 07-26-2008, 08:35 AM

Bookmarks

Posting Permissions

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