A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
  • Having trouble with screen on and off? Here are some tips that could help

    14
    2 Votes
    14 Posts
    1k Views
    L

    @sdetweil Yes, I did! I tried switching to x-11 and adjusting all parameters, but ended up switching back to wayland which works fine with a scheduled shut-down in the evening. Thank you once again for taking the time to lead me through this!

  • UPDATE: Replaced my PIR-Sensor with a Doppler Microwave Sensor.

    103
    8 Votes
    103 Posts
    41k Views
    L

    @uros76 ty ill maybe try to find another microwave sensor. pir i find really ugly try to stay away from them. really sad i didnt get the microwave sensor working. thanks for the help

  • Can somebody verify that I'm on the right path for a 24x36 Magic Mirror?

    3
    0 Votes
    3 Posts
    253 Views
    M

    @poopflavoredcake

    do you NEED a ‘mirror’ in the kitchen?

    One more vote.

    32 Inch Monitor (I read that VA panels have better black levels so decided for this one): $271

    Wow, the monitor itself looks really good. But in my opinion, it’s somehow overkill. Generally, MM and your Pi don’t need such a high spec: 165Hz, 1ms, … MM is not game machine or Netflix player.
    And if you really assemble Spymirror on your screen, you may lose some of the benefits of those high-class monitors.

    A bigger screen would be heavier. It needs more robust frames and mounting methods, and thermal control must also be considered for that kind of monster.

    Even though RPI 4 can handle up to 4K60p (3840x2160), It would be a burden for RPI4. If you are considering playing clips on your MM, you may need a stronger device.

    So, what is your purpose? Your types of equipment would depend on your needs.

  • MMM-ImagePhotos HELP

    2
    0 Votes
    2 Posts
    193 Views
    S

    @ytg454 I don’t understand

    the module contains these files and folders
    1000026254.jpg

    uploads is right there. so that folder will be in the module folder after git clone

    if you want to upload pics from your phone use my upload pics module
    https://github.com/sdetweil/uploadPics

    I use the ImagesPhotos module for my MagicMirror background, and have linked the uploads folder to a mount from my NAS/file server

  • can anyone help me build my smart mirror?

    2
    0 Votes
    2 Posts
    1k Views
    S

    @karimgommari what do you need?

  • No sound with dac hat stopped

    1
    0 Votes
    1 Posts
    122 Views
    V

    No sound from dac but still get sound from hdmi I may do away with dac just hdmi if can’t fix it .
    I had sound I put some modules on then no sound
    Add shopping list its show up but just say loading but never loads , add play music usb stick add pir sensor
    Not tested yet. I may remove them one at time to see if changes anything.

    Thanks any suggestions please

  • How to show city title above clock display in default clock module?

    4
    0 Votes
    4 Posts
    559 Views
    S

    I did it with both date and city.
    {
    module: “clock”,
    position: “top_left”, // This can be any of the regions.
    config: {
    dateFormat: “dddd, LL [at New York City]”,
    showDate: true
    }
    }

  • font size

    4
    0 Votes
    4 Posts
    732 Views
    P

    @sdetweil thanks for sharing this link , this helps me a lot

  • Changing a TV Splash Screen

    1
    5 Votes
    1 Posts
    1k Views
    L

    bf63b126-5665-4eb8-a071-213c2b82b82c-image.png

    At the top of my Magic Mirror is a motion sensor that the Pi uses to turn on the TV when someone is in the room. This had the unfortunate side-effect of greeting me with a manufacturers sideways logo every morning, which was a bit annoying. This is a write-up on how I changed a TV’s splash screen from the this logo (picture #1) to something a little more personal (picture #2).

    Disclaimer: these exact steps may not work on your MM and may very well brick your display, I would strongly suggest not attempting this unless: you’re happy to fork out for a new display, and you know what you’re doing

    This write-up draws heavily on a post by Keegan Ryan titled “Spectre on a Television”. (https://web.archive.org/web/20190927050547/https://www.nccgroup.trust/us/about-us/newsroom-and-events/blog/2018/december/spectre-on-a-television/).

    Tools:

    Hot Air Rework Station + Soldering Iron Screwdriver Solder Paste + Wire SOP8 to DIP8 Socket Adapter BusPirate + USB Mini B Logic Analyser Wires Linux PC / Laptop A new splash screen! I used GIMP to make the retro text on mine :)

    Step 1: Hardware Reverse “Engineering”

    Before poking around the back of the TV, I unplugged it from the wall socket. I took great care to stay well clear of the power circuitry at all times, as mains power circuits can be dangerous even when unplugged.

    After taking the back of the TV off it was pretty easy to identify the power/control sections (below). I believe these are generally well separated and the power circuitry is usually directly connected to the TV power cable but results may vary.

    0f70194a-e4e8-460d-8d72-aa6977990cf6-image.png

    Looking a little closer at the controller board, I found an 8-pin chip that is a common form factor for SPI flash memory chips.

    983bb2bb-99a3-4af6-ad91-00b4c190d461-image.png

    The markings on the back of the chip (winbond W25Q80BV - determined with great difficulty) confirm that it is a 3.3V Winbond Serial Peripheral Interface chip. Perfect for holding juicy data like splash screen images. From the datasheet the pinout is as follows:

    c1956e4d-55b5-4763-813f-66a5039f0d00-image.png

    The pins I care most about are CLK (clock), DO (data out - MISO) and DI (data in - MOSI). Data in/out allows us to read/write to the chip, with the clock line dictating the transmission speed.

    I confirmed that this is indeed an SPI chip with a logic analyser to read the first few seconds of the chip activity on TV boot (using sigrok/PulseView to capture and view).

    d0d73a65-2f98-4ca3-8a56-06ce805ccca1-image.png

    So now “knowing” where the splash screen likely is, it was time to grab the chip off and try to replace it. Using a Hot Air rework station and some tweezers, I heated the solder connections sufficiently for them to melt, allowing me to pluck the SPI chip off the board.

    Step 2: Dumping the Flash

    Using a BusPirate and socket adapter, I dumped the flash from the SPI chip to my laptop for analysis. A couple of notes on this process:

    Make sure to update the BusPirate to the latest firmware. Follow instructions at: http://dangerousprototypes.com/docs/Pirate-Loader_console_upgrade_application_(GNU/Linux,_Mac,_Windows) I didn’t have to update the bootloader, only the firmware I was having a lot of difficulty trying to dump the flash using an Ubuntu Virtual Machine - I think this is a common issue. My workaround was to use a laptop that has Ubuntu installed.

    8c323943-8ba8-42a9-93d3-ac456e7ee135-image.png

    Using the SOP8 to DIP8 socket adapter, I had full access to the Winbond chips pins. The wiring is as follows (note this may be different for the /WP and /HOLD pins depending on the particular SPI chip. Setting these logic level HIGH 3V3 allowed me to read/write):

    4f1dad1b-923f-4cf4-ab45-2e3f8b75ee1d-image.png

    Plugging the BusPirate USB into the laptop I then dumped the flash using flashrom:

    flashrom -V -p buspirate_spi:dev=/dev/ttyUSB0 -r flash.bin

    Note: Replace “ttyUSB0” with your device name (check /dev/ folder or use dmesg when you plug the BusPirate in) and “flash.bin” with the output filename. -V enables verbose output, which offers some comfort that the command is working as it takes a while to run.

    I now had a flash dump of the SPI chip :)

    Note: I made sure to create backups of the original flash for if (when) things went pear-shaped.

    Step 3: Analysing Flash and Replacing the Image

    To start analysing the contents of the flash dump, I used binwalk which scans the file for “magic bytes” and reports what files it has found.

    binwalk flash.bin

    After running this command, binwalk should return all files that it can find within the dump (including their location or “offset” in this file). I was fortunate enough to find a few jpegs which was a good sign. Extracting now with:

    binwalk --dd='.*' flash.bin

    7a18559d-3bdb-431e-bef8-8f0a45d40000-image.png
    Gives us a folder of extracted files with some promising images!

    fe2a4d71-f382-4a78-a836-54d21c95a9c5-image.png

    There are 4 files in the extracted folder - 3x jpegs images and 1x TIFF image data. 2 of the jpegs are thumbnails with the third being the actual full image. Binwalk helpfully outputs the location/offset of these files in the original command, so fingers crossed I can just write whatever I want over the top and it’ll be happy? Could it be that easy?

    The aim is to replace the image starting at offset 0x2759C8 with the custom splash screen. This appears to be the actual full image file, with the others being thumbnails embedded within.

    A few things to note when making your replacement TV splash screen (all of this can be done using GNU Image Manipulation Program):

    Make sure the image size matches what you are replacing (my original image was 1366 x 768 px). Confirm the orientation is correct! My Magic Mirror is portrait orientated, and so I had to rotate my replacement image 90 degrees to the right to match it. Make sure the replacement image size is less than the original image in the flash, otherwise you’ll be writing over other data which the TV likely will not be amenable to.

    Note: binwalks extracted folder reported a size of 1.5MB for each of the extracted files, which is much larger than the actual image sizes in the flash. I do not know why binwalk was incorrect (and would appreciate any thoughts on this), but by manually searching for bytes “FF D9” (jpeg EOF) I determined that the replacement splashscreen should be about 200 kb.

    After the brand new splash screen is made (I followed this tutorial to create the 80s style retro text) it’s time to start rewriting our flash. First I made a copy of the flash to write over:

    cp flash.bin flash-edited.bin

    Then, using standard Unix tools it was relatively easy to replace raw bytes of the flash binary at a specific offset. I essentially cut/pasted over the old image and crossed my fingers that the TV wouldn’t complain. Using dd:

    dd conv=notrunc if=images/new_splash_2759C8.jpeg of=flash-edited.bin bs=1 seek=$((0x2759C8))

    With “images/new_splash_2759C8.jpeg” being the new splash screen (if=input file), and “flash-edited.bin” being the file to write over. Using a block size of 1, the seek option skipped 0x2759C8 “blocks” and began writing. The $(()) operation converts this value to decimal = 2578888 for the dd command.

    Then, I used flashrom to write flash-edited.bin to the SPI chip via the BusPirate:

    flashrom -V -p buspirate_spi:dev=/dev/ttyUSB0 -w flash-edited.bin

    Time to test it out! I soldered on some jumper wires and connected the chip back to the TV.

    d31b2a3c-666e-4c7e-a625-7bab561db2df-image.png
    a35b65b2-3e06-4815-9fd3-719925191bac-image.png

    Step 4: Put my TV back together
    To make the changes permanent, I used the Hot Air Station with some solder paste to resolder the chip back in its original position.

    82690f23-7e31-4857-b5b5-e64235f45a75-image.png

    Conclusion:
    This was a fun project that exposed me to a lot of interesting topics. I hope this information helps anyone else who is trying to add a personalised touch to their MM display.

    Please comment with any feedback, suggestions or questions - cheers and thanks for reading

  • pas la bonne valeur affiché

    4
    0 Votes
    4 Posts
    624 Views
    P

    Hello why my MMM-SingleStock module works, but did not register the good value of my company
    cordially

  • MMM-CalendarExt the mirror knocks me down?

    16
    0 Votes
    16 Posts
    2k Views
    S

    @chrixbrown no. u need to look at the messages so we can figure out what to do

  • Raspberry Pi 3/Zero eInk (epaper) MagicMirror

    4
    2 Votes
    4 Posts
    5k Views
    uros76U

    @akrlfix hi. Can you share your script that updates screen? Thanks

  • MMM on Virtualbox on NUC

    2
    0 Votes
    2 Posts
    654 Views
    S

    @ernest-cichon not virtual box, but under vmware… same idea

    use the install script, see the instructions here
    https://github.com/sdetweil/MagicMirror_scripts

  • Measuring power/energy cost on a 24/7 running pi

    7
    0 Votes
    7 Posts
    2k Views
    T

    If you are looking for some code to disable the monitor or if you want the use an infrared sensor to detect when someone is in front of the mirror and only then turn it on, you can check my module https://github.com/thobach/MMM-Gestures.

  • Pi cam with night vision

    1
    0 Votes
    1 Posts
    436 Views
    P

    Hi al bought a 5MP picam with night vision yesterday to use which module would best suit this camera am thinking along the lines of face recognition with the mirror remembering a face and interacting with the individual, is this possible?

  • Install on a used Pi or Odroid

    2
    0 Votes
    2 Posts
    696 Views
    S

    @Dylantje sure, I run mm on odroid xu4.

    Use my install script

    See here
    https://github.com/sdetweil/MagicMirror_scripts

  • MM using Arduino...

    3
    0 Votes
    3 Posts
    856 Views
    S

    Arduino is for automatism not for informatic
    i dont think it is possible or it is not as simple as for the raspberry

  • How to modify layout

    2
    0 Votes
    2 Posts
    3k Views
    buzzkcB

    If you’re looking for the layout of the regions, see this page: https://forum.magicmirror.builders/topic/286/regions

    Customizing module layouts within those can be done by modifying the css/custom.css file with classes that over-ride the default ones.

  • Getting MM running on Debian 10 not on a RPi

    1
    2 Votes
    1 Posts
    3k Views
    N

    Hi Guys,

    I had a very specific use case where I wanted to use Debian (LXDE) with an old laptop to run Magic Mirror.

    I am by no means a linux expert! But I did some tinkering and couldnt get the install script working. The following steps might help you getting MM running on a Debian 10 machine. I used the debian-live-10.0.0-amd64-lxde.iso to install Debian.

    Once installed, log in to the system with the user you created during setup.

    Open a terminal window, and run the following:

    su

    Enter the root password when prompted and then run the following:

    apt-get update apt-get upgrade apt-get install openssh-server

    Once complete I found it easier to go back to my main machine and use putty.

    Open a Putty connection to your machine, login with the user you created during setup

    Once at the terminal, type the following:

    su

    Enter the root password when prompted and then run the following:

    apt-get --assume-yes install curl wget git build-essential unzip gcc g++ make curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - apt-get update apt-get install -y nodejs apt-get install -y npm curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list apt-get update apt-get install yarn exit

    This should return you to the mm user you have setup, at the command line type the following:

    git clone --depth=1 https://github.com/MichMich/MagicMirror.git cd MagicMirror/ cp config/config.js.sample config/config.js npm install npm audit fix

    Close out the session and then go back to the machine and run a terminal prompt and type the following to start mm!

    cd MagicMirror npm start

    YMMV but hope this helps others out there trying to get this to work too.

  • HERE’S THE FIRST PERSON TO PUT A PI IN THE RASPBERRY PI KEYBOARD

    1