A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Subcategories

  • Any suggestions or wishes for the forum?

    102 Topics
    704 Posts
    S
    @mumblebaj so much fun! everybody is sliding into paywalls.
  • Does MMM-MyCommute require payments to Google?

    Moved
    5
    0 Votes
    5 Posts
    2k Views
    D
    I recently set up mmm-google route which also uses google api. It appears from what I can tell you get a monthly credit of 200 or 300 bucks? So if you go over that you do get charged. Using mmm-schedualar I was able to set it to update every 15 min in the morning hours then just once an hour hike I’m usually out of the house. That may help with api requests
  • In case anyone missed this . . .

    9
    1
    1 Votes
    9 Posts
    3k Views
    Mykle1M
    They’re all pink on the inside.
  • zram-conf

    3
    0 Votes
    3 Posts
    1k Views
    S
    Same in as they both use the same terrible outmoded methods that is essentially a copy of zram-conf-05.deb. Since kernel 3.15 zram has been multi-stream and partitioning by core just makes smaller swaps with smaller single page write ability for absolutely no reason. Also makes no check that any previous zram utils maybe in operation and overwrites. Ignores the important mem_limit property for sys_admins and completely ignores the hot_plug and remove methods. I have no idea why that bad script has been copied and emulated so much, but yeah the above are very much the same as zram-conf-05.deb. I suggest you have a look at https://github.com/StuartIanNaylor/zram-config as it combines many functions that are beneficial for MagicMirror and has a better implementation of zram for quite a few reasons. Uses /etc/ztab so if you wish you can set up as many zswaps, zdir and a zlog if you wish. Zlog creates a zram directory which is the upper in a OverlayFS file systems so only on write is a file copied up. It also uses the olddir directive of logrotate so oldlogs are shipped to persistent. Provides negligible flash wear and an extremely small Zram memory footprint. Zdir is the same as zlog without the logrotate directives where the MagicMirror directory is loaded via a OverlayFS mount with the upper mounted on zram. Due to the copyup of COW only files that are write accessed use upper so again the whole MagicMirror dir can be provided with zero SD writes in an extremely small memory footprint. You can make as many Zdir as you need. Zswap does actually use the kernel doc methods of hot_plug and hot_remove for zram devices and will work with other zram services. Also includes the important mem-Limit for sysadmin and Zswap is multi-stream and there is little point making swaps per core but you can make as many as you like. Linux swapiness and page-cache settings are also based the assumption of HDD like swap and zram is mem not disk so swapiness needs to be increased to 80-100 and page-cache set to 0 for single pages to help cut latency as the default of 3 = caches of 8 pages for disk based caching. None of the scripts ever seem to provide the tuneables to actually utilise zram performance and again you can set both in the ztab as you set up your swap. Hopefully the likes of the above will actually read the kernel docs for zram https://www.kernel.org/doc/Documentation/blockdev/zram.txt before they just copy and paste a bad Ubuntu script again. Not really sure how zram will in anyway give you smooth youtube/video playback though… ? But if its caching locally then yes. But yeah you can get near memcpy speed with compression rations of up 3:1 or even use deflate or ztstd which are slower and prob not for swap but for text such as logs or much of the data format that nodejs uses the compression can be much higher than the performance base of LZO/4. https://github.com/StuartIanNaylor/zram-config pi@raspberrypi:~ $ zramctl NAME ALGORITHM DISKSIZE DATA COMPR TOTAL STREAMS MOUNTPOINT /dev/zram0 lz4 1.2G 4K 76B 4K 4 [SWAP] /dev/zram1 lz4 150M 16.3M 25.1K 208K 4 /opt/zram/zram1 /dev/zram2 lz4 60M 7.5M 1.2M 1.7M 4 /opt/zram/zram2 pi@raspberrypi:~ $ df Filesystem 1K-blocks Used Available Use% Mounted on /dev/root 14803620 2558152 11611220 19% / devtmpfs 470116 0 470116 0% /dev tmpfs 474724 223868 250856 48% /dev/shm tmpfs 474724 12284 462440 3% /run tmpfs 5120 4 5116 1% /run/lock tmpfs 474724 0 474724 0% /sys/fs/cgroup /dev/mmcblk0p1 44220 22390 21831 51% /boot /dev/zram1 132384 280 121352 1% /opt/zram/zram1 overlay1 132384 280 121352 1% /home/pi/MagicMirror /dev/zram2 55408 3460 47648 7% /opt/zram/zram2 overlay2 55408 3460 47648 7% /var/log tmpfs 94944 0 94944 0% /run/user/1000 cat /etc/ztab # swap alg mem_limit disk_size swap_priority page-cluster swappiness swap lz4 400M 1200M 75 0 90 # dir alg mem_limit disk_size target_dir bind_dir dir lz4 50M 150M /home/pi/MagicMirror /magicmirror.bind # log alg mem_limit disk_size target_dir bind_dir oldlog_dir log lz4 20M 60M /var/log /log.bind /oldlog pi@raspberrypi:~ $ free -h total used free shared buff/cache available Mem: 927M 206M 184M 233M 535M 434M Swap: 1.3G 0B 1.3G pi@raspberrypi:~ $ swapon NAME TYPE SIZE USED PRIO /dev/zram0 partition 1.2G 0B 75 /var/swap file 100M 0B -2 pi@raspberrypi:/opt/zram $ ls log.bind magicmirror.bind oldlog zram1 zram2 pi@raspberrypi:/opt/zram $ top top - 23:18:21 up 1:28, 2 users, load average: 0.31, 0.29, 0.29 Tasks: 114 total, 1 running, 68 sleeping, 0 stopped, 0 zombie %Cpu(s): 1.9 us, 0.1 sy, 0.0 ni, 98.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st KiB Mem : 949448 total, 153464 free, 223452 used, 572532 buff/cache KiB Swap: 1331192 total, 1331192 free, 0 used. 412052 avail Mem PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 1215 pi 20 0 600844 325968 287276 S 5.3 34.3 8:09.51 chromium-browse 2536 pi 20 0 8104 3204 2728 R 1.6 0.3 0:00.11 top 970 pi 20 0 775108 156128 112876 S 1.0 16.4 11:17.06 chromium-browse 1611 pi 20 0 11656 3772 3056 S 0.3 0.4 0:00.30 sshd 1 root 20 0 27072 5964 4824 S 0.0 0.6 0:02.51 systemd 2 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kthreadd 4 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 kworker/0:0H 6 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 mm_percpu_wq 7 root 20 0 0 0 0 S 0.0 0.0 0:00.24 ksoftirqd/0 8 root 20 0 0 0 0 I 0.0 0.0 0:00.87 rcu_sched 9 root 20 0 0 0 0 I 0.0 0.0 0:00.00 rcu_bh
  • Advise for a voice assistant

    21
    0 Votes
    21 Posts
    9k Views
    B
    Hi @ejay-ibm, was a bit busy last days… couldn’t work on MM. I finally install both MMM-Hotword and Mk2. Works fine but need some fine tuning. Maybe you or anybody can guide/help me on the following: Mk2 side, i still need to understand how it works and how i can “interact” with the other modules… If you have a simple example to show how to “link” Mk2 with any other modules, it would be very helpful! As usual thx to all for always supporting the community!
  • Te Koop , 42" Philips touchscreen

    1
    0 Votes
    1 Posts
    491 Views
    M
    Deze post doe ik in het nederlands omdat ik de nederlandse forum leden wil laten weten dat ik mijn touchscreen te koop aanbied. Helaas moet ik door verhuizing/ruimte gebrek mijn 42" verkopen en zou graag een ander hier op het fora de eerste keus willen geven tot het overnemen van dit unieke scherm. alle mogelijke aansluitingen zitten op dit scherm , zie mijn vorige posts. De laatste tijd heeft het scherm bijna niet gedraaid doordat het uit heeft gestaan. Bij interesse stuur mij een pb.
  • display a graph with sensor values.

    7
    0 Votes
    7 Posts
    2k Views
    S
    @icripps api definition says data can be returned in json format… and you might be able to use the MMM-Chart module https://github.com/Snille/MMM-Chart
  • I'm so bad at applying the reflective film! Any advice?

    7
    0 Votes
    7 Posts
    2k Views
    B
    I feel it’s pertinent to say that I’ve improved my process a little bit as somewhat detailed in my own answer to my question on stack exchange diy here. I can’t seem to link to it because the automated system thinks it’s spam. My results doing it that way are pretty good but still not perfect. I’ve been holding off on updating this post until I get the process down right.
  • Screen is a dark grey, not jet black

    3
    0 Votes
    3 Posts
    972 Views
    brobergB
    Yeah, simple solution? Add more light in the room where the mirror is. Another solution is to change the mirror to one that lets less light through (this will obviously also affect everything else displayed on the monitor). And third solution is to get an OLED display that doesn’t have the same backlight issues as normal LED TFT’s has.
  • Considerations to take for MM that won't be at my house?

    10
    0 Votes
    10 Posts
    2k Views
    B
    @Mykle1 It’s a work in progress. :)
  • Test modul in jsFiddle or liveweave

    1
    0 Votes
    1 Posts
    496 Views
    S
    Hi If I need to test, let’s say the default clock in MM. Is it then possible to set up an environment in jsFiddle or liveweave, so I can take the index.html layout and add that to the HTML field, and then add the clock.js to the JS field and then test the settings? If yes, can someone add an example?
  • Stop the screensaver!

    42
    0 Votes
    42 Posts
    40k Views
    bheplerB
    @Anthony - That looks like a network outage. The errors show that the NASA module or whatever can’t pull images from the API. And then you lost connection to your mirror. Of course, it could be the Pi shutting off to disconnect the developer tools. Hrm.
  • Magic Mirror Alternatives -Discussion

    2
    0 Votes
    2 Posts
    6k Views
    yawnsY
    You could also take a look at mirr.os. I never played around with it, but it looks nice on the website.
  • Data usage

    7
    0 Votes
    7 Posts
    2k Views
    L
    Thanks for the input everyone. I will change the update interval and I guess I will end up installing a roller on/off switch on the power cord same as the one you find on some lamps. This should insure no data transfer through the night or when we’re out. I can just shut it all down.
  • News from Norway

    5
    0 Votes
    5 Posts
    1k Views
    ?
    @frode I thnik “Aptenposten” is just a “NAMED” source of Norway. However news.org is gathering more news from various sources(even blogs) of your country, but just they are not “named” sources.(i can see e24.no at this moment. That is a news site of Norway, right?) You can get more news with country code “no” instead direct definition “source”.
  • How to see online source code, when MM is running.

    3
    0 Votes
    3 Posts
    642 Views
    S
    Thx alot :-)
  • I'm trying this one : MMM-CalendarWeek

    11
    0 Votes
    11 Posts
    4k Views
    F
    Just started this a few days ago so I’m learning every day, thank you
  • Verse Smartmirror

    15
    0 Votes
    15 Posts
    5k Views
    yawnsY
    Thanks René, I will definitely keep an eye on your development, sounds well thought!
  • Horoscope!

    horoscope
    3
    0 Votes
    3 Posts
    1k Views
    R
    @retroflex said in Horoscope!: :slightly_smiling_face: So I guess this is the first module you’ll install: https://forum.magicmirror.builders/topic/1370/mmm-horoscope-daily-horoscope Thanks, i will try it… May be i start reading daily 😊 First modules to install were the default modules 😂 then i installed email, etc… But overtall building the case, frame of magic mirror is pending… Finally i decided to bulid Magic Mirror hardware part first… Because installing modules and editing config.js, making changes to how it looks, it is like super extra long process for me… I am a newbie and its hard for me to write the code, edit CSS etc.
  • It is possible to add pictograms?

    1
    0 Votes
    1 Posts
    513 Views
    U
    This is the video refference. https://www.youtube.com/watch?v=AGbfaadASVk It is possible to add pictograms and open “Google Chrome”, “Facebook” or “Media Player” or anything else on your mirror?
  • Rookie just starting with magic mirror

    11
    0 Votes
    11 Posts
    3k Views
    Mykle1M
    It appears the issue has already been raised at the repo. :thumbsup: