Built for Business - Learn more about BlackBerry KEY2
08-16-12 08:09 AM
58 123
tools
  1. cody's Avatar
    Ok, this is a small tutorial on how to make custom radar maps for Berry Weather. Berry “GPS” and typed in locations”. The links you create will be different for the type of location you are using it for. You can have one “custom radar link per location. For example… I have gps follow me for one location, another for home, and another for a different state where my mommy lives. Why I don’t know.

    Lets start with accuweather. Well use this link for starters…
    hxxp://www.accuweather.com/m/US/wigs.axd?city=RAYMORE&state=MO&w=320&h=210&type=_S IR&geoWidth=150&lat=38.805255&lon=-94.460299&anim=3&af=5

    At first it looks crazy, but once you look at it you can see there are parts that determine were this map is going and how it is going to look and work. Lets break it down…
    city=RAYMORE
    state=MO
    w=320
    h=240
    type=_SIR
    geoWidth=150
    lat=38.805255
    lon=-94.460299
    anim=3
    af=5

    Now lets explain these variables backwards.
    Af = animation frames
    Anim = don’t know
    lon=-longitude
    lat=latitude
    geoWidth= miles the map will cover. This is not the size of the map.
    type=don’t know
    h=size of map height
    w=size of map width
    state= state
    city=city

    Now lets explain the things you would want to change in this link to make it custom.

    1. City and state you can leave blank. This will remove the name of you city from the map and turn the radar time stamp into GMT which may or may not bug you when your trying to time out a storm. For example… hxxp://www.accuweather.com/m/US/wigs.axd?city=&state=&w=320&h=210&type=_SIR&geoWid th=150&lat=38.805255&lon=-94.460299&anim=3&af=5. If you place this link in a “typed in location” the radar time stamp will reflect the city and state in the link.

    2. Height and width. This is going to be different for the different types of blackberry screens. For the 8330 device with the 320x240 screen, you will see that we have used a 320x210. This is because the app itself uses 30 pixels at the top for the header. You can make the height what ever size you want. The only thing is you will have to scroll around a little to see the whole map if you choose a size that is bigger than your screen. For example, hxxp://www.accuweather.com/m/US/wigs.axd?city=RAYMORE&state=MO&w=480&h=320&type=_S IR&geoWidth=150&lat=38.805255&lon=-94.460299&anim=3&af=5. this link the height and width are bigger than the screen on the 8330. It still works but you can scroll up and down and when first loaded you’re not centered on the desired location.

    The perfect height and width sizes which don’t require any scrolling are…
    83xx, 82xx = 320 x 210
    81XX = ?x?
    storm = ?x?
    89xx, bold = 480 X 286
    I will update these numbers as people with the devices reply back with the best numbers. I only have the 8330 so I don’t know the others.

    3. The Berry weather app can use your gps to find the latitude and longitude for you if you want it to show radar for the location selected. You can add $lat$ in for the “lat” variable and $lon$ for the “lon” variable. For example… hxxp://www.accuweather.com/m/US/wigs.axd?city=RAYMORE&state=MO&w=320&h=210&type=_S IR&geoWidth=150&lat=$lat$&lon=$lon$&anim=3&af=5. I think mst people would like to have radar for the location they are pulling data for. if you want to have a radar centered on are area other than the location your data is pulling, you can enter the data manually. You can go to this site to find any latitude and longitude coordinates you want… http://www.batchgeocode.com/lookup/

    4. Geowidth, this is how large the map will span across the screen. It’s not in miles, but it’s kind of close. If you want to see across a few states make the number larger. For example… hxxp://www.accuweather.com/m/US/wigs.axd?city=RAYMORE&state=MO&w=320&h=210&type=_S IR&geoWidth=800&lat=38.805255&lon=-94.460299&anim=3&af=5. By pressing the center screen while radar is loaded, it will zoom in. in case you didn’t know.

    5. You can also change the frames shown in the radar loop. The maximum is 10 frames per loop. For example… hxxp://www.accuweather.com/m/US/wigs.axd?city=RAYMORE&state=MO&w=320&h=210&type=_S IR&geoWidth=150&lat=38.805255&lon=-94.460299&anim=3&af=510. It loads a little bigger download, but I think it shows a better loop. If your watching your memory or cant wait for it to download, try a smaller frame count.
    My final and favorite radar link is… hxxp://www.accuweather.com/m/US/wigs.axd?city=RAYMORE&state=MO&w=320&h=210&type=_S IR&geoWidth=150&lat=38.805255&lon=-94.460299&anim=3&af=510 for home location and hxxp://www.accuweather.com/m/US/wigs.axd?city=RAYMORE&state=MO&w=480&h=320&type=_S IR&geoWidth=150&lat=38.805255&lon=-94.460299&anim=3&af=10 for gps location.

    I don’t know what “type” and “anim” do. I have played with them and can’t figure them out. If anyone figures it out, let me know and I will update this post.

    Now to play with the wunderground custom link…

    Lets start with… hxxp://radblast.wunderground.com/cgi-bin/radar/WUNIDS_composite?centerlat=35.219344&centerlon=-75.690328&radius=100&type=N0R&frame=0&num=5&delay= 15&width=320&height=270&newmaps=1&r=1244393282

    It basicly the same as the accuweather link. Just a few different names for the variables and what not. There is no radar time stamp and no place for city and state.

    1. First thing I see is centerlat and centerlon. You guest it, latitude and longitiude. You can use the veribles $lat$ and $lon$ if you want to use it with a gps location. For example, hxxp://radblast.wunderground.com/cgi-bin/radar/WUNIDS_composite?centerlat=$lat$&centerlon=$lon$&r adius=100&type=N0R&frame=0&num=5&delay=15&width=32 0&height=270&newmaps=1&r=1244393282

    2. Next is radius. Same as geoWidth in the accuweather link. This says how large of area you want displayed.

    3. There are a few variables here as well that I didn’t figure out. Like type, frame, delay, newmap, and r. if anyone figures these out let me know.

    4. Num = the is how many frames in the loop. For example of 10 frames… hxxp://radblast.wunderground.com/cgi-bin/radar/WUNIDS_composite?centerlat=35.219344&centerlon=-75.690328&radius=100&type=N0R&frame=0&num=10&delay =15&width=320&height=270&newmaps=1&r=1244393282. You can also use the $frames$ for the number of frames in the loop. This will make the number of frames the same as what you set up in the app settings. For example… hxxp://radblast.wunderground.com/cgi-bin/radar/WUNIDS_composite?centerlat=35.219344&centerlon=-75.690328&radius=100&type=N0R&frame=0&num=$frames$ &delay=15&width=320&height=270&newmaps=1&r=1244393 282

    5. Width and height. Same as accuweather. You can use the veribles $width$ and $height$ and the app will enter in the information in the link for you. For example… hxxp://radblast.wunderground.com/cgi-bin/radar/WUNIDS_composite?centerlat=35.219344&centerlon=-75.690328&radius=100&type=N0R&frame=0&num=5&delay= 15&width=$width$&height=$height$&newmaps=1&r=12443 93282
    These are the variables that will work with custom radar links. $lon$, $lat$, $width$, $height$ and $frames$. All five work with wunderground, but only the $lat$ and $lon$ work with accuweather. Those are the most important ones so I’m happy. For a look at what it would look like using all the variables… hxxp://radblast.wunderground.com/cgi-bin/radar/WUNIDS_composite?centerlat=$lat$&centerlon=$lon$&r adius=100&type=N0R&frame=0&num=$frames$&delay=15&w idth=$width$&height=$height$&newmaps=1&r=124439328 2 if you use all the variables, when you make a change in the berry weather settings, you have to select “update” in the radar mune before changes will show.

    Hope this helps someone, it took forever to write. Your welcome sling.

    Cody

    All the hxxp:// should be changed to http:// before you use them. In case you didn’t know. lol
    Last edited by CodyBB; 06-26-09 at 07:31 AM.
    06-25-09 02:51 PM
  2. cody's Avatar
    reserved for part two. lol
    Last edited by CodyBB; 06-25-09 at 03:08 PM.
    06-25-09 02:54 PM
  3. tsells's Avatar
    Bold map size is 480 X 286
    06-25-09 03:20 PM
  4. Slingbox's Avatar
    Thanks cody!
    06-25-09 03:57 PM
  5. j.p.hatfield's Avatar
    Wow.... I need a nap after that...

    Posted from my CrackBerry at wapforums.crackberry.com
    06-25-09 05:21 PM
  6. trmiv's Avatar
    Nice, thanks. I can't decide which maps I like better.
    06-26-09 08:58 AM
  7. Klotar's Avatar
    Anyone know of any Canadian sites that have radar weather? Most that I find are US and the radar stops at ND, which is close but not quite close enough.
    06-26-09 11:33 AM
  8. ohenzz00's Avatar
    Thanks Cody. Ive been looking for this for a few days now.

    Is there also a link (code) for "weather.com" that you know of?
    06-26-09 12:08 PM
  9. trmiv's Avatar
    BTW this also works great as a shortcut in Quicklaunch.
    06-26-09 12:10 PM
  10. bb_craze's Avatar
    Excellent! Thanks Cody!
    06-26-09 12:45 PM
  11. A
    Thanks m8! That tip about using the $lat$ and $lon$ for GPS location is terrific.
    06-26-09 12:53 PM
  12. digitalb0y's Avatar
    I dont know what type and anim do. I have played with them and cant figure them out. If anyone figures it out, let me know and I will update this post.
    I believe anim is just to tell it whether to animate or not, as putting in 0 stops the animation feature, and any other value makes no difference. My theory is that it's like 1 for true and 0 for false, but values other than 1 don't break it.

    I'm pretty sure SIR stands for Standard InfraRed, so it affects the way the map looks, I just don't know any the other types you can put in because I can't find a properly formatted list of map types on AccuWeather.com... I've tried _EI, _EIR, EI and EIR to try and get the "Enhanced Infrared" view to work but it always just produces a blank screen so far.

    Nice tutorial BTW, I was thinking of writing something similar but don't have any free time.

    Posted from my CrackBerry at wapforums.crackberry.com
    06-26-09 01:19 PM
  13. j.p.hatfield's Avatar
    BerryWeather is becoming huge and a little complicated

    Posted from my CrackBerry at wapforums.crackberry.com
    06-26-09 01:22 PM
  14. digitalb0y's Avatar
    BerryWeather is becoming huge and a little complicated
    There are much bigger apps out there, and this one is only as complicated as you make it... you COULD use default radar settings instead of a custom map. Similarly, nobody forces you to use GPS... the extra features are there if you want, and since they offer flexibility, some time to configure them is necessary. I wouldn't call the program too big or too complex at all, just very flexible and pretty.

    Posted from my CrackBerry at wapforums.crackberry.com
    06-26-09 01:31 PM
  15. j.p.hatfield's Avatar
    I meant my remarks to be a compliment...think BW rocks!!!!

    Posted from my CrackBerry at wapforums.crackberry.com
    06-26-09 01:34 PM
  16. Slingbox's Avatar
    I believe anim is just to tell it whether to animate or not, as putting in 0 stops the animation feature, and any other value makes no difference. My theory is that it's like 1 for true and 0 for false, but values other than 1 don't break it.

    I'm pretty sure SIR stands for Standard InfraRed, so it affects the way the map looks, I just don't know any the other types you can put in because I can't find a properly formatted list of map types on AccuWeather.com... I've tried _EI, _EIR, EI and EIR to try and get the "Enhanced Infrared" view to work but it always just produces a blank screen so far.

    Nice tutorial BTW, I was thinking of writing something similar but don't have any free time.

    Posted from my CrackBerry at wapforums.crackberry.com
    More accu weather live feeds

    Customs

    Inferred feed



    Visible feed



    Dop Storm feed


    Severe

    Last edited by Slingbox; 06-26-09 at 03:14 PM.
    06-26-09 02:16 PM
  17. cody's Avatar
    More accu weather live feeds

    Customs

    Inferred feed



    Visible feed



    Dop Storm feed


    Severe

    nice...............
    06-26-09 04:24 PM
  18. Slingbox's Avatar
    nice...............
    Very cool...one problem though seen above.
    Images above are no more because link has token attached.
    token=c1yxBFVHA19Cs3QS1urVqd5Q5DgMAp6QtVau3PnuJGa3-BVbjBJ2IQ

    (USCANEIRIS),--Image supplier attaches token so their image doesn't get used for long periods of time.
    Token changes no image is had.
    06-27-09 12:50 AM
  19. John Yester's Avatar
    Added to How to Section


    Awesome work guys!
    07-20-09 11:04 PM
  20. DKatri's Avatar
    This was a good read but is there any way to do this but for UK cities??

    Posted from my CrackBerry at wapforums.crackberry.com
    07-21-09 06:35 AM
  21. chucksredvette's Avatar
    Having problem with the $lat$ and $lon$, I get error message 'Server Error in /m Application'. I have GPS on and location also. I am using Opera for the browser in that a problem?
    07-22-09 10:56 AM
  22. tracksforhire's Avatar
    sweet i keep needing this link
    07-29-09 01:52 AM
  23. kwnd623's Avatar
    I have accuweather set up on my berryweather. I don't see anything plotting my gps location. Is this what everyone elses does too in gps mode.

    Posted from my CrackBerry at wapforums.crackberry.com
    08-01-09 12:25 AM
  24. The Biles's Avatar
    I used the Accuweather link, but I didn't notice any kind of difference in the radar. I made sure everything was typed in correctly. Is there something that could have gone wrong?
    10-09-09 10:31 AM
  25. fordracer's Avatar
    CodyBB,this is very good instructions,had to read a few times till it finally sunk in,and i have it working great.THANK YOU...great how to..
    10-13-09 01:11 PM
58 123
LINK TO POST COPIED TO CLIPBOARD