So to Vote Ninja I’ve bought a Scroll pHAT, a Blinkt stick and a Mini Black HAT Hack3r.
So my idea is to use the Scroll pHAT to display tweets from @QuakesToday (quakes magnitude 1.5+).
I also want to use the Blinkt stick to indicate two things (a tweet alert and earthquake intensity).
I have a few questions.
- Can I use the Scroll pHAT and the Blinkt at the same time in one python script? (I suspect I can but just need conformation)
- I’ve seen a .py script where you can look for a specific #tag, can you do something similar for a specific user?
- The format of the tweets puts a number x.y at the start, is it possible to extract this number and display it on the Blinkt stick?
as the Blinkt stick only has 8 LEDs on it this is my idea on how it would display earthquake intensity (using resistor colour codes):
(any hints for rgb codes would be helpfull)
3.0 dark, dark, orange, orange, dark, dark
3.1 dark red, dark, orange, orange, dark, dark red (‘brown’)
3.2 red, dark, orange, orange, dark, red
3.3 dark, orange, orange, orange, orange, dark
3.4 yellow, dark, orange, orange, dark, yellow
3.5 dark, green, orange, orange, green, dark
3.6 blue, dark, orange, orange, dark, blue
3.7 dark, violet, orange, orange, violet, dark (‘purple’)
3.8 grey, dark, orange, orange, dark, grey (30 - 50% brightness)
3.9 dark, white, orange, orange, white, dark
4.0 dark, dark, yellow, yellow, dark, dark
I reckon the I can code the numbers as rgb values eg 9 = 255,255,255 (or something along those lines).
The reason for alternating the position of the odd and even decimals is for ease of reading. ie outside colour = even decimal
Right its time for bed (I’ve had me grog) but I will be adding more later …
e.g the incoming tweet alert is a different colour when the magnitude exceeds a certain level.