webOS Nation Forums >  Homebrew >  webOS patches > [Patch] Statusbar Weather Widget
[Patch] Statusbar Weather Widget

  Reply
Like Tree2Likes

 
LinkBack Thread Tools Display Modes
Old 04/06/2011, 03:53 AM   #1 (permalink)
Homebrew Developer
 
Join Date: Jul 2011
Posts: 126
Likes Received: 68
Thanks: 43
Thanked 3,129 Times in 2,010 Posts
Default [Patch] Statusbar Weather Widget

Statusbar Weather Widget v2.1

This patch will put a weather widget in your statusbar. A functional GPS is required for now...

Installation:
- Download the attached StatusbarWeatherWidget_v2.1.zip file and extract it.
- Install the ipk file.

Installation for WebOS 1.4.5 users:
- Download the attached Icon pack and extract it.
- Put all the individual images in /media/internal/.widgets/sww/
- Install one of the 1.4.5 patches.


How to use:
- Tapping the icon cycles between "Minimal", "Basic", and "Full" views
- Tap and hold the icon to launch your city's Yahoo Weather page in the Browser. You can also set this function in Tweaks to launch a different weather app.
- Tap the 'Data Area' to update your weather info only
- Tap and hold the 'Data Area' to update your GPS location and weather info

"Tap and hold" means you need to keep your finger on the specified area for a second or two. The Data Area is not accessible in the "Minimal" view.

Views:
Minimal

Basic

Full


Available Tweaks:
Units
-- Fahrenheit
-- Celsius
Status Line 1/2
-- City Name: The name of your current city
-- High and Low: Today's forecasted high and low
-- Conditions: Description of the current conditions
-- Wind Conditions: [Wind direction] [Wind speed] [Wind chill]
-- Date: Today's date
Display
-- Homescreen Only: SWW will only be displayed while you are in card view
-- Always: SWW will always be visible. You will still be able to access the app menu.
Clock
-- Center: The clock will be in it's default position
-- Right: The clock will be moved to the far right side of the statusbar
Icon Launch
-- App Name: Holding your finger on the weather icon will launch this app
Update Interval (Minutes)
-- Number: How often the widget automatically refreshes the weather data

After changing a setting in Tweaks, all you need to do is tap the 'Data Area' to update the widget. Your new settings will then take effect.

Screenshots:


SWW 2.1 does not work with sconix's Advanced Menu patches. If you want a version of SWW that's compatible, please use v1.5.

The 1.4.5 versions do not update automatically... For some reason, the 'auto update' code was causing the widget to not work right... I'll try to fix it tomorrow.

Please let me know if you have any issues with this patch.

(Direct link to ipk file: com.choorp.statusbarweatherwidget_2.1_all.ipk (webOS 2.x))


Last edited by HelloNNNewman; 05/25/2011 at 12:40 PM. Reason: attachments deleted per OP request
Garrett92C is offline   Reply With Quote
Old 04/06/2011, 04:41 AM   #2 (permalink)
Member
 
Join Date: Sep 2010
Posts: 99
Likes Received: 0
Thanks: 23
Thanked 12 Times in 11 Posts
Default

Wow, looks great!

Thanks a lot
Dreamcatcher is offline   Reply With Quote
Old 04/06/2011, 04:51 AM   #3 (permalink)
Member
 
warlord9159's Avatar
 
Join Date: Jun 2009
Location: Some where in KY.
Posts: 3,741
Likes Received: 31
Thanks: 1,058
Thanked 1,359 Times in 855 Posts
Default

wow and I was just thanking about this.
tooooooooo coooooooool

you the man. ty
warlord9159 is offline   Reply With Quote
Old 04/06/2011, 06:09 AM   #4 (permalink)
Member
 
Join Date: Oct 2009
Posts: 190
Likes Received: 27
Thanks: 38
Thanked 63 Times in 23 Posts
Default

What's about Celsius?
Thanks.
Pilotovef is offline   Reply With Quote
Old 04/06/2011, 06:54 AM   #5 (permalink)
Member
 
Join Date: Mar 2008
Location: In my apartment at school. :D
Posts: 924
Likes Received: 31
Thanks: 174
Thanked 148 Times in 83 Posts
Default

This is... AWESOME. This is exactly what I've been wanting, I've been using weathericon, but I feel I can replace it with this. Hopefully this works well.

Although, I have the date replacing the provider string, I assume I'm going to have to uninstall that ya?

Edit:

I just saw you have to edit a file to change the zip, I travel a bit so I'd like to see an easier way. Maybe a GUI frontend or something so it's easy. Or GPS location. But so far, this is awesome. Thanks for your awesome work.
__________________
Sprint Love

Last edited by tooearly; 04/06/2011 at 07:25 AM.
tooearly is offline   Reply With Quote
Old 04/06/2011, 08:45 AM   #6 (permalink)
Member
 
Join Date: Sep 2010
Posts: 58
Likes Received: 0
Thanks: 61
Thanked 6 Times in 5 Posts
Default

very nice patch ...thanks...... could you update it to make it easier to intall ?
sunsealeo is offline   Reply With Quote
Old 04/06/2011, 09:21 AM   #7 (permalink)
Member
 
Join Date: Mar 2008
Location: In my apartment at school. :D
Posts: 924
Likes Received: 31
Thanks: 174
Thanked 148 Times in 83 Posts
Default

Quote:
Originally Posted by Garrett92C View Post

I'll make this much easier in the near future.
He will eventually.
__________________
Sprint Love
tooearly is offline   Reply With Quote
Old 04/06/2011, 09:37 AM   #8 (permalink)
Member
 
Join Date: Nov 2010
Posts: 3
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Pilotovef View Post
What's about Celsius?
Thanks.
I think adding "&u=c" to line 17, eg :

"+var url = "http://weather.yahooapis.com/forecastrss?w=12772646&u=c";"

Should work.

I'm trying this right now
Fiaxhs is offline   Reply With Quote
Old 04/06/2011, 09:42 AM   #9 (permalink)
Member
 
Join Date: Jul 2009
Location: UK
Posts: 201
Likes Received: 0
Thanks: 50
Thanked 54 Times in 33 Posts
Default

Quote:
Originally Posted by Pilotovef View Post
What's about Celsius?
Thanks.
Theoretically if you append the url with &u=c

Code:
http://weather.yahooapis.com/forecastrss?w=27191985&u=c
and change

Code:
+    Mojo.Dom.get('weather-temp').innerHTML = objectTemp + "°F";
to

Code:
+    Mojo.Dom.get('weather-temp').innerHTML = objectTemp + "°C";
It should work ..
__________________
Like Palm, idiots not so much? Visit MockTheAfflicted



twitter: @benfysh
Benuk is offline   Reply With Quote
Thanked By: tklr
Old 04/06/2011, 09:42 AM   #10 (permalink)
Homebrew Developer

 
Join Date: Dec 2010
Location: Washington, DC
Posts: 46
Likes Received: 25
Thanks: 18
Thanked 55 Times in 14 Posts
Default

that is brilliant!
pigsflew is offline   Reply With Quote
Old 04/06/2011, 09:46 AM   #11 (permalink)
Member
 
Join Date: Mar 2008
Location: In my apartment at school. :D
Posts: 924
Likes Received: 31
Thanks: 174
Thanked 148 Times in 83 Posts
Default

I'm not a super programmer or anything, but (for anyone who has looked at his patch) isn't there a way to use case instead of if/elseifs ?
__________________
Sprint Love
tooearly is offline   Reply With Quote
Old 04/06/2011, 09:49 AM   #12 (permalink)
Forum Moderator
 
sledge007's Avatar
 
Join Date: Mar 2010
Location: Calgary Alberta
Posts: 5,067
Likes Received: 721
Thanks: 972
Thanked 890 Times in 647 Posts
Default

High 5 brother!! That is pretty cool. I'm going to put this on right away

That was fairly simple, I haven't messed around with Notepad++ before, but it wasn't that hard. Just out of curiousity, what are those 2 lines (18 & 19) for?
__________________
Sent from my TouchPad, laying in my hammock.

Last edited by sledge007; 04/06/2011 at 10:06 AM.
sledge007 is offline   Reply With Quote
Old 04/06/2011, 09:59 AM   #13 (permalink)
Member
 
Jakeeeee's Avatar
 
Join Date: Jan 2010
Location: Clemson, SC
Posts: 1,412
Likes Received: 73
Thanks: 123
Thanked 192 Times in 134 Posts
Default

Does it poll even if the phones data/WiFi is turned off?
__________________
My apps: WebOS World Services | Apollo Radio (Pandora Client) | Skyrim database(coming later..?)

Twitter: @jakemorrison24
Jakeeeee is offline   Reply With Quote
Old 04/06/2011, 10:09 AM   #14 (permalink)
Member
 
Join Date: Oct 2009
Location: Germany
Posts: 87
Likes Received: 2
Thanks: 31
Thanked 13 Times in 10 Posts
Default

@Garrett92C @benuk Awesome to the max!
You made my day!
T.
tklr is offline   Reply With Quote
Old 04/06/2011, 10:11 AM   #15 (permalink)
Forum Moderator
 
sledge007's Avatar
 
Join Date: Mar 2010
Location: Calgary Alberta
Posts: 5,067
Likes Received: 721
Thanks: 972
Thanked 890 Times in 647 Posts
Default

I enabled show hidden files on my control panel and don't see the ".scrims" folder in /media/internal.....How do I make that happen?
__________________
Sent from my TouchPad, laying in my hammock.
sledge007 is offline   Reply With Quote
Old 04/06/2011, 10:14 AM   #16 (permalink)
Member
 
Join Date: Nov 2009
Posts: 292
Likes Received: 0
Thanks: 46
Thanked 14 Times in 13 Posts
Default

Awesome!!!! I've been using the weather icon app. This will allow me to place another app in the quick launch bar. Once this gets updated to locate my GPS, i'm on it! I'll be keeping a close eye on this thread.

Thanks again Garrett, you are off tha chain!!!!
kristoffer10 is offline   Reply With Quote
Old 04/06/2011, 10:14 AM   #17 (permalink)
Member
 
Join Date: Oct 2009
Location: Germany
Posts: 87
Likes Received: 2
Thanks: 31
Thanked 13 Times in 10 Posts
Default

@sledge007

If the folder´s not already there you´ve to create it first.
tklr is offline   Reply With Quote
Old 04/06/2011, 10:18 AM   #18 (permalink)
Forum Moderator
 
sledge007's Avatar
 
Join Date: Mar 2010
Location: Calgary Alberta
Posts: 5,067
Likes Received: 721
Thanks: 972
Thanked 890 Times in 647 Posts
Default

Quote:
Originally Posted by tklr View Post
@sledge007

If the folder´s not already there you´ve to create it first.
I tried to create it as ".scrims" but it says "You must type a file name". (When I put the . in front) I also tried to just name it "scrims" and then set the properties to hidden, but that didn't work either.
__________________
Sent from my TouchPad, laying in my hammock.
sledge007 is offline   Reply With Quote
Old 04/06/2011, 10:21 AM   #19 (permalink)
Member
 
Join Date: Oct 2009
Location: Germany
Posts: 87
Likes Received: 2
Thanks: 31
Thanked 13 Times in 10 Posts
Default

@sledge007 In case you´re using Internalz you could simply create such a directory with it.
tklr is offline   Reply With Quote
Thanked By: sledge007
Old 04/06/2011, 10:24 AM   #20 (permalink)
Member
 
Join Date: Jul 2009
Location: San Jose, CA
Posts: 68
Likes Received: 0
Thanks: 7
Thanked 15 Times in 12 Posts
Default

Quote:
Originally Posted by sledge007 View Post
I tried to create it as ".scrims" but it says "You must type a file name". (When I put the . in front) I also tried to just name it "scrims" and then set the properties to hidden, but that didn't work either.
I assume you're using Windows. Name it as .scrims. (period in front and at end) and it will work. Windows will think there's no extension and "helpfully" remove the last period.
art_sjc is offline   Reply With Quote
Thanked By: sledge007
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0