I'm currently working to on project my workplace. I'm trying to make an ambient color cube that will sit on my desk and change from green to red through the spectrum as we get more emails from customers, say 1 email would be bright green, 500 would be yellow and 1000 or more would be red. I would like it to change fluidly through the spectrum as the number gets higher.
I got API access from the company we use to receive customer emails and can query the current number of unresolved cases we have and write it to a text file.
Basically I'm looking for a solution for getting the Arduino to read and translate that number into a color to output to a piranha LED. I'm not sure the logistics of getting an Arduino to do this. Do I need to write a Python script that pushes that number to the Arduino, and an Arduino script that translates the number to a color and outputs that color? Or can the Arduino go and and grab the data and translate it?
Any help would be much appreciated.