Weather Icons

This is an archive of older posts. You can't add topics - rather, create a new topic in one of the forums above. You can still reply to topics in this forum though we encourage you to start a new topic in the forums above instead.
ckeyes888
Posts: 2431
Joined: Thu Nov 26, 2009 2:41 pm
Location: Kalispell, MT

Weather Icons

Post by ckeyes888 »

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
ckeyes888
Posts: 2431
Joined: Thu Nov 26, 2009 2:41 pm
Location: Kalispell, MT

Re: Weather Icons

Post by ckeyes888 »

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 13859 times
User avatar
jay (support)
Site Admin
Posts: 18316
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Weather Icons

Post by jay (support) »

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
User avatar
durosity
Posts: 4381
Joined: Thu May 10, 2012 3:21 pm
Location: Newcastle Upon Tyne, Ye Ol' England.

Re: Weather Icons

Post by durosity »

Nice icons, i think i'll be using these on my control pages!
Computer says no.
DU Lou
Posts: 279
Joined: Thu Mar 08, 2012 7:18 pm
Location: Florida

Re: Weather Icons

Post by DU Lou »

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
ckeyes888
Posts: 2431
Joined: Thu Nov 26, 2009 2:41 pm
Location: Kalispell, MT

Re: Weather Icons

Post by ckeyes888 »

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
DU Lou
Posts: 279
Joined: Thu Mar 08, 2012 7:18 pm
Location: Florida

Re: Weather Icons

Post by DU Lou »

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?
ckeyes888
Posts: 2431
Joined: Thu Nov 26, 2009 2:41 pm
Location: Kalispell, MT

Re: Weather Icons

Post by ckeyes888 »

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
Post Reply

Return to “Archived Posts”