Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    1. Home
    2. karsten13
    • Profile
    • Following 1
    • Followers 1
    • Topics 2
    • Posts 83
    • Best 8
    • Groups 0

    karsten13

    @karsten13

    13
    Reputation
    888
    Profile views
    83
    Posts
    1
    Followers
    1
    Following
    Joined Last Online

    karsten13 Follow

    Best posts made by karsten13

    • MMM-RepoStats

      Hi,

      this is my first MM module and may others find it useful 🙂

      Download and infos: MMM-RepoStats

      It’s about repository statistics for Docker, GitHub or GitLab repositories:

      example_3_types.jpg

      GitLab with private data (access token needed):

      gitlab_with_token.jpg

      Let me know if something is missing or not solved in the right way, any feedback is appreciated.

      Thanks,

      Karsten.

      posted in Utilities
      karsten13
      karsten13
    • RE: What is your backup and restore method?

      my approach …

      The following script must be executed in the magicmirror folder and creates another script restore.sh. This result script should be saved (on my server it is under git control) and can be executed (again in the magicmirror folder) to restore the old system (or bringing the old config to a new system).

      #!/bin/sh
      
      base="$(cd "$(dirname "$0")" && pwd)"
      
      restore="$base/restore.sh"
      config="${1:-config/config.js}"
      css="css/custom.css"
      modules="modules"
      
      # Tests
      [ -f "$base/$config" ] || (echo "config.js does not exists" && exit 1)
      [ -f "$base/$css" ] || (echo "custom.css does not exists" && exit 1)
      [ -d "$base/$modules" ] || (echo "modules directory does not exists" && exit 1)
      
      
      echo "#!/bin/sh" > $restore
      echo "" >> $restore
      echo "base=\"\$(cd \"\$(dirname \"\$0\")\" && pwd)\"" >> $restore
      
      echo "" >> $restore
      
      echo "mkdir -p \$base/config" >> $restore
      echo "mkdir -p \$base/css" >> $restore
      echo "mkdir -p \$base/modules" >> $restore
      
      echo "" >> $restore
      
      echo "cat > \$base/$config <<\"EOF\"" >> $restore
      cat <$base/$config >> $restore
      echo "EOF" >> $restore
      echo "" >> $restore
      
      echo "cat > \$base/$css <<\"EOF\"" >> $restore
      cat <$base/$css >> $restore
      echo "EOF" >> $restore
      echo "" >> $restore
      
      for dir in $(find "$modules" -maxdepth 1 -mindepth 1 -type d)
      do
        [ -f "$dir/.git/config" ] && mods="$mods $(cat $dir/.git/config | grep 'url = ' | sed 's|.*url = ||g')"
      done
      
      for repo in $mods
      do
        echo "cd \$base/$modules && git clone $repo" >> $restore
      done
      
      echo "" >> $restore
      
      for repo in $mods
      do
        moddir="$modules/$(echo $repo | sed -r 's|.*\/(.*)|\1|g;s|.git||g')"
        [ -f "$base/$moddir/package.json" ] && echo "cd \$base/$moddir && npm install" >> $restore
      done
      
      echo "Created restore script $restore" 
      
      chmod +x $restore
      
      posted in Troubleshooting
      karsten13
      karsten13
    • RE: MMM-RAIN-MAP

      @bhepler

      7f1425c3-cc31-41d3-9598-daa4d21fd75b-grafik.png

      or

      8fd0daf1-33d2-4c3f-aa00-c8a3f50e846b-grafik.png

      posted in Utilities
      karsten13
      karsten13
    • RE: Reverse Proxy and Private Modules

      @retroflex thank you, your’re right.

      Checked this again with this unmerged pr. With this pr, the config.js is no longer reachable per browser, so we have to wait for the next release where this is hopefully merged.

      @Jessendelft other possibilities:

      • you can whitelist the ip adresses which are allowed to access the mirror
      • you run 2 instances of the mirror, one private restricted to localhost access and one public with content everyone is allowed to see
      posted in Tutorials
      karsten13
      karsten13
    • RE: GIT and updates to Weather Module

      2 more things:

      • the new branch you are using should start on the mm-branch develop (not master)
      • when creating the PR on github you have to manually change the base branch from master to develop

      These rules are specific to the mm-repo. Because of quarterly releases the master branch only changes 4 times in a year. The development between the releases is done on develop.

      posted in Development
      karsten13
      karsten13
    • RE: MMM-RAIN-MAP

      @ViDiBi said in MMM-RAIN-MAP:

      lon: 11.91

      I think you have a typo in your config, lon: 11.91 should be lng: 11.91

      posted in Utilities
      karsten13
      karsten13
    • RE: MagicMirror is safe...

      it’s not repo specific but attached to the user, see https://github.com/sdetweil

      posted in General Discussion
      karsten13
      karsten13
    • RE: Weather module - creating new Provider

      you could use a proxy https://cors-anywhere.herokuapp.com/https://dd.weather.gc.ca/citypage_weather/xml/ON/s0000326_e.xmll, there is already such a line in the PullRequest merged today.

      posted in Troubleshooting
      karsten13
      karsten13

    Latest posts made by karsten13

    • RE: PIR Sensor won't wake up

      should be 23 (not 16)

      alt text

      posted in Troubleshooting
      karsten13
      karsten13
    • RE: Multiple server instances -- one server and multiple config files, or multiple Docker instances?

      you can do it with or without docker, thats your choice.

      With docker you have to use different config.js files, they can be placed in the same folder and must be mapped into the right container.

      You could use only one modules folder for all instances by installing all modules there.

      Updating the core is done by using a new docker image (same for all instances).

      The one-modules-folder may also could be established with the classic setup, you could use symlinks from a central place into the modules folder of the several instances (never tested this!).

      posted in General Discussion
      karsten13
      karsten13
    • RE: GIT and updates to Weather Module

      2 more things:

      • the new branch you are using should start on the mm-branch develop (not master)
      • when creating the PR on github you have to manually change the base branch from master to develop

      These rules are specific to the mm-repo. Because of quarterly releases the master branch only changes 4 times in a year. The development between the releases is done on develop.

      posted in Development
      karsten13
      karsten13
    • RE: Integrating an npm module that uses import

      @sdetweil no 😢

      may using esm library is one approach as described e.g. here https://blog.logrocket.com/how-to-use-ecmascript-modules-with-node-js/

      posted in Development
      karsten13
      karsten13
    • RE: Integrating an npm module that uses import

      @lavolp3

      • rename node_helper.js to node_helper.mjs

      worked in my test (did not do anything with the imported axios, but mm starts).

      posted in Development
      karsten13
      karsten13
    • RE: MMM-RepoStats

      Link should work now, forgot to make it public 🤦🏻♂

      posted in Utilities
      karsten13
      karsten13
    • MMM-RepoStats

      Hi,

      this is my first MM module and may others find it useful 🙂

      Download and infos: MMM-RepoStats

      It’s about repository statistics for Docker, GitHub or GitLab repositories:

      example_3_types.jpg

      GitLab with private data (access token needed):

      gitlab_with_token.jpg

      Let me know if something is missing or not solved in the right way, any feedback is appreciated.

      Thanks,

      Karsten.

      posted in Utilities
      karsten13
      karsten13
    • RE: komoot

      @florianrd The komoot api is not public so I asked them to get a key. They answered that the api is only available for partners and provided a website for becoming a partner.

      So I sent another mail to the partner mail adress (2 weeks ago) and never got an answer …

      posted in Requests
      karsten13
      karsten13
    • RE: Missing troubleshooting history for MMM-GoogleAssistant

      @sdetweil I think he deleted here as much as possible intentionally. He left in anger and is starting a new one man show here

      posted in Troubleshooting
      karsten13
      karsten13
    • RE: MMM-Remote-control all working except for monitor on and off

      everything o.k., the : was a typo here …

      posted in Troubleshooting
      karsten13
      karsten13