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

    Kostosso

    @Kostosso

    2
    Reputation
    84
    Profile views
    8
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online
    Location Russia

    Kostosso Unfollow Follow

    Best posts made by Kostosso

    • RE: Collaboration of MMM-ProfileSwitcher and MMM-pages modules

      @sdetweil
      Thank you so much, but I didn’t fully understand where I need to specify

      ['page1']
      ['page2']
      
      
      ['pagen'] 
      

      and how do I link this definition to MMM-pages modules?

      I realized that I define classes in the header of each module

      module:'MMM-page-indicator',
              classes: 'default everyone',
      

      Can you elaborate a little more on this or a link where you can read it.

      posted in Troubleshooting
      K
      Kostosso
    • RE: Collaboration of MMM-ProfileSwitcher and MMM-pages modules

      :thumbs_up: Super! Issue closed!

      THANK YOU SO MUCH!:handshake:

      posted in Troubleshooting
      K
      Kostosso

    Latest posts made by Kostosso

    • MMM-OpenWeatherMapForecast does not receive data from the Internet

      Good afternoon,

      My module MMM-OpenWeatherMapForecast does not receive data from the Internet.
      I installed MM on My Home Server in Docker. I used the karsten13/magicmirror image. Everything is set up and running great. In the default configuration, all modules worked except for the weather.
      I did not dwell on this, but installed my own configuration that had previously worked on Raspberry.
      All modules, including Google calendars, started up fine, but … But the weather forecast module does not work again.
      I checked that from the mm container the ping openweathermap.org
      command works fine.
      However, the mm logs contain the following entries:

      [OpenWeatherMapForecast] **ERROR** Error: socket hang up

      There are no more errors in the logs.

      Help me please. What is this error and how can it be removed?

      Thanks a lot in advance!

      posted in Troubleshooting
      K
      Kostosso
    • RE: "Client Mode" installation + PIR

      @sdetweil
      Okay, then the command on the RPi should look like this?

      "chromium-browser" -noerrdialogs -kiosk -start_maximized --new-window --site-per-process --no-zygote --no-sandbox --disable-infobars --app=http://192.168.10.232:8080  --ignore-certificate-errors-spki-list --ignore-ssl-errors --ignore-certificate-errors --user-data-dir=$r 2>/dev/null
      

      Right?
      (No, docker with the server is on a different host.)

      I’ve read here that there can be problems with Cromium and that automatically restarting pm2 helps solve them. Or is this already “outdated information”?

      Thanks a lot

      posted in Hardware
      K
      Kostosso
    • RE: "Client Mode" installation + PIR

      @sdetweil

      Thanks for the answer.

      If I understand correctly, then it is enough for me to install a minimal system with a graphical interface and Cromium on RPI.

      After that, do the following line in autorun

      open -a "Google Chrome" http://localhost:$port --args -noerrdialogs -kiosk -start_maximized  --disable-infobars --ignore-certificate-errors-spki-list --ignore-ssl-errors --ignore-certificate-errors 2>/dev/null
      

      Right?

      And to wake up the monitor, use any Python script

      posted in Hardware
      K
      Kostosso
    • "Client Mode" installation + PIR

      Good afternoon.
      I made my first mirror on RPi3 and it worked pretty well. But with an increase in the number of modules, it began to work very unstable. Unfortunately, I don’t have RPi4 and decided to migrate everything to Docker on my server. I was able to run my project and see the “picture” in Chrome on PC.
      Now I want to run my finished mirror in “kiosk” mode. I have never done this and I have many questions.
      I found several posts on this topic, but they are few and there are no specific solutions.

      1. How to set the system correctly for this mode? Is it possible to just use the browser on the Raspberry or is it better to set it to “Client Only” mode?

      2. If “Client Only” is better, are there any instructions on how to do it right?!? This is a very important question, since the instructions on the site only say “run it with: node clientonly --address 192.168.1.5 --port 8080” and how to install is not described … :(

      3. I have a PIR sensor. It worked fine (waking up the mirror) when a person walked by (I don’t want to keep the mirror on all the time, including at night). A man approached - the mirror (monitor) turned on. I’m using a monitor connected to the Raspberry’s standard HDMI output. How can I use the sensor in Client Only mode? Can it be connected to PM2?

      4. I found a description of such a Pir-Sensor solution on the forum https://github.com/cowboysdude/Pir-Sensor

      5. If this is not possible, would it be a good idea to put a relay with a motion sensor that will turn off the power to the monitor?

      Thanks a lot in advance!

      posted in Hardware
      K
      Kostosso
    • RE: Collaboration of MMM-ProfileSwitcher and MMM-pages modules

      :thumbs_up: Super! Issue closed!

      THANK YOU SO MUCH!:handshake:

      posted in Troubleshooting
      K
      Kostosso
    • RE: Collaboration of MMM-ProfileSwitcher and MMM-pages modules

      @sdetweil
      How and where to use classes: I understood in modules.

      I read a lot of articles in the forum, but never our sample structure

      modules:[
      [ ‘page1’ ],
      [‘page2’]
      ]
      And how to apply it in practice, I did not find.

      Maybe there is a piece of the config file where it can be seen in detail (example).

      :folded_hands: Thanks again for your help.

      posted in Troubleshooting
      K
      Kostosso
    • RE: Collaboration of MMM-ProfileSwitcher and MMM-pages modules

      @sdetweil
      Thank you so much, but I didn’t fully understand where I need to specify

      ['page1']
      ['page2']
      
      
      ['pagen'] 
      

      and how do I link this definition to MMM-pages modules?

      I realized that I define classes in the header of each module

      module:'MMM-page-indicator',
              classes: 'default everyone',
      

      Can you elaborate a little more on this or a link where you can read it.

      posted in Troubleshooting
      K
      Kostosso
    • Collaboration of MMM-ProfileSwitcher and MMM-pages modules

      Please help me to get torn using MMM-ProfileSwitcher and MMM-pages modules

      I have multiple calendars and I want to display them separately on my page. To do this, I want to get the current page number from MMM-pages and use it as ‘classes:’ in the ProfileSwitcher.

      Here is what my config file looks like.

      let config = {
      	address: "0.0.0.0", 	// Address to listen on, can be:
      	port: 8080,
      	basePath: "/", 	
      	ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1", "192.168.1.0/24"],
      	useHttps: false, 		
      	httpsPrivateKey: "", 	
      	httpsCertificate: "", 
      
      	logLevel: ["INFO", "LOG", "WARN", "ERROR"], 
      	timeFormat: 24,
      	units: "metric",
      	modules: [
      //------------------------MMM-WatchDog----------------------------------------
      		{
      			module: 'MMM-WatchDog',
      			config: {
      				interval: 10,
      				timeout: 15,
      				// See 'Configuration options' for more information.
      			}
      		},
      //---------------------------MMM-pages--------------------------------------
      		{
      	        module: 'MMM-pages',
      	        config: {
      	        		modules:
      	                	[["alert", "clock", "updatenotification", "calendar"],
      	                	 ["calendar"]],
      					rotationTime: 15000, 
      					delayTime: 15000, 
      // !!!	        		  Action: [
      //!!!!	        		sendNotification("CURRENT_PROFILE", "1"),
      //!!!!        		notification:'CURRENT_PROFILE', payload: this.NEW_PAGE,
      	        		// ]
      	        		},
      		},
      //-------------------MMM-ProfileSwitcher ----------------------------
          {
              module: 'MMM-ProfileSwitcher',
              config: {
                  // See 'Configuration options' for more information.
              },
          },
      //-------------------MMM-page-indicator Page0 -------------------------
      		{
      	        module: 'MMM-page-indicator',
      	        classes: 'default everyone', 
      	        position: 'bottom_bar',
      	        config: {
      	            pages: 2,
      //!!!!	            notification:'CURRENT_PROFILE', payload: NEW_PAGE,
      //!!!!!	          Action: [
      //!!!!!			{notification:'CURRENT_PROFILE',payload: this.NEW_PAGE},
      //!!!!!				],
      			},	
      		},
      //------------
      		{
      			module: "alert",
      //			classes: 'default everyone', 
      			config: {
      				position: "center",
      				display_time: 4500,
      		},
      		{
      			module: "clock",
      			classes: 'default everyone', 
      			position: "top_left"
      		},
      //------------------calendar Page1 ---------
      {
      		module: "calendar",
      		classes: 1, 
      		header: "Alex",
      		position: "top_right",
      			config: {
      				displaySymbol: true,
      				maximumEntries: 12,
      				maximumNumberOfDays: 4,
      				coloredSymbolOnly: true,
      				calendars: [
      					{
      						name: "Alex",
      						displaySymbol: true,
      						symbol: 'user-secret',
      						url: "-------",
      //						maximumNumberOfDays: 1,
      						fade: false,
      						showEnd: true,
      						auth: {
      							user: '-----',
      							pass: '-------',
      							method: 'basic',
      						}	
      					},
      {
      		module: "calendar",
      		classes: '2',
      		header: "Den",
      		position: "top_right",
      			config: {
      				displaySymbol: true,
      				maximumEntries: 12,
      				maximumNumberOfDays: 4,
      				coloredSymbolOnly: true,
      				calendars: [
      					{
      						name: "Den",
      						symbol: 'user-astronaut',
      						url: "--------",
      //						maximumNumberOfDays: 1,
      						fade: false,
      						showEnd: true,
      						auth: {
      							user: '----------',
      							pass: '---------',
      							method: 'basic',
      						}	
      					},	
      				],
      			},
      },
      ]
      

      But I don’t know how should I write this.sendNotification(‘CURRENT_PROFILE’, ‘DESIRED_PROFILE_NAME_HERE’);

      Please help me figure it out. If possible, an example config file. And then I’ll figure it out myself.

      I will be very grateful for any help.
      Thanks in advance!

      posted in Troubleshooting
      K
      Kostosso