MMM-Globe problems with refreshing pictures.



  • 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 ??



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



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



  • Nvm i got it removed!



  • 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)


Log in to reply
 

Looks like your connection to MagicMirror Forum was lost, please wait while we try to reconnect.