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

    Posts

    Recent Best Controversial
    • RE: I cant get my Calender or my MMMBitcoin to work, any help please?

      @clarkcrew32 hiya I’m not familiar with the MMM-Bitcoin module, but just taking a look at the github page for it at https://github.com/valmassoi/MMM-bitcoin it doesn’t look like the install instructions are complete (it only suggests adding the module config to your config.js)

      AFAIK to install a module to your mirror, you’re going to need to clone the repository to your modules directory, as well as add its config.

      (apologies, you might know to do this all already, but just to make sure …)

      try going

      cd ~/MagicMirror/modules
      git clone https://github.com/valmassoi/MMM-bitcoin

      and the module should be cloned to your modules directory

      then add the config entry into your config.js file, save the changes and try running your MagicMirror again.

      (I don’t see any obvious typos for the MMM-Bitcoin entry in your config.js screenshot at the top, it looks like you edited it with nano just fine the first time).

      posted in Troubleshooting
      R
      raymondjspigot
    • RE: Date change

      @lucallmon
      8e877299-1f5c-4e08-b6a4-c875d60bb1ce-image.png

      hi - you mean where it’s showing the date in the heading at the top? - the “TODAY IN HISTORY 02/19/2017” in the module picture (sorry, not familiar with this module)

      in MMM-History.js it looks like the header is generated with

      header.innerHTML = "Today in History  " + moment().format('L');
      

      and format('L') would give you a date as shown.

      You could try updating this line in MMM-History.js and specifying a different format?

      e.g.
      header.innerHTML = "Today in History " + moment().format('ll');

      looks like it should give you a “ShortMonth dd, yyyy” date instead. (Haven’t tried this to confirm, give it a go)

      posted in Education
      R
      raymondjspigot
    • RE: [MMM-ApexCharts] ApexCharts.js for your mirror.

      @sharmstr said in [MMM-ApexCharts] ApexCharts.js for your mirror.:

      There are several working examples in the wiki

      https://github.com/sharmstr/MMM-ApexCharts/wiki/JSON

      Hi - thankyou very much - and apologies for somehow not finding your great documentation! I’ve been able to get sample charts working now.

      Just some notes on where I’ve got to with my mirror - I’ve been trying MMM-ApexCharts out using a mini power monitor called an IotaWatt as a datasource. It sits on my home network and collects power readings from my mains connection using a current transformer. You can then query this data back and possibly use it to draw graphs.

      Queries are just done with an http request and look like:

      http://MyIotaWatt.local/query?select=[time.local,InstPower_W.wh.d2]&begin=s-24h&end=s&group=1h&format=json&header=no
      

      returning (in this case) json with readings for total power usage (kWatt hours) for each of the previous 24 hours.
      Responses look like (e.g.)

      0	
      	0	"2024-09-21T14:05:00"
      	1	0.76
      1	
      	0	"2024-09-21T13:05:00"
      	1	0.75
      2	
      	0	"2024-09-21T12:05:00"
      	1	0.73
      etc
      

      so this has worked well with the paired chartJsonFormat config.

      Things I found useful so far:

      1. if I put the http://iotawatt.local/query?… in the chartJsonUrl config then the log showed that the call failed with a CORS error. I’ve got it to return data if I add the local CORS server prefix though i.e.
      http://localhost:8080/cors?url=http://MyIotaWatt.local/query?...
      
      1. Times returned in the response match NZ local time, but the labels on my chart’s x-axis originally displayed times 12 hours earlier. I’ve included a datetimeUTC entry in my xaxis.labels config to leave it in local time
      xaxis: {
        		type: "datetime",
        		tickPlacement: "off",
        		labels: {
        				datetimeUTC: false,
        				format: "HH:mm",
        				}
        		},
      

      @sharmstr I’ve also been trying out showing more than one chart on the mirror, following your sample config. Is there a way to show two charts when both make their own call to a datasource (i.e. with separate chartJsonUrls?)
      This would be useful in my case to show a chart for Detailed power usage (over last 30 mins) and a separate chart for Overview (usage in last 24 hours).

      I’ve configured these charts to work individually, but when I add both to my config at the same time (with different chartIDs) the 2nd chart doesn’t show on the mirror. The log shows json responses to both calls, but also an error
      Uncaught (in promise) TypeError: Cannot read properties of null (reading '1')
      following the 2nd response. Is there a neat way to allow both charts, or have I just messed it up? Thanks very much

      posted in Utilities
      R
      raymondjspigot
    • RE: [MMM-ApexCharts] ApexCharts.js for your mirror.

      hi @sharmstr your module looks great and I was just trying it out.

      Would you be able to provide a sample config.js entry for it (e.g. for showing one of your example charts)?

      I’ve installed the module and had a go at updating my config.js following the instructions at https://github.com/sharmstr/MMM-ApexCharts, and given it a URL to your test data, hoping to show a bar chart to get started with.

      I’m unsure how to add the chartConfig options though and don’t think I have the format correct.

      The mirror currently starts but doesn’t show a chart, and the Console shows several errors like Uncaught (in promise) TypeError: Cannot read properties of undefined (reading ‘forEach’)

      hopefully I’ve just forgotten something stupid/obvious!

      My config.js entry for the module so far looks like

      {
        			module: 'MMM-ApexCharts',
        			position: "middle_center",
      			config: {
      	    			chartBackground: "transparent",
      	    			chartDataLabels: false,
      	    			chartJsonFormat: "paired",
      	    			chartJsonInterval: "",
      	    			chartJsonUrl: "http://my-json-server.typicode.com/sharmstr/MMM-ApexCharts/paired",
      	    			chartMonochrome: true,
      	    			chartMonochromeColor: "#534F4F",
      	    			chartThemeMode: "dark",
      	    			chartThemePalette: "palette1",
      	    			chartWidth: 400,
      	    			chartConfig: {
      	    					chart: {
      						    type: 'bar'
        							},
      						}
      				}
      		},
      

      thanks for any assistance in the meantime : )

      posted in Utilities
      R
      raymondjspigot
    • RE: Help with the software

      hi @SecretEUAgent

      last time you were working on your Mirror had you got any of the modules you wanted up and going? (i.e. is there anything you want to keep from what you’ve done so far, or are you ok making a fresh start by reinstalling?)

      If you’re ok reinstalling it might be easier to work though adding the modules you want to a fresh install, is all.

      Hard to know what hasn’t worked out since I can’t see what you’ve done so far! Adding modules to the mirror isn’t usually too difficult, but needs 2 steps:

      • installing the module (e.g. cloning the module’s code from github into the MagicMirror/modules directory on your RaspberryPi, and (maybe) installing dependencies

      • updating the config.js file at MagicMirror/config so that the module is displayed on your mirror and behaves the way you want

      Updating config.js is not hard but does need doing with care as even small errors (typos, missing punctuation) can make the file contents invalid. Your Mirror will likely start but just show a blank screen with a default “Please create a config file or check the existing one for errors” message.

      (It should also show a note about running the config check as Sam has suggested, which might show if there are errors in your config file that you can correct.)

      While updating the config file if you save a last-known-good-file and then make small changes between re-running the mirror it’ll help to pin down any typing errors. If you jump in and change heaps at once and then your Mirror suddenly won’t show any modules then it’s harder to work out which of your edits caused it and where the config needs correcting.

      Post back if you get your Pi to a solid (re)starting position (e.g. reinstalled with a new config.js, or a config.js you’ve run through the config checker) and we’ll try adding a module and see how it goes

      posted in Troubleshooting
      R
      raymondjspigot
    • RE: Trouble installing MM on Raspberry Pi Desktop for PC

      @MMRIZE thanks for the suggestion - I’m not sure it even got as far as having a version of node that was too old.

      node -v
      

      just gives me a No such file or directory error

      @sdetweil thanks for taking a look! I’ll try ubuntu + install script and see how I get on.

      posted in Troubleshooting
      R
      raymondjspigot
    • Trouble installing MM on Raspberry Pi Desktop for PC

      Hi, I’ve run into trouble trying to install MagicMirror on an old intel NUC, on top of an installation of Debian with Raspberry Pi Desktop for PC/Mac from

      https://www.raspberrypi.com/software/raspberry-pi-desktop/

      It looks like Raspberry Pi Desktop is based on Debian Bullseye:

      Debian Bullseye with Raspberry Pi Desktop
      Release date: July 1st 2022
      System: 32-bit
      Kernel version: 5.10
      Debian version: 11 (bullseye)

      Installation of Raspberry Pi Desktop from the image on USB seemed successful and the machine boots to a desktop OK.

      I’ve then tried running the MagicMirror install script from https://github.com/sdetweil/MagicMirror_scripts

      but this gets to the section installing correct version of node and npm, please wait and fails with error messages at the terminal

      ERROR: npm v10.1.0 is known not to run on Node.js v12.22.12.  This version of npm supports the following node versions: `^18.17.0 || >=20.5.0`. You can find the latest version at https://nodejs.org/.
      
      ERROR:
      /usr/local/lib/node_modules/npm/lib/utils/exit-handler.js:19
        const hasLoadedNpm = npm?.config.loaded
      

      followed a bit later by

      node failed to install, exiting
      

      The RPi desktop installation instructions included allowing updates as part of the install process, so just in case that was causing issues I’ve tried:

      • MM install via script on a fresh RPi Desktop install (allowed updates during install)
      • MM install via script on a fresh RPi Desktop install (skipped updates during install this time)

      but I’m seeing the same npm error during the MagicMirror installation on both.

      Thanks for reading this far and any suggestions! - let me know if there’s anything else I should try : )

      posted in Troubleshooting
      R
      raymondjspigot
    • RE: Magic Mirror Clothes camera?!

      hi @alphabeta77

      I haven’t come across any end-to-end solutions that sound like what you’re looking for. But maybe you could duct-tape some existing building blocks together and get to where you wanted?

      For instance a google search shows up some details for Raspberry Pi Photo Booth projects that you could follow. Like

      https://github.com/pibooth/pibooth

      (no affiliation, just has a link to a wiki so maybe the documentation is helpful). You might be able to learn enough from what’s there to integrate PhotoBooth functionality into your Magic Mirror (and include some hardware in your mirror build - at least a PiCam and a button I guess - to trigger taking a photo and perhaps save it to a local directory)?

      Then there must be some MagicMirror Modules you could try out that would display random images from your local directory - at a configurable delay - maybe like

      https://github.com/miccl/MMM-Random-local-image

      and then you’d have images from your gallery of outfits shown on your mirror. (again no affiliation to this one either, just another google result)

      Hope this helps, if you try it let us know how you get on : )

      posted in General Discussion
      R
      raymondjspigot
    • RE: Random movie poster background

      hi @joshcsepegi - don’t know if this helps exactly, but you could get mostly the same effect using something like MMM-BackgroundSlideshow, as long as you pre-downloaded a set of poster images from the movieposter website and loaded them to your MagicMirror somewhere the module can see them.

      I do something similar with this module and a curated set of desktop-wallpaper-style images, shuffled on a configurable delay.

      It does mean you don’t get the newest additions to the website until you’ve downloaded and added them to your local copy, but you also don’t need to worry about the module needing to handle a loss of connectivity gracefully, the poster website going down, the api changing etc.

      posted in Requests
      R
      raymondjspigot
    • RE: Getting an error when trying to implement MMM-Cursor into my config.js file

      @nateb827 hiya, thanks for the note to say you’d got it sorted! No worries, best wishes for your future configurating : )

      posted in Troubleshooting
      R
      raymondjspigot
    • 1
    • 2
    • 3
    • 1 / 3