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

    majdzik84

    @majdzik84

    0
    Reputation
    13
    Profile views
    18
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    majdzik84 Unfollow Follow

    Latest posts made by majdzik84

    • RE: Problem with the positioning of the mirror modules. Cut from the top

      @BKeyport Thank you for your willingness to help.
      Unfortunately, I tried all the advice but nothing has changed :(
      It loads ok once in a few tries, but in most cases the whole screen is moved up.
      https://www.dropbox.com/s/ftc0abrnntcz9i0/VID_20210226_095022.mp4?dl=0

      modules: [
      {
        module: 'MMM-iFrame',
        position: 'bottom_center', 	// This can be any of the regions. 
        disabled: false,
        config: {
      	// See 'Configuration options' for more information.
           url: ["http://192.168.2.98:8123/magic-mirror/kamera?kiosk"], // as many URLs you want or you can just ["ENTER IN URL"] if single URL. 
           autoRefresh: false,
      	//	updateInterval: 0.5 * 60 * 1000, // rotate URLs every 30 seconds
           width: "1440", // width of iframe 
           height: "425", // height of iframe 
           frameWidth: "1440", // width of embedded iframe, height is beeing calculated by aspect ratio of iframe
        }
      },
      		{
      			module: "alert",
      			config: {
      				effect: "genie",} 
      		},
      		{
      			module: "updatenotification",
      			position: "top_bar"
      		},
      		{
      			module: "clock",
      			position: "top_left"
      		},
      		{
      			module: "calendar",
      			header: "KALENDARZ",
      			position: "top_left",
      			config: {
                      maximumEntries: 7,
                      maximumNumberOfDays: 365,
                      showLocation: false,
                      maxTitleLength: 25,
                      maxLocationTitleLength: 25,
                      wrapEvents: true,
                      wrapLocationEvents: false,
                      maxTitleLines: 3,
                      maxEventTitleLines: 3,
                      animationSpeed: 2000,
                      fade: false,
                      fadePoint: 0.25,
                      displayRepeatingCountTitle: true,
                      dateFormat: "MMM Do HH:mm",
                      dateEndFormat: "MMM Do HH:mm",
                      //showEnd: true,
                      fullyDayEventDateFormat: "MMM D",
                      timeFormat: "absolute",
                      getRelative: 6,
                      urgency: 1,
                      broadcastEvents: true,
                      hidePrivate: false,
                      sliceMultiDayEvents: false,
                      nextDaysRelative: true,
      				colored: true,
      				calendars: [{
      						symbol: "calendar-check-o",
      						url: "https:/basic.ics"
      					},
      {
      						symbol: "birthday-cake",
      						color: '#27b7e3',
      						url: "https://calendar.google.com/"
      					},
      {
      						symbol: "trash-alt",
      						color: '#ebd234',
      						url: "https://calendar.google.com/.ics"
      					},
      					
      {						
      						symbol: "calendar-times",
      						color: "#ff3b29",
      						url: "https://www.thunderbird.net/media/caldata/PolishHolidays.ics"
      					}]
      			}
      		},
      {
      	module: "MMM-Currentweather-MQTT",
      	disabled: false,
      	position: "top_right",
      	config: {
      				location: "Potępa",
      				locationID: "3094597", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
      				appid: "xxxx",
      		roundTemp: false,
      		degreeLabel: true,
      		showWindDirection: true,
      		showWindDirectionAsArrow: true,
      		showHumidity: true,
      		showFeelsLike: true,
      		useBeaufort: false,
      		useKMPHwind: true,
      		logging: true,
      		useWildcards: false,
      		showTempMax: true,
      		showTempMin: true,
      		mqttServers: [
      			{
      				address: '192.168.2.98',  // Server address or IP address
      				port: '1883',                // Port number if other than default
      				user: 'xxx',
      				password: 'xxx!',
      				subscriptions: [             // for now, all seven values must be 
      				                             // specified in the config, 
      							     // even if they are not delivered and not displayed.
      					{
      						topic: 'mirror/pogoda/temperatura', // Topic to look for
      						suffix: '°C',             // Displayed after the value
      						decimals: 1,              // Round numbers to this number of decimals
      						sortOrder: 10,            // sortOrder 10 has to contain the temperature 
      						maxAgeSeconds: 18000,     // take Openweather value if older than 5 hours
      					},
      					{
      						topic: 'mirror/pogoda/wilgotnosc',
      						suffix: '%',
      						decimals: 0,
      						sortOrder: 20,            // sortOrder 210 has to contain the humidity
      						maxAgeSeconds: 18000,
      					},
      					{
      						topic: 'mirror/pogoda/temp_piec',
      						suffix: '°C',
      						decimals: 1,
      						sortOrder: 30,            // sortOrder 30 has to contain the illumination
      						maxAgeSeconds: 18000,
      					},
      					{
      						topic: 'mirror/pogoda/wiatr',
      						suffix: '°C',
      						decimals: 1,
      						sortOrder: 40,            // sortOrder 40 has to contain the wind speed
      						maxAgeSeconds: 18000,
      					},
      					{
      						topic: 'wetter/act-wind-dir',
      						suffix: '°',
      						decimals: 0,
      						sortOrder: 50,            // sortOrder 50 has to contain the wind direction
      						maxAgeSeconds: 18000,
      					},
      					{
      						topic: 'wetter/raining',
      						suffix: '',
      						decimals: 0,
      						sortOrder: 60,            // sortOrder 60 has to contain the boolean if its just raining
      						maxAgeSeconds: 18000,
      						conversions: [
      							{ from: "true", to: "tak" },
      							{ from: "false", to: "nie" }
      						]
      					},
      					{
      						topic: 'wetter/rain-today',
      						suffix: '',
      						decimals: 1,
      						sortOrder: 70,            // sortOrder 70 has to contain the amount of rain today
      						maxAgeSeconds: 18000,
      					},
      					{
      						topic: 'mirror/pogoda/max',
      						label: 'c',
      						suffix: '',
      						decimals: 0,
      						sortOrder: 80,
      						maxAgeSeconds: 180000,
      					},
      					{
      						topic: 'mirror/pogoda/min',
      						label: 'c',
      						suffix: '',
      						decimals: 0,
      						sortOrder: 90,
      						maxAgeSeconds: 180000,
      					},
      				]
      			}
              ],
      	}
      },
      		{
      			module: "weatherforecast",
      			disabled: false,
      			position: "top_right",
      			header: "Prognoza pogody",
      			config: {
      				lang: "pl",
      				locationID: "xxx", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
      				appid: "xxxx",
      				maxNumberOfDays: 4,
                                      //colored: "false",
                                      fade: false,
                                      //fadePoint: 1,
                                      showRainAmount: true,
                                      scale: false,
      								
      			}
      		}, 
      {
          module: 'MMM-MQTT',
          position: 'top_right',
          header: '',
          config: {
              logging: false,
              useWildcards: false,
              mqttServers: [
                  {
                      address: '192.168.2.98',  // Server address or IP address
                      port: '1883',          // Port number if other than default
                      user: 'xxxx',          // Leave out for no user
                      password: 'xxxx!',  // Leave out for no password
                      subscriptions: [
                          {
                              topic: 'mirror/pogoda/powietrze', // Topic to look for
                              label: 'Powietrze jest', // Displayed in front of value
                              suffix: '',         // Displayed after the value
                              maxAgeSeconds: 350,    // Reduce intensity if value is older 
                          },
                          {
                              topic: 'mirror/pogoda/temp_piec', // Topic to look for
                              label: 'Temp.ogród: ', // Displayed in front of value
                              suffix: '°C',         // Displayed after the value
                              maxAgeSeconds: 350,    // Reduce intensity if value is older
      
                          },
      
                          {
                              topic: 'mirror/pogoda/co2', // Topic to look for
                              label: 'CO2 w salonie: ', // Displayed in front of value
                              suffix: 'ppm',         // Displayed after the value
                              maxAgeSeconds: 350,    // Reduce intensity if value is older
                               colors: [             // Value dependent colors
                                  { upTo: 500, value: "green", label: "green", suffix: "green" },
                                  { upTo: 600, label: "yellow", value: "yellow", suffix: "yellow" },
                                  { upTo: 900, label: "#ff4d00", value: "#ff4d00", suffix: "#ff4d00" },
                                  { upTo: 2000, label: "red", value: "red", suffix: "red"  }, // The last one is used for higher values too
                              ],
                          },
                      ]
                  }
              ],
          }
      },
      
      {
        module: "MMM-NowPlayingOnSpotify",
        position: "center", 
        disabled: false,
        config: {
      	showCoverArt: true,
          clientID: "xxx",
          clientSecret: "xxx",
          accessToken: "xxxxx",
          refreshToken: "xxxx-xxxx"
      
        }
      },
      
      {
          module: 'MMM-Remote-Control'
          // uncomment the following line to show the URL of the remote control on the mirror
          //, position: 'bottom_left'
          // you can hide this module afterwards from the remote control itself
      
      },
      	]
      };
      
      /*************** DO NOT EDIT THE LINE BELOW ***************/
      if (typeof module !== "undefined") {module.exports = config;}
      
      posted in Troubleshooting
      M
      majdzik84
    • Problem with the positioning of the mirror modules. Cut from the top

      Hi. please help.
      I lost my SD card and moved the installation to the SSD. Everything is ok except one thing.
      In the lower part of the mirror I have the MMM-iFrame module, I throw off the dasboard from Home assistant.
      Unfortunately, when starting / restarting the mirror, as you can see in the screenshot, the whole thing moves up and the upper modules are cut off.
      Interestingly, it sometimes loads correctly.
      When I remove the iframe module it loads as it should.

      Any suggestions on how I can fix this?
      e098450f-6aaf-4c52-9e96-94715e102697-image.png

      posted in Troubleshooting
      M
      majdzik84
    • RE: Force a module refresh - not the entire page

      @ashishtank

      Yes, it works - thank you :)

      posted in Requests
      M
      majdzik84
    • RE: Force a module refresh - not the entire page

      @ashishtank Yes, i added the code in MMM-homeassistant-sensors.js and restart

      a6091d47-70f4-4c84-a8d5-bd13d74cdab8-image.png

      I tried different variations but refreshhomeassistant it is not visible at all.

      I try
      fff75055-7c4d-4d77-897d-0fc37ad3bb12-image.png

      posted in Requests
      M
      majdzik84
    • RE: Force a module refresh - not the entire page

      @ashishtank
      When i try http://192.168.2.200:8080/api/module/MMM-homeassistant-sensors i dont see REFRESHHOME ASSISTANT

      {"success":true,"data":[{"index":"17","identifier":"module_17_MMM-homeassistant-sensors","name":"MMM-homeassistant-sensors","path":"modules/MMM-homeassistant-sensors/","file":"MMM-homeassistant-sensors.js","position":"bottom_left","configDeepMerge":false,"config":{"prettyName":false,"stripName":false,"title":"Home Assistant","host":"192.168.2.98","port":"8123","https":false,"token":"xxxxx","apipassword":"","updateInterval":120000,"displaySymbol":true,"debuglogging":false,"values":[{"sensor":"sensor.natalka_temperature","alertThreshold":26,"icons":[{"default":"thermometer"}]},{"sensor":"sensor.alicja_temperature","alertThreshold":26,"icons":[{"default":"thermometer"}]},{"sensor":"sensor.sypialnia_temperature","alertThreshold":26,"icons":[{"default":"thermometer"}]},{"sensor":"sensor.salon_temperatura","alertThreshold":26,"icons":[{"default":"thermometer"}]},{"sensor":"binary_sensor.zamek_front","icons":[{"state_off":"lock","state_on":"lock-open-variant"}]},{"sensor":"binary_sensor.zamek_tyl","icons":[{"state_off":"lock","state_on":"lock-open-variant"}]},{"sensor":"binary_sensor.brama_wjazdowa","icons":[{"state_off":"gate","state_on":"gate-open"}]},{"sensor":"binary_sensor.brama_lewa","icons":[{"state_off":"garage","state_on":"garage-open"}]},{"sensor":"binary_sensor.brama_prawa","icons":[{"state_off":"garage","state_on":"garage-open"}]}]},"classes":"MMM-homeassistant-sensors","hidden":false,"lockStrings":[]}]}
      

      When I try http://192.168.2.200:8080/api/module/homeassistant-sensors/refreshhomeassistant i get

      {"success":false,"message":"Module Name or Identifier Not Found!"}
      
      posted in Requests
      M
      majdzik84
    • RE: Force a module refresh - not the entire page

      @ashishtank Thank you for your answer. I am glad that there is such a possibility. Unfortunately, I don’t know where to start to get it. I will write what I mean and maybe I could count on help.

      I control the mirror through Home assistant using MMM-Remote-Control (e.g. I send command http://192.168.2.200:8080/api/module/alert/showalert?title=ZAMKNIJ ZAMEK&message=w d door%20frontowych) in the case of alerts.

      I have a module for showing sensors (https://github.com/leinich/MMM-homeassistant-sensors) that has the ability to set a time refresh.

      I would like to send a command to the mirror from Home assistant to update the module when the sensor changes its state.

      Do you know how to achieve it in a simple way for me?
      How do I send the updatedom command to this module?

      posted in Requests
      M
      majdzik84
    • Force a module refresh - not the entire page

      Is there any way to command refresh one specific module?
      I found an option to refresh the entire page. I would like this way to update the HA module when the sensor changes state, not just temporarily.

      posted in Requests
      M
      majdzik84
    • Weatherforcast / mmm-weatherforcast - openweather icon day/night not changing

      As the topic. I always have night icons in the weather forecast. Anyone have the same or only have this problem? How can I fix it?

      fd3bf657-7463-49dd-880b-3c6a1ddd58da-image.png

      posted in Troubleshooting
      M
      majdzik84
    • MMM-weatherforecast. Icon problem - still displays the same.

      Today I noticed that the icons in the module are not updating. It’s still wi-night-cloudy.
      I don’t know at what point it broke. I know it used to work properly.
      Can I fix it somehow?

      7f930a2f-3358-474e-9150-6dbe97140b5f-image.png

      922908ca-bfba-437a-a2a7-94df65fa4a32-image.png

      posted in Troubleshooting
      M
      majdzik84
    • RE: iFrame with username and password

      Chris check this https://support.actiontiles.com/en/communities/12/topics/2916-logging-into-actiontiles-in-iframe-with-no-keyboard
      its work for me

      posted in Troubleshooting
      M
      majdzik84