This app is based on the Color Changing Smart Weather lamp by Jim Kohlenberger (@jkohlen).
ColorCast is a weather app that displays the forecast with colors using your Hue or LIFX lights. You can specify which types of wether conditions to display and assign specific colors to let you know when it's going to rain, snow, sleet, when it's going to be cloudy, windy, cold, hot and/or humid. You can define the parameters for each weather type and ColorCast will let you know if any of those conditions will occur during the forecast period. ColorCast will also flash the lights if you choose to be notified of weather alerts. You can choose the forecast range so you can be notified of the current conditions or, if you're heading out to work in the morning, the forecast for the next 8 hours, or any number of hours up to the next 24. You'll know at a glance if you should bring a sweater, an umbrella, etc. You just need a free api key from forecast.io (https://developer.forecast.io/)
- Choose which colors you want to use for each weather event or disable any unwanted weather events.
- Specify the "cold" temperature(actual or apparent), the "hot" temperature(actual or apparent), the wind speed, the cloud cover %, the humidity to trigger weather events
- Select the number of hours that you want to look ahead. This means you can install a version of the app for workdays that will check the weather for the next 8 hours and let you know if, during those 8 hours, it is going to be cold, hot, windy, rainy or snowy. You can install another instance of the app for the evening, that only looks at the next 2 hours. You can select to look ahead from 1-24 hours or just check the current conditions
- If multiple weather conditions are matched, the lamp will cycle through all the applicable weather colors. For instance, if it's going to be cold, windy and snowing, the light will turn on and change from blue to yellow to pink.
- In the event of a weather alert, the light will work as it always does, but all applicable colors will flash
- The selection of a motion sensor is optional. The app can be controlled by a button click alone
- Select which type of weather alerts you want to see (Advisory, Watch, and/or Warning)
- The lights can remember their last settings and revert to those settings after the weather is done displaying. You can disable this feature to have the lights turn off when the display is complete.
- The forecast is updated automatically every 15 minutes and stored locally instead of being retrieved each time the lights are triggered to help reduce any delays.
What's New 2016-02-21
- Added support for contact sensors. Now you can trigger the display when a door is opened.
- Added the ability to specify precipitation intensity for rain.
- Added the ability to specify accumulation for snow.
- Added "Always On" to display the forecast continuously while the app is active.*
- Redesigned the interface to make it more user friendly and easier to use.
- Added option to enable/disable the app.
- Added support for LIFX bulbs.
- Added the option to disable the "All Clear" alert.
- Adjusted the color definition for "Yellow"
- Added an "Under the Hood" section for additional app settings and debugging.
* "Always On" has some significant limitations that are worth mentioning. Due to scheduling and app execution time limits, when multiple weather conditions exist, the lights will cycle through all colors, leaving each one on for 2 minutes. The scheduling limit is supposed to be one minute, which I still think is too long, but at 1 minute I noticed a high rate of schedule failures. These limitation also prevent flashing the lights for weather alerts. Trying to flash the lights for more then 20 seconds would exceed the maximum app execution time. Because of this, flashing lights for weather alerts are disabled when "Always on" is being used. If an alternative becomes available, I'll implement it.
- Add Pollen indicator to the list of available triggers. I've been
looking for a pollen api to do this with no luck so far.
To install this SmartApp:
- Go to http://www.smartthings.com/developers/ and create an account
- After your account is created go to "My SmartApps" then click "+ New SmartApp"
- Select the "From Code" tab
- Copy the code from https://github.com/jdiben/Smart-Weather-Lamp/blob/master/Smart-Weather-Lamp.groovy and paste it into that page
- Click "Create"
- Click "Publish" then Click "For Me"
- When that's complete just go to the SmartThings app and add a new app
- Swipe the top section over to "My Apps" and tap the app you just created.
- Follow the onscreen setup and you're done.
Let me know if you have any suggestions or comments. I'd love to hear your feedback