MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. thgmirror
    3. Best
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    Offline
    • Profile
    • Following 0
    • Followers 1
    • Topics 12
    • Posts 135
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Expensive Bedside Clock

      @harney I like your toaster:-)

      posted in Show your Mirror
      thgmirrorT
      thgmirror
    • Temperature of a RPI3

      Hi all,

      I made some investigations about the temperature of my PI…

      1. without any cooling - around 52 degrees Celsius
      2. with a heatsink from an old PC stuck with cable ties - around 42 degrees Celsius
      3. with heatsink and a fan, also from my old PC - around 30 degrees Celsius
        df5ca236-67ca-4e41-bf9b-db34b4db0961-image.png
        May be this is interesting for someone who use a PI in a close frame.
      posted in Hardware
      thgmirrorT
      thgmirror
    • RE: MMM-MarineTraffic??

      @adrian-k here an example how it can look, if you store this HTML
      78938882-fc22-46cb-aeec-79874594315b-image.png
      in your modules-folder and display it in your mirror:
      bf882af9-1339-45bb-a387-687fe0ac6233-image.png

      posted in Requests
      thgmirrorT
      thgmirror
    • RE: Expensive Bedside Clock

      @harney I’m plannig to use an old case of a router to build something similar like you did, so there will be also some jokes from my family!
      Did you include a speaker at the rear side, or just a fan?

      posted in Show your Mirror
      thgmirrorT
      thgmirror
    • CPU-Temperature as a graph with RRDtool

      I added a graph about the progress of the CPU-temperture of my RPI3 to my MM via RRDtool:
      3b90bc2e-76cd-4e30-a2c4-5434cb843638-image.png
      It looks a little bit nerdy, but the temperature is a nerdy hardware characteristic. OK, it is not so beautiful like grafana…but much easier to use.
      Therefor, it needs only a few steps to realize it:

      sudo apt-get install rrdtool
      

      will install it.
      Only one time create the database in the terminal session:

      rrdtool create cputemp.rrd --step 300 DS:temp:GAUGE:600:-20:90 RRA:AVERAGE:0.5:12:24 RRA:AVERAGE:0.5:288:31
      

      Add two tasks to crontab:

      2-57/5 * * * * rrdtool update cputemp.rrd N:$(vcgencmd measure_temp | cut -c "6-9")
      

      moves every 5 minutes the temperature to the database established above.

      0 * * * * rrdtool graph /home/pi/MagicMirror/modules/cputemp.gif --start -24h --title "CPU-Temperatur" --vertical-label "Grad Celsius" --disable-rrdtool-tag DEF:cputemperatur=cputemp.rrd:temp:AVERAGE LINE1:cputemperatur#ff0000:"CPU-Temperatur" ;
      

      generates once in an hour a graph which will be displayed later. If you like, you can adjust the map legend (“CPU-Temperatur” and “Grad Celsius”) with descriptions in your language.

      Now create a file named cputemp.html in the modules-folder of your MM:

      <HTML>
      <HEAD>
      <TITLE>CPU Temperatur</TITLE>
      </HEAD>
      <body bgcolor=#000000>
      	<img src="cputemp.gif"/>
      </body>
      </HTML>
      

      and use MMM-SmartWebDisplay in your config.js to show it:

      //#################################################################################
      		{
      			disabled: false,
      			module: 'MMM-SmartWebDisplay',
      			position: 'top_center',
      			config: {
      				logDebug: false,
      				height: "180",
      				width:"500",
      				updateInterval: 0,
      				NextURLInterval: 0,
      				displayLastUpdate: false,
      				url: ["/modules/cputemp.html"],
      				}
      		},
      //#################################################################################
      

      Based on these steps, some more modifications of the appearance are possible. Please use your favorite search-engine for more.

      posted in Utilities
      thgmirrorT
      thgmirror
    • RE: Auto power on and off

      @natebrown enter crontab -e at the prompt and insert the data garbieflux mentioned.
      If you struggle with the syntax, you can use several internet-pages to define the rules:
      https://crontab-generator.org/
      or
      https://crontab.guru/ for exapmle

      I use
      @reboot sudo sh -c ‘echo none > /sys/class/leds/led0/trigger’
      @reboot sudo sh -c ‘echo 0 > /sys/class/leds/led0/brightness’
      @reboot sudo sh -c ‘echo none > /sys/class/leds/led1/trigger’
      @reboot sudo sh -c ‘echo 0 > /sys/class/leds/led1/brightness’
      to turn off the LEDs at my RPI 3+

      Btw, an # at the beginning of the line marks it as a comment.

      Or use a time-switch to turn on and off the whole construction.

      Thomas

      posted in Development
      thgmirrorT
      thgmirror
    • No Tour de France module???

      Hi,
      I looked today for a module for the Tour de France…and found none.
      But I was able to integrate a kind of screenshot from a webside with the total results.
      I would like to share it with you.
      Create a file with the following content, name it tdf.html and store it in the MagicMirror-modules folder (sorry, I was not able to add it as a html-source, only as a picture, but it is standard-html and only some lines:-)):

      64fcc18c-c225-4da9-8a36-7a38e98f3c3d-image.png

      Download and install the MMM-SmartWebDisplay if not done before and add the following part to your config.js

      		{
      			module: 'MMM-SmartWebDisplay',
      			position: 'top_center',	
      			config: {
      				logDebug: false, 
      				height: "1000px", 
      				width:"1000px", 
                               	updateInterval: 15, 
                   	                NextURLInterval: 0, 
      				displayLastUpdate: false, 
                  	                url: ["/modules/tdf.html"], 
      				}
      		},
      

      leads to this screen:

      4bde64b5-31fc-4b99-9967-801c379a8742-image.png

      Thomas

      posted in Development
      thgmirrorT
      thgmirror
    • 1 / 1