This a script I wrote some time ago for a demonstration at an IoT workshop. The idea was to use a commercial IoT product such as the Hue (which had been just released during that time) and combine it with an existing service on the Internet (like Twitter).
In this case counting Twitter hashtags is visualised through the Hue: When a new hashtag (e.g., #iot) is detected the lamp will blink once and an internal counter is increased. When a defined threshold is reached the lamp color will change to blue.
You don’t need to install any library to use the script and control the Hue. The Hue REST API is used by sending the appropriate requests.
You can find the script on github: https://github.com/hdoukas/TweetHue