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
If you need to run this webtask, you need to setup your color changer Applets in IFTTT with Philip Hue service.
wt cron create --schedule "*/1 * * * *" ./index.js