Monday 27 March 2017

Visualising Temperature data in a more inspiring way without hitting the wall


See your temperature reading as a random wool wall or a wool spire(the spire code is taken from Craig Richardson's Book which you can buy here:
https://www.amazon.co.uk/Learn-Program-Minecraft-Craig-Richardson/dp/1593276702


Here is the code for the wall and spire to work on both Sense hat and the Raspian emulator. Enjoy!


Sensehat temperature controlled spire:
https://raw.githubusercontent.com/ncscomputing/Hackpack/master/SenseHatSpireMCPI.py

Sensehat temperature controlled wall:
https://raw.githubusercontent.com/ncscomputing/Hackpack/master/SenseHatMCPIWALLV1.py

Sensehat emulator controlled wall:
https://raw.githubusercontent.com/ncscomputing/Hackpack/Volume-5/sense%20emu%20wall.py

Sense hat emulator controlled spire:
https://github.com/ncscomputing/Hackpack/blob/master/SenseHatSpireMCPI.py

Below you can see what they do using the emulator:

Sense hat emulator temperature controlled random coloured wall: 25 x 25 blocks:  

Sense hat emulator temperature controlled random coloured wall: 6 x 6 blocks:
Sense hat emulator temperature controlled random coloured Spire: 6 blocks:


Sense hat emulator temperature controlled random coloured Spire: 16 blocks:


No comments:

Post a Comment