View unanswered posts | View active topics It is currently Wed May 22, 2013 3:42 am



Reply to topic  [ 8 posts ] 
 Weather Icons 
Author Message

Joined: Nov 26, 2009
Posts: 924
Location: Kalispell, MT
Post Weather Icons
Here's some weather icons I put together if anyone might have a use for them.

I attached a zip file with the icons but nothing shows...how best to do that?

Carl


Sun Aug 19, 2012 3:02 pm
Profile

Joined: Nov 26, 2009
Posts: 924
Location: Kalispell, MT
Post Re: Weather Icons
Hmm, so how do I post a zip file? Not seeing my attachment.

I've attached a jpg that at least shows the icons. They have transparent backgrounds that can
be used on any background.

Carl


Attachments:
Weathe Conditions All.jpg
Weathe Conditions All.jpg [ 155.82 KiB | Viewed 854 times ]
Sun Aug 19, 2012 3:33 pm
Profile
Site Admin
User avatar

Joined: Mar 19, 2008
Posts: 6655
Location: Austin, Texas
Post Re: Weather Icons
We only allow image files to be attached to forum posts for security reasons. If you want to share the icon set I'd suggest zipping them up and posting them in the User Contributon Library. It's where people go to look for that sort of thing.

_________________
Jay (Indigo Support)
Image


Mon Aug 20, 2012 9:45 am
Profile WWW
User avatar

Joined: May 10, 2012
Posts: 205
Location: Newcastle Upon Tyne, England
Post Re: Weather Icons
Nice icons, i think i'll be using these on my control pages!

_________________
Is it bad every time I mention my HA hobby to people they always think of this? http://www.youtube.com/watch?v=XaNuB52_Irc


Wed Aug 29, 2012 6:24 am
Profile

Joined: Mar 08, 2012
Posts: 115
Post Re: Weather Icons
ckeyes888 wrote:Here's some weather icons I put together if anyone might have a use for them.

Carl


Carl,
Thanks for the contribution!
Your weather png's would be a great fit for the style of my fledgling CP. Do you have any hints/tips/tricks on how to integrate them with the NOAA v1.0.1 plugin in Indigo 6 b3?

Thanks!
~Lou


Sat Jan 19, 2013 1:06 pm
Profile

Joined: Nov 26, 2009
Posts: 924
Location: Kalispell, MT
Post Re: Weather Icons
I don't use the NOAA plugin, just the original NOAA script, but I just have variables
setup that correspond and adapt to whatever the Weather_Condition variable
changes to and using the attached script force it to match my image files.

Code: Select all

tell application "IndigoServer"
   set theText to value of variable "Weather_Condition"
   
   if theText contains "Overcast" then
      set the value of variable "Weather_Condition" to "Overcast"
   else if theText contains "Rain" and theText contains "Light" then
      set the value of variable "Weather_Condition" to "Rain_Light"
   else if theText contains "Rain" and theText contains "Freezing" then
      set the value of variable "Weather_Condition" to "Sleet"
   else if theText contains "Rain" then
      set the value of variable "Weather_Condition" to "Rain"
   else if theText contains "Scattered" and theText contains "Showers" then
      set the value of variable "Weather_Condition" to "Scattered_Showers"
   else if theText contains "Sleet" then
      set the value of variable "Weather_Condition" to "Sleet"
   else if theText contains "Snow" and theText contains "Blowing" then
      set the value of variable "Weather_Condition" to "Snow_Blowing"
   else if theText contains "Snow" and theText contains "Fog" then
      set the value of variable "Weather_Condition" to "Snow_Fog"
   else if theText contains "Snow" then
      set the value of variable "Weather_Condition" to "Snow"
   else if theText contains "Stormy" then
      set the value of variable "Weather_Condition" to "Stormy"
   else if theText contains "Thunderstorms" then
      set the value of variable "Weather_Condition" to "Stormy"
   else if theText contains "Thunderstorm" then
      set the value of variable "Weather_Condition" to "Stormy"
   else if theText contains "Hail" then
      set the value of variable "Weather_Condition" to "Hail"
   else if theText contains "Unknown Precip" then
      set the value of variable "Weather_Condition" to "Overcast"
   else if theText contains "Squalls" then
      set the value of variable "Weather_Condition" to "Rain"
      
   end if
end tell


I have a few variations of the script that will run depending on the time of day. For instance
the transition from day to night would change the variable from "Fair" to "Moon_Fair",
or whatever the daytime variable was, to switch the image from a sun to a moon version.

Hope this helps. I see some issues on the original files I posted I didn't notice before...mainly
the "nubs" on the moon images. I'll fix these and repost them.

Carl


Sat Jan 19, 2013 2:05 pm
Profile

Joined: Mar 08, 2012
Posts: 115
Post Re: Weather Icons
Got it!

Looks like I will need to add a few items since right now there my area is Mostly Cloudy according to the NOAA script and your example code does not have Cloudy_Mostly, Cloudy_Partly, etc. How many variations do you have?

I am thinking I would just need two right? One each for isDaylight = true/false ?

Thanks again,
~Lou

EDIT: P.S. Where do I find all of the possible NOAA "Weather_Condition" value possibilities so I know what I need to modify in the script? I.E. Does NOAA report Mist or Misty?


Sat Jan 19, 2013 2:58 pm
Profile

Joined: Nov 26, 2009
Posts: 924
Location: Kalispell, MT
Post Re: Weather Icons
There should be a mostly cloudy, or a cloudy mostly in there, it's a common condition up here in MT. If not let me know and I'll repost the icons.

There's really no telling what NOAA may insert into the weather condition variable,
hence my attempt to convert what is there to something I have an image for.

Carl


Sat Jan 19, 2013 8:12 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 8 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.   Template designed by STSoftware.