- 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¢erlon=-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$¢erlon=$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¢erlon=-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¢erlon=-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¢erlon=-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$¢erlon=$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. lolLast edited by CodyBB; 06-26-09 at 07:31 AM.
06-25-09 02:51 PMLike 0 - 06-25-09 05:21 PMLike 0
-
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.com06-26-09 01:19 PMLike 0 - BerryWeather is becoming huge and a little complicated
Posted from my CrackBerry at wapforums.crackberry.com06-26-09 01:22 PMLike 0 - 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.com06-26-09 01:31 PMLike 0 - I meant my remarks to be a compliment...think BW rocks!!!!
Posted from my CrackBerry at wapforums.crackberry.com06-26-09 01:34 PMLike 0 - 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
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 PMLike 0 - 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 AMLike 0 -
- 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 AMLike 0
-
- Forum
- BlackBerry OS Phone Forums
- BlackBerry OS Apps
Berry Weather custom radar link Tutorial...
LINK TO POST COPIED TO CLIPBOARD