@cowboysdude Is it possible to explain me how i need to implent that source into an module ?
ore make a module for that at all?
I`m new to this kind of scripting… call me an NOOB :)
Read the statement by Michael Teeuw here.
Posts
-
RE: TV guide
-
TV guide
Is it possible to make like an tv guide to show what today`s movie is on the menu ?
-
RE: MMM-Globe problems with refreshing pictures.
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) -
RE: MMM-Globe problems with refreshing pictures.
@strawberry-3.141 just delete the folder with a command ore ??
-
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 ?? -
RE: MMM-Globe
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
what am i doing wrong ??
-
RE: More then 1 module on the same spot..?
Thank u for the fast support,
do i need to place the code somewhere special ore just under the first array of the start of modules. -
More then 1 module on the same spot..?
Hi all is it possible to make an module replacing itself by going to an dif. module on the same spot by fading ore swiping itself…? :P
i`m completely new to programming and i like to learn something from u guys in the future on so i can make my own modules and share them with u! :D