Weather Icons

Posted on
Sun Aug 19, 2012 3:02 pm
ckeyes888 offline
Posts: 2043
Joined: Nov 26, 2009
Location: Kalispell, MT

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

Posted on
Sun Aug 19, 2012 3:33 pm
ckeyes888 offline
Posts: 2043
Joined: Nov 26, 2009
Location: Kalispell, MT

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 6186 times

Posted on
Mon Aug 20, 2012 9:45 am
jay (support) offline
Site Admin
User avatar
Posts: 14894
Joined: Mar 19, 2008
Location: Austin, Texas

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)
Twitter | Facebook | LinkedIn

Posted on
Wed Aug 29, 2012 6:24 am
durosity offline
User avatar
Posts: 3596
Joined: May 10, 2012
Location: Newcastle Upon Tyne, Ye Ol' England.

Re: Weather Icons

Nice icons, i think i'll be using these on my control pages!

Computer says no.

Posted on
Sat Jan 19, 2013 1:06 pm
DU Lou offline
Posts: 260
Joined: Mar 08, 2012
Location: Florida

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

Posted on
Sat Jan 19, 2013 2:05 pm
ckeyes888 offline
Posts: 2043
Joined: Nov 26, 2009
Location: Kalispell, MT

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

Posted on
Sat Jan 19, 2013 2:58 pm
DU Lou offline
Posts: 260
Joined: Mar 08, 2012
Location: Florida

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?

Posted on
Sat Jan 19, 2013 8:12 pm
ckeyes888 offline
Posts: 2043
Joined: Nov 26, 2009
Location: Kalispell, MT

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

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest