|Figure 1: Shine a light on Trump or Clinton|
|Figure 3: Sinfonier Topology (data extraction pipeline) designed to capture real-time data from Twitter.|
We then also used real-time capabilities using Elastic Search and Kibana. Apart from visualizing the tweets in real-time in a dashboard (see Figure 4), we wanted to try out something more fun so we also got some Philips Hue lamps involved.
|Figure 4: Real-time tweets on Clinton (blue) vs. Trump (red). Trump tweets almost double those of Clinton. Trump is slightly more active in replying and both re-tweet equally all tweets they are mentioned in.|
In such cases, using dynamic lights could be a good alternative to convey the main insights of dashboards. For instance, in a call center, the light intensity and color could change according to the number and type of calls (complaints, information, products, etc.) from customers. By connecting lamps to the Internet, we enter the world of the Internet of Things. Hue lamps can be instructed to react to phenomena on the Internet using the “If This Then That” framework. Using IFTTT, you can use the lamps to turn the light on when it is raining in Amsterdam, or when your plane lands safely in another city around the world.
tweets related to common words used to refer to Hillary Clinton
(e.g. Hillary, Clinton, HillaryClinton) or Donald Trump (e.g. Donald, Trump,
DonaldTrump). The results of which are displayed in Figure 5:
Figure 5: Twitter shows much more activityrelated with Donald Trump but tweet count include both positive andnegative references so direct interpretation could be misleading.
Figure 6. The second query reveals a much more balanced pattern with no clear winner.
Additionally, we set rules for the lights as follows:
- Lamp 1 is connected to a twitter feed on query 1 (Figure 5), blinking the color of the candidate who had more tweets in the last 2 seconds and showing a stable color of the candidate who had more tweets in the last hour.
- Lamp 2 has the same behaviour of Lamp 1 but this time it is connected to the second query stream (figure 6).