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

Thread: Weather stopped working

  1. #11
    VENDOR - Centrafuse veetid's Avatar
    Join Date
    Apr 2004
    Posts
    5,040
    Quote Originally Posted by Sonicxtacy02 View Post
    i dont know how centrefuse pulls its weather data but if its from weather.com its quite possible its bein affected the same way RR was affected. They changed they're XML feed.
    this is the case, but we fixed the feed in RC3, it should be working for everyone unless they have old files on the machine somehow...

    david
    __________________
    CENTRAFUSE http://www.centrafuse.com
    01 Jeep Cherokee Sport 4x4 Installed
    M10000/512Mb/20GB, Lilliput 7", Holux GM-210

  2. #12
    Newbie
    Join Date
    Jun 2008
    Posts
    3
    Quote Originally Posted by veetid View Post
    this is the case, but we fixed the feed in RC3, it should be working for everyone unless they have old files on the machine somehow...

    david
    Can you fixed the feed in plugin for version 1.2 ?

    I made a solution for CFWeather plugin to show weather at current position.

    At following address http://www.batchgeocode.com/lookup/ I found latitude and longitude for every city.

    I am from Romania.
    At following address http://weather.yahoo.com/regional/ROXX.html , I found all cities from Romania that have informations on weather.com

    I created the file weather.ini:
    [Arad]
    cod=ROXX0024
    lat=46.18026
    lon=21.323225

    [Bacau]
    cod=ROXX0023
    lat=46.48000
    lon=26.22000

    [Botosani]
    cod=ROXX0018
    lat=47.741155
    lon=26.667415

    [Braila]
    cod=ROXX0001
    lat=45.27112
    lon=27.956545

    [Brasov]
    cod=ROXX0002
    lat=45.64235
    lon=25.58841

    [Bucharest]
    cod=ROXX0003
    lat=44.4342
    lon=26.102955

    [Buzau]
    cod=ROXX0004
    lat=45.15534
    lon=26.817075

    [Calafat]
    cod=ROXX0042
    lat=43.5800
    lon=22.5600

    [Calarasi]
    cod=ROXX0032
    lat=44.196515
    lon=27.33539

    [Campina]
    cod=ROXX0005
    lat=45.106151
    lon=25.745557

    [Caransebes]
    cod=ROXX0026
    lat=45.409137
    lon=22.220693

    [Ceahlau Toaca]
    cod=ROXX0021
    lat=46.97751
    lon=25.94994

    [Cluj-Napoca]
    cod=ROXX0022
    lat=46.770135
    lon=23.596885

    [Constanta]
    cod=ROXX0034
    lat=44.17694
    lon=28.65321

    [Craiova]
    cod=ROXX0007
    lat=44.31887
    lon=23.80172

    [Drobeta Tr. Severin]
    cod=ROXX0031
    lat=44.6288
    lon=22.6517

    [Focsani]
    cod=ROXX0008
    lat=45.69581
    lon=27.18407

    [Galati]
    cod=ROXX0009
    lat=45.433265
    lon=28.051575

    [Gheorgheni]
    cod=ROXX0035
    lat=46.722382
    lon=25.61038

    [Giurgiu]
    cod=ROXX0010
    lat=43.915495
    lon=25.97194

    [Iasi]
    cod=ROXX0020
    lat=43.915495
    lon=25.97194

    [Oradea]
    cod=ROXX0019
    lat=47.05206
    lon=21.938735

    [Petrosani]
    cod=ROXX0036
    lat=45.41259
    lon=23.369355

    [Pitesti]
    cod=ROXX0011
    lat=44.850985
    lon=24.879774

    [Ploiesti]
    cod=ROXX0012
    lat=44.940618
    lon=26.023406

    [Prundu]
    cod=ROXX0037
    lat=44.833302
    lon=24.9167

    [Rimnicu Vilcea]
    cod=ROXX0028
    lat=45.105171
    lon=24.373249

    [Rosiori de Vede]
    cod=ROXX0013
    lat=44.096085
    lon=24.99297

    [Satu Mare]
    cod=ROXX0038
    lat=47.793295
    lon=22.876675

    [Sibiu]
    cod=ROXX0014
    lat=45.791681
    lon=24.147604

    [Sighetu Marmatiei]
    cod=ROXX0017
    lat=47.926845
    lon=23.902035

    [Slatina]
    cod=ROXX0015
    lat=44.4333
    lon=24.3667

    [Slobozia]
    cod=ROXX0016
    lat=44.5667
    lon=27.3667

    [Sulina]
    cod=ROXX0030
    lat=45.1500
    lon=29.6667

    [Talmaciu]
    cod=ROXX0039
    lat=46.599998
    lon=21.883301

    [Timisoara]
    cod=ROXX0040
    lat=45.753425
    lon=21.223275

    [Tirgoviste]
    cod=ROXX0041
    lat=44.918538
    lon=25.480473

    [Vf. Omu]
    cod=ROXX0025
    lat=45.4500
    lon=25.4500
    I use a function to calculate distance between 2 positions (x1,y1) and (x2,y2):
    function distance(x1,y1,x2,y2:double):double;
    var dx,dy:double;
    begin
    dx:=abs(x1-x2);
    dy:=abs(y1-y2);
    result:=sqrt(dx*dx+dy*dy);
    end;
    If my current position is (lat0,lon0), I calculate distances from current position to all cities from weather.ini file and I chose the city with smallest distance.

    For example, if the smallest distance is from my position (lat0,lon0) and Slobozia (lat=44.5667,lon=24.3667) then I overwrite the file "c:\program files\flux media\centrafuse\plugins\weather\config.xml" with following content:
    <APPCONFIG>
    <SKIN>Onyx WS Night</SKIN>
    <APPLANG>English</APPLANG>
    <WEATHERCODE>%COD%</WEATHERCODE>
    <WEATHERCITY>%CITY%</WEATHERCITY>
    <AUTODIAL>False</AUTODIAL>
    </APPCONFIG>
    where %COD% is replaced with "ROXX0016" and %CITY% is replaced with "Slobozia, Romania".

  3. #13
    Maximum Bitrate
    Join Date
    May 2006
    Location
    Seattleish, WA
    Posts
    823
    VERY cool!!! Well done!

    But, where is that function located? Who's executing it? Did you also write a vb app that's running on a timer to hot-patch the weather config xml?
    :: Mark

  4. #14
    Newbie
    Join Date
    Jun 2008
    Posts
    3
    Quote Originally Posted by midiwall View Post
    VERY cool!!! Well done!

    But, where is that function located? Who's executing it? Did you also write a vb app that's running on a timer to hot-patch the weather config xml?
    I used Borland Delphi.
    I made a scheduler.exe that uses following file scheduler.ini:
    [Scheduler]
    Commands=2

    [Command1]
    Interval=120
    Execute=c:\services\internet.exe

    [Command2]
    Interval=300
    Execute=c:\services\weather.exe
    The weather.exe overwrite c:\program files\flux media\centrafuse\plugins\weather\config.xml at interval of 300 seconds.

  5. #15
    Maximum Bitrate
    Join Date
    May 2006
    Location
    Seattleish, WA
    Posts
    823
    Ahh, Pascal, how I love thee! (I missed the := operator in your source).

    Are you reading your GPS through a split COM port? (Xport?)

    Cool man.. Very cool.
    :: Mark

  6. #16
    Newbie
    Join Date
    Jun 2008
    Posts
    3
    Quote Originally Posted by midiwall View Post
    Ahh, Pascal, how I love thee! (I missed the := operator in your source).

    Are you reading your GPS through a split COM port? (Xport?)

    Cool man.. Very cool.
    I used XPORT to split GPS information to other ports.
    Real GPS used COM2. With XPORT I split GPS information to COM3,COM4,COM5.
    COM3 is used by IGO.
    COM4 is used by CENTRAFUSE.
    COM5 is used by my dll with procedure GetPosition(var latitude,longitude: double);

  7. #17
    Maximum Bitrate
    Join Date
    May 2006
    Location
    Seattleish, WA
    Posts
    823
    Dude, how's your C#? This would be a nice plug-in for CF, though outside of giving the user a configuration UI it doesn't really have to be. Hmmm...
    :: Mark

  8. #18
    Raw Wave justintime's Avatar
    Join Date
    Apr 2005
    Posts
    2,705
    Someone should incorporate this directly into the Weather plugin! Source code is out there.
    2002 Honda CR-V
    Carputer progress: 90% [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ -]
    Spent so far: $1105.90


    Download the NEXUS Skin for Centrafuse
    ...or even Listen to my music

  9. #19
    Low Bitrate
    Join Date
    Oct 2006
    Posts
    101
    I would LOVE to see it incorporated. I would set it so you could see either the weather at your "saved" location, or local.

    Here's where to get the US zip codes:
    http://zips.sourceforge.net/

    Sample:

    Code:
    zip code	 "state abbreviation"	 "latitude"	 "longitude"	 "city"	 "state"
    35004	 "AL"	 " 33.606379"	 " -86.50249"	 "Moody"	 "Alabama"
    35005	 "AL"	 " 33.592585"	 " -86.95969"	 "Adamsville"	 "Alabama"
    35006	 "AL"	 " 33.451714"	 " -87.23957"	 "Adger"	 "Alabama"
    35007	 "AL"	 " 33.232422"	 " -86.80871"	 "Alabaster"	 "Alabama"
    35010	 "AL"	 " 32.903432"	 " -85.92669"	 "Alexander City"	 "Alabama"
    The file is a CSV, so it'd be easy to work with.

  10. #20
    Low Bitrate
    Join Date
    Dec 2006
    Location
    Center of the Universe
    Posts
    72
    Hey Zarzavaturi, so...ai facut sa mearga "vremea" in CF1.20 ? Nu de alta dar eu nu vreau sa folosesc versiunea asta noua pentru ca imi merge carPC-ul prea bine ca sa stric ceva !

Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Weather Plugin
    By f1anatic in forum Centrafuse
    Replies: 7
    Last Post: 05-10-2008, 10:35 PM
  2. 2003 Jetta Monsoon radio stopped working
    By jmaglio1 in forum Car Audio
    Replies: 7
    Last Post: 01-31-2008, 09:44 AM
  3. SPV M700 / HTC P3600 not working with Phonecontrol
    By Tracert in forum PhoneControl
    Replies: 0
    Last Post: 07-13-2007, 11:16 PM
  4. Help!! My Dennis K setup has stopped working
    By Glyn in forum LCD/Display
    Replies: 1
    Last Post: 08-30-2002, 04:20 PM

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
  •