Page 4 of 15 FirstFirst 1234567891011121314 ... LastLast
Results 31 to 40 of 146

Thread: MobileWeb v1.0 for MediaCar Released

  1. #31
    See me in my wet t-shirt. stevieg's Avatar
    Join Date
    Aug 2003
    Location
    Warwickshire, UK
    Posts
    1,887
    Quote Originally Posted by veetid
    I saw earlier in the thread someone wanting weather support built in... I have some good weather code that should be pretty universal... You might need to right some code to detect whether to show in F/C and MPG/KM, but other than that...

    I have it in an aspx page right now... I call this webpage from your mobileweb program...

    http://mirkwood.gotdns.com/mweb/weat...stalcode=92008

    Here is the code:

    http://mirkwood.gotdns.com/downloads/weather.zip
    Only postcode I know in US is 90210

    Looking at the code now, I have written some code to get the UK weather, will see if I can amend it in
    Ford Focus MP3 : www.stevieg.org/carpc Blog Updated 29 January 2009!
    Car PC Status: Complete - Undergoing Software Redevelopment

  2. #32
    See me in my wet t-shirt. stevieg's Avatar
    Join Date
    Aug 2003
    Location
    Warwickshire, UK
    Posts
    1,887
    UK Multimap have a page that might be suitable 'as is' - http://www.multimap.com/map/browse.c...weather&pc=CV1 (replace CV1 with postcode) however I am going to reformat the same as your data source so it can 'plug' straight in.

    and the above also takes lat / lon as well by the way

    I could make it possible quite easily that the mobileweb can submit lat/lon with the URL is required for those who use a GPS splitter like Xport or GPSgate - then it makes it easy to show 'location sensitive' information.
    Ford Focus MP3 : www.stevieg.org/carpc Blog Updated 29 January 2009!
    Car PC Status: Complete - Undergoing Software Redevelopment

  3. #33
    I'm sorry, and you are....? frodobaggins's Avatar
    Join Date
    Jan 2003
    Location
    Ruston, LA
    Posts
    8,846
    for UK all you have to do is this:
    http://mirkwood.gotdns.com/mweb/weat...lcode=UKXX1347

    Edit: I mean Warwickshire, UK, not just UK
    [H]4 Life
    My next generation Front End is right on schedule.
    It will be done sometime in the next generation.
    I'm a lesbian too.
    I am for hire!

  4. #34
    C4M
    C4M is offline
    Maximum Bitrate C4M's Avatar
    Join Date
    Apr 2002
    Location
    Sydney, Australia
    Posts
    824
    Quote Originally Posted by stevieg
    UK Multimap have a page that might be suitable 'as is' - http://www.multimap.com/map/browse.c...weather&pc=CV1 (replace CV1 with postcode) however I am going to reformat the same as your data source so it can 'plug' straight in.
    I like it - it does Australia too!

    C!
    http://carpc.riposte.net
    I reserve all rights in connection to each post I author, without exception.

  5. #35
    See me in my wet t-shirt. stevieg's Avatar
    Join Date
    Aug 2003
    Location
    Warwickshire, UK
    Posts
    1,887
    Quote Originally Posted by frodobaggins
    for UK all you have to do is this:
    http://mirkwood.gotdns.com/mweb/weat...lcode=UKXX1347

    Edit: I mean Warwickshire, UK, not just UK

    What is XX1347 refering to?


    Oh I see...

    http://www.msnbc.com/news/wea_front....United+Kingdom
    Ford Focus MP3 : www.stevieg.org/carpc Blog Updated 29 January 2009!
    Car PC Status: Complete - Undergoing Software Redevelopment

  6. #36
    C4M
    C4M is offline
    Maximum Bitrate C4M's Avatar
    Join Date
    Apr 2002
    Location
    Sydney, Australia
    Posts
    824
    Sweet!

    http://mirkwood.gotdns.com/mweb/weat...lcode=asXX0112

    Is there a way that we can force it to display celcius rather than F?

    C!
    http://carpc.riposte.net
    I reserve all rights in connection to each post I author, without exception.

  7. #37
    Variable Bitrate craigyb's Avatar
    Join Date
    Sep 2003
    Location
    UK, Sale, Cheshire
    Posts
    404
    This is something that Garry (Confused) asked me to post:

    Quote Originally Posted by Confused
    This is ripped straight from a Samurize script:

    Firstly, go to:

    http://xoap.weather.com/search/search?where=XXXXX

    (where XXXXX can be your town name or post/zip code for example) and get the LOC ID.

    Then, run the following to get an XML file, where UNIT = s or m (s = standard (F), m = metric (C)), and there are two random 5 digit numbers.

    For current day: (Update at most every 30 mins)
    Code:
    http://xoap.weather.com/weather/local/" & LOCID & "?cc=*" & "&par=" & Int(Rnd * 10000) & "&prod=xoap&key=" & Int(Rnd * 10000) & "&unit=" & UNIT
    For DAYF Day forecast: (how far to look ahead)
    Code:
    "http://xoap.weather.com/weather/local/" & LOCID & "?cc=*&dayf=" & DAYF & "&par=" & Int(Rnd * 10000) & "&prod=xoap&key=" & Int(Rnd * 10000) & "&unit=" & UNIT
    So, for example, in my town, Loughton, I go to:
    http://xoap.weather.com/search/search?where=Loughton

    and it returns:
    Code:
    <?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-2004, The Weather Channel Enterprises, Inc. All Rights Reserved.-->
    <search ver="2.0">
      <loc id="UKXX1269" type="1">Loughton, United Kingdom</loc>
    </search>
    So I then go to for current weather:

    http://xoap.weather.com/weather/loca...y=34145&unit=m

    And I get the following:

    Code:
    <?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-2004, The Weather Channel Enterprises, 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="UKXX1269">
        <dnam>Loughton, United Kingdom</dnam>
        <tm>10:54 AM</tm>
        <lat>51.64</lat>
        <lon>0.06</lon>
        <sunr>4:57 AM</sunr>
        <suns>9:13 PM</suns>
        <zone>1</zone>
      </loc>
      <cc>
        <lsup>7/13/04 10:20 AM Local Time</lsup>
        <obst>London City Arpt, United Kingdom</obst>
        <tmp>17</tmp>
        <flik>17</flik>
        <t>Partly Cloudy</t>
        <icon>30</icon>
        <bar>
          <r>1,017.9</r>
          <d>steady</d>
        </bar>
        <wind>
          <s>13</s>
          <gust>N/A</gust>
          <d>290</d>
          <t>WNW</t>
        </wind>
        <hmid>45</hmid>
        <vis>10.0</vis>
        <uv>
          <i>4</i>
          <t>Moderate</t>
        </uv>
        <dewp>5</dewp>
      </cc>
    </weather>

    And for 5 day forecast I go to:

    http://xoap.weather.com/weather/loca...y=14648&unit=m

    And it returns:
    Code:
    <?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-2004, The Weather Channel Enterprises, 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="UKXX1269">
        <dnam>Loughton, United Kingdom</dnam>
        <tm>10:58 AM</tm>
        <lat>51.64</lat>
        <lon>0.06</lon>
        <sunr>4:57 AM</sunr>
        <suns>9:13 PM</suns>
        <zone>1</zone>
      </loc>
      <cc>
        <lsup>7/13/04 10:20 AM Local Time</lsup>
        <obst>London City Arpt, United Kingdom</obst>
        <tmp>17</tmp>
        <flik>17</flik>
        <t>Partly Cloudy</t>
        <icon>30</icon>
        <bar>
          <r>1,017.9</r>
          <d>steady</d>
        </bar>
        <wind>
          <s>13</s>
          <gust>N/A</gust>
          <d>290</d>
          <t>WNW</t>
        </wind>
        <hmid>45</hmid>
        <vis>10.0</vis>
        <uv>
          <i>4</i>
          <t>Moderate</t>
        </uv>
        <dewp>5</dewp>
      </cc>
      <dayf>
        <lsup>7/13/04 5:44 AM Local Time</lsup>
        <day d="0" t="Tuesday" dt="Jul 13">
          <hi>21</hi>
          <low>12</low>
          <sunr>4:57 AM</sunr>
          <suns>9:13 PM</suns>
          <part p="d">
            <icon>30</icon>
            <t>Partly Cloudy</t>
            <wind>
              <s>13</s>
              <gust>N/A</gust>
              <d>280</d>
              <t>W</t>
            </wind>
            <ppcp>20</ppcp>
            <hmid>60</hmid>
          </part>
          <part p="n">
            <icon>29</icon>
            <t>Partly Cloudy</t>
            <wind>
              <s>13</s>
              <gust>N/A</gust>
              <d>238</d>
              <t>WSW</t>
            </wind>
            <ppcp>20</ppcp>
            <hmid>74</hmid>
          </part>
        </day>
        <day d="1" t="Wednesday" dt="Jul 14">
          <hi>21</hi>
          <low>15</low>
          <sunr>4:59 AM</sunr>
          <suns>9:12 PM</suns>
          <part p="d">
            <icon>11</icon>
            <t>Few Showers</t>
            <wind>
              <s>21</s>
              <gust>N/A</gust>
              <d>241</d>
              <t>WSW</t>
            </wind>
            <ppcp>30</ppcp>
            <hmid>78</hmid>
          </part>
          <part p="n">
            <icon>11</icon>
            <t>Showers</t>
            <wind>
              <s>18</s>
              <gust>N/A</gust>
              <d>253</d>
              <t>WSW</t>
            </wind>
            <ppcp>50</ppcp>
            <hmid>81</hmid>
          </part>
        </day>
        <day d="2" t="Thursday" dt="Jul 15">
          <hi>20</hi>
          <low>14</low>
          <sunr>5:00 AM</sunr>
          <suns>9:11 PM</suns>
          <part p="d">
            <icon>11</icon>
            <t>Showers</t>
            <wind>
              <s>21</s>
              <gust>N/A</gust>
              <d>238</d>
              <t>WSW</t>
            </wind>
            <ppcp>50</ppcp>
            <hmid>80</hmid>
          </part>
          <part p="n">
            <icon>11</icon>
            <t>Showers</t>
            <wind>
              <s>13</s>
              <gust>N/A</gust>
              <d>246</d>
              <t>WSW</t>
            </wind>
            <ppcp>50</ppcp>
            <hmid>84</hmid>
          </part>
        </day>
        <day d="3" t="Friday" dt="Jul 16">
          <hi>21</hi>
          <low>14</low>
          <sunr>5:01 AM</sunr>
          <suns>9:10 PM</suns>
          <part p="d">
            <icon>11</icon>
            <t>Showers</t>
            <wind>
              <s>13</s>
              <gust>N/A</gust>
              <d>245</d>
              <t>WSW</t>
            </wind>
            <ppcp>50</ppcp>
            <hmid>80</hmid>
          </part>
          <part p="n">
            <icon>11</icon>
            <t>Showers</t>
            <wind>
              <s>10</s>
              <gust>N/A</gust>
              <d>226</d>
              <t>SW</t>
            </wind>
            <ppcp>50</ppcp>
            <hmid>87</hmid>
          </part>
        </day>
        <day d="4" t="Saturday" dt="Jul 17">
          <hi>23</hi>
          <low>13</low>
          <sunr>5:02 AM</sunr>
          <suns>9:09 PM</suns>
          <part p="d">
            <icon>26</icon>
            <t>Cloudy</t>
            <wind>
              <s>14</s>
              <gust>N/A</gust>
              <d>234</d>
              <t>SW</t>
            </wind>
            <ppcp>30</ppcp>
            <hmid>72</hmid>
          </part>
          <part p="n">
            <icon>29</icon>
            <t>Partly Cloudy</t>
            <wind>
              <s>8</s>
              <gust>N/A</gust>
              <d>241</d>
              <t>WSW</t>
            </wind>
            <ppcp>20</ppcp>
            <hmid>78</hmid>
          </part>
        </day>
      </dayf>
    </weather>

    This data can then be parsed and displayed how/where you wish


    Garry
    Audi S8 supercar
    Modded Xbox 400GB HD
    Rear 7" screen & navplus

    Toyota Hiace Van
    Shuttle PIII 866 256Mb 10GB OPUS powered
    MediaCar & Mappoint 2004
    Custom fit 7" TFT VGA TSK

  8. #38
    I'm sorry, and you are....? frodobaggins's Avatar
    Join Date
    Jan 2003
    Location
    Ruston, LA
    Posts
    8,846
    If you are going to use the above in an app or web page you should sign up with the weather channel and get a different partner id and license key.
    It's free BTW, they also have an sdk with explanations of everything.
    [H]4 Life
    My next generation Front End is right on schedule.
    It will be done sometime in the next generation.
    I'm a lesbian too.
    I am for hire!

  9. #39
    VENDOR - Centrafuse veetid's Avatar
    Join Date
    Apr 2004
    Posts
    5,040
    I didn't know that.... Weather.com gives away a free xml feed? I always thought they where all about stopping people from getting there data.. I will have to check that out..

    Even so... They still just give you data right? No image urls and or image mappings right? Trying to still find a use for what I wrote
    __________________
    CENTRAFUSE http://www.centrafuse.com
    01 Jeep Cherokee Sport 4x4 Installed
    M10000/512Mb/20GB, Lilliput 7", Holux GM-210

  10. #40
    I'm sorry, and you are....? frodobaggins's Avatar
    Join Date
    Jan 2003
    Location
    Ruston, LA
    Posts
    8,846
    Quote Originally Posted by veetid
    I didn't know that.... Weather.com gives away a free xml feed? I always thought they where all about stopping people from getting there data.. I will have to check that out..

    Even so... They still just give you data right? No image urls and or image mappings right? Trying to still find a use for what I wrote
    They give a feed for free, yes. They don't want you just ripping from their site
    though. You have to agree to the license agreement and terms.
    They provide an sdk and images.

    Frodo

    And BTW, yours is still usefull, much easier to parse the data from msnbc.
    Although I'm not sure how well msnbc likes it
    [H]4 Life
    My next generation Front End is right on schedule.
    It will be done sometime in the next generation.
    I'm a lesbian too.
    I am for hire!

Similar Threads

  1. FrodoSkinner v1.0 Released
    By Jawbreak in forum FrodoPlayer
    Replies: 21
    Last Post: 12-30-2004, 01:34 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
  •