Skip to content

Changing the color of Philips Hue lights depending on the exchange rate

Notifications You must be signed in to change notification settings

sydboraa/forex-hue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Philips Hue Color Changer According to Exchange Rate

This project is about changing the color of Philips Hue lights depending on the exchange rate of TRY to USD increase/decrease. If the latest rate is bigger or equal than the old one, lights color will be green. If not lights color will be red.

I used IFTTT to trigger Philips Hue lights with WebHooks. Cron job triggers my webtask every minute. New rate is received via API call and is stored in context storage. Webtask compares the difference between rates and sends a request to WebHook with color parameter in IFTTT. According to the color parameter lights will change their color to red or green.

Below you can find the whole time lapsed video for the Hue lights.

Philips Hue Exchange Rate WebTask Demo

Requirements

If you need to run this webtask, you need to setup your color changer Applets in IFTTT with Philip Hue service.

How to run

wt cron create --schedule "*/1 * * * *" ./index.js

About

Changing the color of Philips Hue lights depending on the exchange rate

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published