Magic Mirror Raspberry Pi Sense Hat Module
Please support open source coders ! It's really appreciated in this dark moments :p
Please check Wiki first for any questions, or error you experience.
Run these commands at your Magic Mirror root directory.
cd ~/MagicMirror/modules
git clone https://github.com/framboise-pi/MMM-MySenseHat.git
This command with MMM-MySenseHat folder (this will install dependencies)
npm install
edit your config.js file from MagicMirror config folder
////////////////////// // MY SENSE HAT ////////////////////// modules: [ { disabled: false, module: "MMM-MySenseHat", position: "middle_center", config: { read_interval: 2000, display_start_LED: true, use_SenseHat_LED: true, show_all_sensors: false, mode_monster: true, mode_clock: true, mode_pixel1: true, mode_pixelv: true, mode_temp: true, cpu_load: true, ram_used: true, fontsize: "normal"//small | normal | large | xlarge } } ]
To update MMM-MySenseHat, go to the MMM-MySenseHat folder:
- cd ~/MagicMirror/modules/MMM-MySenseHat
- git pull
- pm2 restart mm
I didn't find any sensehat module for the wonderful MagicMirror so I'm trying to make one. Using java librairies. I started a MagicMirror in python in parallel : MPMM (My Pi Magic Mirror), to use only python with sensehat and else, with the aim of making it working on a raspberry zero (Cause it don't work fine PiZero/MagicMirror).
At start of MagicMirror a message will display (by default : "MAGIC")
- check online : github version of this module. Displayed : current version | installed | info "UP TO DATE" or "UPDATE AVAILABLE" or "DEV VERSION"
- 8x8 pixels little monsters (10 for the moment) -- color is random each time
- 8x8 clock (hours and minutes colors are random)
- 8x8 random PixelArt -- every pixel is random
- 8x8 random PixelArt -- vertical symmetry left/right
- temperature sensor value with 2 random colors scale
- cpu average load - refreshed red dot line
- ram usage - refreshed green dot line
Sensors values displayed on a Magic Mirror module
- humidity, temp, pression
- or all 6 sensors
- 8x8 pixels animations
- all LEDs on a color base on SenseHat temperature sensor
- Use of joystick and sensors to interact with other modules. Or else.
- Notifications - icons (gmail etc.)
- cpu temp compared to 64°C ?
- cpu speed compared to max ?
Started in May 2020.
MMM-MySenseHat is published under the GNU Affero 3.0 because I believe in open development. It comes with both rights and obligations. Whether you use this for your open or closed-source product, you must keep it open, and you must provide your compatible source code to end users upon request. The most straightforward way to comply with the license is to make a fork of this project on Github, perform your modifications, and direct users to your modified fork.
While we can't prevent the use of this code in products that are closed source or crippled by a patent, we would prefer that you choose another code or, better yet, make your own.
My MagicMirror has been made with a display undersized, so it leaves areas to place the SenseHat in a corner, for exemple.
Placed behind the mirror, it could be used to only add a colored light between the mirror and the wall, and with the MagicMirror module to display sensors info.
But I'm makin this module with the idea of a SenseHat in a front corner of the mirror.VNC screenshot - Magic Mirror Module display
VNC screenshot - Magic Mirror Module display v0.0.3 and option all sensors off
clock example 1
clock example 2
clock example 3
clock example 4
sensor temp example 1
pixelart mirror mode example 1
pixelart mirror mode example 2
pixelart mirror mode example 3
pixelart mirror mode example 4
pixelart mirror mode example 5
pixelart mirror mode example 6
pixelart mirror mode example 7
pixelart monster mode example 1
pixelart monster mode example 2
pixelart monster mode example 3
pixelart monster mode example 4
pixelart monster mode example 5
pixelart monster mode example 6
pixelart monster mode example 7
pixelart monster mode example 8
cpu dotline mode example 1
cpu dotline mode example 2
pixelart random mode example 1
pixelart random mode example 2
pixelart random mode example 3
pixelart random mode example 4
pixelart random mode example 5
pixelart random mode example 6
pixelart random mode example 7
pixelart random mode example 8
Hello World ! - module at 'middle_center' position
This is maintained (more precisely, its in dev. Some functionnalities are not yet implemented and some will be improved in future)
- share your monster in pixel art, to add it in next version
To all Magic Mirror community and to MichMich. This is how all mirrors should work in 2020.