MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MMM-Globe problems with refreshing pictures.

    Scheduled Pinned Locked Moved Troubleshooting
    5 Posts 2 Posters 3.3k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D Offline
      Desertswing
      last edited by

      Hey all i got a problem with my Globe…

      error: Unable to append to .git/logs/refs/remotes/origin/develop: Permission denied
      From https://github.com/MichMich/MagicMirror
      ! a6485b6…88a01d3 develop -> origin/develop (unable to update local ref)

      error: cannot open .git/FETCH_HEAD: Permission denied
      .

      {
      module: ‘MMM-Globe’,
      position: ‘lower_third’, //center
      config: {
      style: ‘geoColor’, //natColor, geoColor, airMass, fullBand, europeDiscNat, europeDiscSnow, centralAmericaDiscNat
      imageSize: 450,
      ownImagePath:‘’,
      updateInterval: 10601000
      }
      },

      Module.register(“MMM-Globe”, {
      // Default module config.
      defaults: {
      style: ‘geoColor’,
      imageSize: 600,
      ownImagePath: ‘’,
      updateInterval: 10 * 60 * 1000
      },

          start: function () {
                  self = this;
                  this.url = '';
                  this.imageUrls = {
                          'natColor': 'http://rammb.cira.colostate.edu/ramsdis/online/images/latest/himawari-8/full_disk_ahi_natural_color.jpg',
                          'geoColor': 'http://rammb.cira.colostate.edu/ramsdis/online/images/latest/himawari-8/full_disk_ahi_true_color.jpg',
                          'airMass': 'http://rammb.cira.colostate.edu/ramsdis/online/images/latest/himawari-8/full_disk_ahi_rgb_airmass.jpg',
                          'fullBand': 'http://rammb.cira.colostate.edu/ramsdis/online/images/latest/himawari-8/himawari-8_band_03_sector_02.gif',
                          'europeDiscNat': 'http://oiswww.eumetsat.org/IPPS/html/latestImages/EUMETSAT_MSG_RGBNatColour_LowResolution.jpg',
                          'europeDiscSnow': 'http://oiswww.eumetsat.org/IPPS/html/latestImages/EUMETSAT_MSG_RGBSolarDay_CentralEurope.jpg',
                          'centralAmericaDiscNat': 'http://goes.gsfc.nasa.gov/goescolor/goeseast/overview2/color_med/latestfull.jpg'
      
                  }
                  this.hiResImageUrls = {
                          'natColor': 'http://rammb.cira.colostate.edu/ramsdis/online/images/latest_hi_res/himawari-8/full_disk_ahi_natural_color.jpg',
                          'geoColor': 'http://rammb.cira.colostate.edu/ramsdis/online/images/latest_hi_res/himawari-8/full_disk_ahi_true_color.jpg',
                          'airMass': 'http://rammb.cira.colostate.edu/ramsdis/online/images/latest_hi_res/himawari-8/full_disk_ahi_rgb_airmass.jpg',
                          'fullBand': 'http://rammb.cira.colostate.edu/ramsdis/online/images/latest/himawari-8/himawari-8_band_03_sector_02.gif',
                          'europeDiscNat': 'http://oiswww.eumetsat.org/IPPS/html/latestImages/EUMETSAT_MSG_RGBNatColour_LowResolution.jpg',
                          'europePartSnow': 'http://oiswww.eumetsat.org/IPPS/html/latestImages/EUMETSAT_MSG_RGBSolarDay_CentralEurope.jpg',
                          'centralAmericaDiscNat': 'http://goes.gsfc.nasa.gov/goescolor/goeseast/overview2/color_lrg/latestfull.jpg'
      

      }
      this.hiResImageUrls = {
      ‘natColor’: ‘http://rammb.cira.colostate.edu/ramsdis/online/images/latest_hi_res/himawari-8/full_disk_ahi_natural_color.jpg’,
      ‘geoColor’: ‘http://rammb.cira.colostate.edu/ramsdis/online/images/latest_hi_res/himawari-8/full_disk_ahi_true_color.jpg’,
      ‘airMass’: ‘http://rammb.cira.colostate.edu/ramsdis/online/images/latest_hi_res/himawari-8/full_disk_ahi_rgb_airmass.jpg’,
      ‘fullBand’: ‘http://rammb.cira.colostate.edu/ramsdis/online/images/latest/himawari-8/himawari-8_band_03_sector_02.gif’,
      ‘europeDiscNat’: ‘http://oiswww.eumetsat.org/IPPS/html/latestImages/EUMETSAT_MSG_RGBNatColour_LowResolution.jpg’,
      ‘europePartSnow’: ‘http://oiswww.eumetsat.org/IPPS/html/latestImages/EUMETSAT_MSG_RGBSolarDay_CentralEurope.jpg’,
      ‘centralAmericaDiscNat’: ‘http://goes.gsfc.nasa.gov/goescolor/goeseast/overview2/color_lrg/latestfull.jpg’
      }
      console.log(this.imageUrls[this.config.style]);
      if (this.config.ownImagePath != ‘’) {
      this.url = this.config.ownImagePath;
      } else {
      if (this.config.imageSize > 800) {
      this.url = this.hiResImageUrls[this.config.style];
      } else {
      this.url = this.imageUrls[this.config.style];
      }
      setInterval(function () {
      self.updateDom(1000);
      console.log(‘update’)
      }, this.config.updateInterval);
      }
      },

          getStyles: function () {
                  return ["MMM-Globe.css"]
          },
      // Override dom generator.
      
          getDom: function () {
                  var wrapper = document.createElement("div");
                  if (this.config.style == "europeDiscNat") {
                          wrapper.style.height = 0.98 * this.config.imageSize - 1 + "px";
                          wrapper.style.overflow = "hidden";
                  }
      
      
                  var image = document.createElement("img");
                  if (this.config.ownImagePath != '') {
                          image.src = this.url;
                  } else if (this.config.style == "centralAmericaDiscNat"){
                          image.src = this.url + '?' + new Date().getTime();
                          image.className = 'MMM-Globe-image-centralAmericaDiscNat';
                  } else {
                          image.src = this.url + '?' + new Date().getTime();
                          image.className = 'MMM-Globe-image';
                  }
      
                  image.width = this.config.imageSize.toString();
                  image.height = this.config.imageSize.toString();
      
                  wrapper.appendChild(image);
                  return wrapper;
          }
      

      });

      .
      what am i doing wrong ??

      strawberry 3.141S 1 Reply Last reply Reply Quote 0
      • strawberry 3.141S Offline
        strawberry 3.141 Project Sponsor Module Developer @Desertswing
        last edited by

        @Desertswing something messed up your git files, you might want to just delete the folder and reclone the module

        Please create a github issue if you need help, so I can keep track

        D 1 Reply Last reply Reply Quote 0
        • D Offline
          Desertswing @strawberry 3.141
          last edited by

          @strawberry-3.141 just delete the folder with a command ore ??

          1 Reply Last reply Reply Quote 0
          • D Offline
            Desertswing
            last edited by

            Nvm i got it removed!

            1 Reply Last reply Reply Quote 0
            • D Offline
              Desertswing
              last edited by

              still this error,

              error: Unable to append to .git/logs/refs/remotes/origin/develop: Permission den ied
              From https://github.com/MichMich/MagicMirror
              ! a6485b6…88a01d3 develop -> origin/develop (unable to update local ref)

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              Enjoying MagicMirror? Please consider a donation!
              MagicMirror created by Michael Teeuw.
              Forum managed by Sam, technical setup by Karsten.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy