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

    Posts

    Recent Best Controversial
    • RE: Magic(Dashboard)Mirror

      @davidt89 said in Magic(Dashboard)Mirror:

      But, how do you get MMM-MyCalendar to work?

      this module is missing a package.json file to record the use of the valid-url library, which was removed in MM 2.16

      SO, you can add it back

      cd ~/MagicMirror
      npm install valid-url

      posted in Show your Mirror
      S
      sdetweil
    • new compositor on wayland

      starting w oct 27, 2024 ( dated Oct 22) a new compositor (called labwc) was released in an updated bookworm release

      i know my install script is impacted

      see
      https://www.raspberrypi.com/news/a-new-release-of-raspberry-pi-os/

      @bugsounet i know this will impact your stuff too

      posted in Troubleshooting
      S
      sdetweil
    • updated installer script available for testing

      I have updated the installer script…

      correct node/npm version checks failing
      check and install npm < — this is the big one
      fix pm2 setup for current userid
      (on my system it isn’t pi)

      curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/raspberry.sh | bash

      let me know

      edited: Jan 4, 2020 move distro from dropbox to github

      posted in Troubleshooting
      S
      sdetweil
    • RE: [MMM-Remote-Control] Cannot GET /api

      @AxLed said in [MMM-Remote-Control] Cannot GET /api:

      api/module/alert/showalert?message=Hello&timer=2000

      it looks like the api was changed, but not documented…

      looking thru node_helper.js you can see all the commands

      ip:port/remote?action=xxxxx&parms=???&parms2=???

      the code lists these actions

                  if (query.action === "SHUTDOWN") {
                  if (query.action === "REBOOT") {
                  if (query.action === "RESTART" || query.action === "STOP") {
                  if (query.action === "USER_PRESENCE") {
                  if (["MONITORON", "MONITOROFF", "MONITORTOGGLE", "MONITORSTATUS"].indexOf(query.action) !== -1) {
                      this.monitorControl(query.action, opts, res);
                  if (query.action === "HIDE" || query.action === "SHOW" || query.action === "TOGGLE") {
                      self.sendSocketNotification(query.action, query);
                  if (query.action === "BRIGHTNESS") {
                      self.sendSocketNotification(query.action, query.value);
                  if (query.action === "SAVE") {
                  if (query.action === "MODULE_DATA") {
                  if (query.action === "INSTALL") {
                  if (query.action === "REFRESH") {
                      self.sendSocketNotification(query.action);
                  if (query.action === "HIDE_ALERT") {
                      self.sendSocketNotification(query.action);
                  if (query.action === "SHOW_ALERT") {
                      self.sendSocketNotification(query.action, {
                  if (query.action === "UPDATE") {
                  if (query.action === 'NOTIFICATION') {
                          this.sendSocketNotification(query.action, { 'notification': query.notification, 'payload': payload });
                  if (["MINIMIZE", "TOGGLEFULLSCREEN", "DEVTOOLS"].indexOf(query.action) !== -1) {
                          switch (query.action) {
                  if (query.action === "DELAYED") {
      

      to send an alert thru the api

      http://mirror_ip:mirror_port/remote?action=SHOW_ALERT&message=foo&title=help&timer=10&type=alert
      

      the remote.html does NOT use the api, but uses the socketNotifications pipe under the covers.
      which is why it works, but the older /api/modulename… approach doesn’t

      posted in Troubleshooting
      S
      sdetweil
    • RE: MMM-Calendar not showing calendar

      @castletonroad I’m not sure this will help, but the local mirror web server is not on port 80, but typically on 8080 (port setting in config.js)

      so, your url should be

      url: "http://127.0.0.1:8080/modules/calendars/basic.ics"
      

      and the mirror web server base directory is the modules folder… so your file would need to be located in that directory tree somewhere

      I downloaded my calendar, and it works fine locally

                url: "http://localhost:8086/modules/cals/basic.ics"
      

      my mirror is running on port 8086.

      posted in Troubleshooting
      S
      sdetweil
    • RE: Worked for 5 minutes...

      @bhepler we should start a new script for upgrades

      installers/upgrade

      #!/bin/bash
      # change to MagicMirror folder
      cd ~/MagicMirror
      
      # get the latest upgrade
      if git pull; then
        # update any dependencies for base
        if npm install;
          # process updates for modules after base chnaged
          cd modules
          # get the list of modules with  package.json files
          find  -maxdepth 2 -name 'package.json'  | while IFS= read -r FILE; do
            echo "processing for module " $(dirname $FILE)
            # change to that directory
            cd  $(dirname $FILE)
              # process its dependencies
              npm install
            # return to modules folder
            cd - >/dev/null
          done
          return to Magic Mirror folder
          cd - >/dev/null
        fi
      else
        echo git pull failed
        # return to original folder
        cd - >/dev/null
      fi
      
      posted in Troubleshooting
      S
      sdetweil
    • RE: module for mm background

      @costascontis I use MMM-ImagePhotos, or MMM-ImageSlideshow (search on google for their github location)

      both load images from the local MM disk as background.
      I’m sure there are others too…

      posted in Requests
      S
      sdetweil
    • RE: has anyone used any of the charting tools, like chartjs?

      here are some pics of the two charts

      two charts upper right

      two

      two charts closer view
      two closer

      one chart
      one chart

      posted in General Discussion
      S
      sdetweil
    • RE: MMM-WeatherOrNot

      @Mykle1 does the module rebuild the display or does it locate the dom elements and update those?
      document.getElementbyId() … if so, you probably have duplicate IDs w 2 versions running

      in my modules I use the module identifier as part of the item id to avoid this

      this.identifer in the modulename.js

      posted in System
      S
      sdetweil
    • RE: write access to git repository

      YOU cannot push to the core repo… you can create a fork (under YOUR github userid), and then clone/push to THAT repo…

      you can then propose changes to the master repo, by submitting a pull request, for your branch back to the master (and some branch, usually dev) … and the master owner can accept it , or not… and then merge it with the master branch whenever…

      posted in Troubleshooting
      S
      sdetweil
    • 1 / 1