MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. emrah_asl
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    E
    Offline
    • Profile
    • Following 2
    • Followers 0
    • Topics 13
    • Posts 42
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: icon + compliments_plus + How to communicate with default weather module ?

      Guys, thanks for assisting me but I think the problem in my weather.js, because I guess it is not sending any notification to client side.

      love that module, but unable to find node_helper.js inside of default/weather directory.

      I would like to send notification to client side into this compliment in order to listen and put appropriate text for current weather.

      this compliment module have this

      notificationReceived: function(notification, payload, sender) {
      if (notification === “CURRENTWEATHER_DATA”) {
      console.log(“251”, payload.data);
      this.setCurrentWeatherType(payload.data);
      }

      But I dont get how to send data from my weather module.

      Sorry for mixed up

      posted in Troubleshooting
      E
      emrah_asl
    • RE: icon + compliments_plus + How to communicate with default weather module ?

      How can I connect the Compliments Module with the Weather Module for weather-controlled display of compliments?
      I know there’s a line currentWeatherType: ""in compliments.js but I don’t know what I have to insert in there.

      posted in Troubleshooting
      E
      emrah_asl
    • RE: MMM-GoogleDriveSlideShow

      @sdetweil Sure. I will this tomorrow, I’m just testing the changes.

      this time, client always sending request to google drive.

      I am not sure that my tricks are correct way.

      posted in Entertainment
      E
      emrah_asl
    • icon + compliments_plus + How to communicate with default weather module ?

      https://github.com/hangorazvan/compliments_plus

      Hi, I love that module but I thought that is beyond on default compliment module.

      I want to use that module to alert weather warns to clients working with current default weather module

      Also I have .svg icon set for each situation. The only thing I want to show image and text depending on current weather.

      For ınstance if it is rainy , the module will show image + rainy text

      How can achieve this ?

      I see these code , but unable to undesrtand who is sending notification.

      notificationReceived: function(notification, payload, sender) { if (notification === “Weather data”) { this.setCurrentWeatherType(payload.data); } },

      posted in Troubleshooting
      E
      emrah_asl
    • RE: MMM-GoogleDriveSlideShow

      I changed code like below to fix my problem @sdetweil in node_helper.js

      getPhotos: async function() {
      
      		// Check if need reload
      		
      		// Get cache if not already loaded and cache file exists (after a restart for example)
      		if(!this.cache.created && this.cacheFileExists()){
      
      			let needReload = !this.cache || (new Date().getTime() - this.cache.created) / 1000 > this.config.refreshDriveDelayInSeconds;
      
      			// (re)create the cache if missing or expired
      			if(needReload){
      				this.log("No cache file, or expired, (re)creating it...");
      				await this.createCache();
      				this.cache.photos = await this.cache.photos.filter(photo=> !this.alreadySentPhotoIds.includes(photo.id));
      			} else
      
      			this.log("No memory cache, loading it from disk");
      			await this.loadCache();
      
      		} else this.createCache();
      
      		return this.cache.photos;
      	}
      
      posted in Entertainment
      E
      emrah_asl
    • MMM-RemoteCompliments only show first run

      Hi, I love that module, IT’s working fine when I type “npm start” it is exactly show my remote file content via Google Drive.

      But When type CTRL+R for refreshing page (It needs for my modules, scheduled 10 minutes period) , MMM-RemoteCompliments module is disappearing.

      The only way to bring it , I’m triggering currentCompliment.doc file for typing space etc.

      Any help ?

      {
      			module: "MMM-RemoteCompliments",
      			position: "top_center",	
                  config: {
                     classes:"thin medium bright"
                  }
              },
      
      posted in Troubleshooting
      E
      emrah_asl
    • RE: MMM-GoogleDriveSlideShow

      Hi, after deleted my photo from google drive , it still show even I change

      refreshDriveDelayInSeconds: 5000,
      refreshSlideShowIntervalInSeconds: 15,

      How can I clear cache ? any idea

      thank you for your helping.

      posted in Entertainment
      E
      emrah_asl
    • RE: MMM-GoogleDriveSlideShow npm-install shows no progress

      I am not sure why it is not work, but it works with yarn install

      thanks for your help

      posted in Troubleshooting
      E
      emrah_asl
    • RE: MMM-GoogleDriveSlideShow npm-install shows no progress

      I’m working with yarn instead of npm I will let you know result

      posted in Troubleshooting
      E
      emrah_asl
    • RE: MMM-GoogleDriveSlideShow npm-install shows no progress

      Hi @sdetweil I erased packahe-lock.jon file. Afterwards I typed npm-install still locked.

      PS C:\....\modules\MMM-GooglePhotos> npm install
      npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
      npm WARN deprecated har-validator@5.1.5: this library is no longer supported
      [ .................] \ fetchMetadata: sill pacote range manifest for p-limit@^2.0.0 fetched in 217ms
      

      Waiting here.

      posted in Troubleshooting
      E
      emrah_asl
    • 1 / 1