• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

MMM-Navigate I have a question about the module

Scheduled Pinned Locked Moved Unsolved General Discussion
8 Posts 2 Posters 2.4k Views 1 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    TheDuDiop
    last edited by TheDuDiop May 8, 2019, 7:43 PM May 8, 2019, 7:42 PM

    https://github.com/Ax-LED/MMM-Navigate here is a link

    Das Module ist implementiert, und funktioniert auch mit dem Zubehör dazu. So jetzt meine Frage:
    was muss ich umändern damit, ich auf die nächste Seite ein anderes Modul anzeigen lassen kann. Gerne auch nur 20sekunden und dann wieder zurück oder auswählbar und manuel zurück

    The module is implemented, and also works with the accessories. So now my question:
    what do i need to change so that i can display another module on the next page. Also like only 20 seconds and then back again or selectable and manual back

    sorry for my english and keep smile

    0_1557344454998_naviagte.JPG

    {
    module: “MMM-Navigate”,
    header: “Navigation”,
    position: “top_left”,
    config: {
    Alias: [
    ‘Seiten blättern’,
    ‘News (mehr/weniger Details)’,
    ‘Test notification’,
    ‘News - mehr Details’,
    ‘News - weniger Details’,
    ‘Neustart MagicMirror (PM2)’,
    ‘Neustart’,
    ‘Herunterfahren’
    ],
    Action: [
    [{notification:‘PAGE_INCREMENT’,payload:‘’},{notification:‘PAGE_DECREMENT’,payload:‘’}],//action array, first press locks menu, after this rotation CW/CCW executes, second press release lock mode
    [{notification:‘ARTICLE_MORE_DETAILS’,payload:‘’},{notification:‘ARTICLE_LESS_DETAILS’,payload:‘’}],
    {notification: “SHOW_ALERT”, payload: {type:“notification”,message:“Dies ist eine Testnachricht”}},//single action, execute on press
    {notification:‘ARTICLE_MORE_DETAILS’,payload:‘’},
    {notification:‘ARTICLE_LESS_DETAILS’,payload:‘’},
    {notification: “REMOTE_ACTION”, payload: {action: “RESTART”}},
    {notification: “REMOTE_ACTION”, payload: {action: “REBOOT”}},
    {notification: “REMOTE_ACTION”, payload: {action: “SHUTDOWN”}}
    ],
    GPIOPins: [26,20,19]//rotary cw, rotary ccw, rotary press (BCM Numbering)
    },
    },

    1 Reply Last reply Reply Quote 0
    • A Offline
      AxLed Module Developer
      last edited by May 8, 2019, 10:43 PM

      English Text see below
      Hi,
      welches Modul benutzt du um verschiedene Seiten anzuzeigen?
      Ich habe MMM-Pages im Einsatz, damit geht auch mein Mustercode im Modul MMM-Navigate.

      Gruß

      AxLED
      …
      Hi,
      which module do you use to display different pages?
      I use MMM-Pages, so my sample code in the module MMM-Navigate works.

      Greets

      AxLED

      1 Reply Last reply Reply Quote 0
      • T Offline
        TheDuDiop
        last edited by May 9, 2019, 7:51 AM

        guten morgen,

        danke für die schnelle antwort. Habe nur dein Modul MMM-Navigate installiert, und dachte mit dort kann ich einen Verlinkung zu den HTMLs dann machen aber leider hat dies nicht so funktioniert wie ich es mir vorgestellt habe. Wenn ich dich richtig verstanden habe, hast du MMM Pages und MMM Navigate zusammengemischt ? Damit es über den externen Controller geht.

        0_1557388146910_screenmmm.JPG

        1 Reply Last reply Reply Quote 0
        • A Offline
          AxLed Module Developer
          last edited by May 9, 2019, 7:07 PM

          @TheDuDiop
          See english text below
          Hallo,
          ja MMM-Navigate überwacht “nur” die GPIO Pins deines Raspberry auf EIngaben eines Rotary Encoders und kann dann über das Notification System des Magic Mirror Befehle absetzen. Die Befehle funktionieren aber nur, wenn das zugehörige Modul diese erhält und verarbeitet.
          Bsp. (Befehl / empfangendes Modul)
          {notification:‘PAGE_INCREMENT’,payload:’’}/ MMM-Pages
          Test es mal mit News - mehr Details, sollte funktionieren, da News ein Standardmodul des MM ist.

          Gruß

          AxLED


          english:
          Hi,
          yes MMM-Navigate “only” monitors the GPIO pins of your Raspberry for inputs of a Rotary Encoder and can then send commands via the Magic Mirror Notification System. However, the commands only work if the associated module receives and processes them.
          ** Example (Command / receiving module) **
          {notification: 'PAGE_INCREMENT', payload: ''} / MMM-Pages
          Test it with News - more details, should work, because news is a standard module of MM.

          AxLED

          1 Reply Last reply Reply Quote 0
          • T Offline
            TheDuDiop
            last edited by May 10, 2019, 8:33 PM

            guten abend,

            ich habe es fast hinbekommen, das Problem sitzt vor dem PC.
            Jetzt habe ich das Problem, dass das Modul es nicht ansteuert und keine 4Pages hinbekomme.
            Kannst du dir evtl mein Programmiercode ansehen und dies verbessern. Vielen dank

            good evening,

            I almost managed it, the problem is in front of the PC.
            Now I have the problem that the module does not control it and does not get 4Pages.
            Can you possibly look at my programming code and improve this. Many Thanks

            here a my config.

            /* Magic Mirror Config Sample
            *

            • By Michael Teeuw http://michaelteeuw.nl
            • MIT Licensed.
            • For more information how you can configurate this file
            • See https://github.com/MichMich/MagicMirror#configuration

            */

            var config = {
            address: “localhost”, // Address to listen on, can be:
            // - “localhost”, “127.0.0.1”, “::1” to listen on loopback interface
            // - another specific IPv4/6 to listen on a specific interface
            // - “”, “0.0.0.0”, “::” to listen on any interface
            // Default, when address config is left out, is “localhost”
            port: 8080,
            ipWhitelist: [“127.0.0.1”, “::ffff:127.0.0.1”, “::1”], // Set [] to allow all IP addresses
            // or add a specific IPv4 of 192.168.1.5 :
            // [“127.0.0.1”, “::ffff:127.0.0.1”, “::1”, “::ffff:192.168.1.5”],
            // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
            // [“127.0.0.1”, “::ffff:127.0.0.1”, “::1”, “::ffff:192.168.3.0/28”],

            language: "de",
            timeFormat: 24,
            units: "metric",
            
            modules: [
            	{
            		module: "alert",
            	},
            	{
                		module: 'MMM-pages',
                		config: {
                        	modules:
                           		 [[ "weatherforecast", "newsfeed"],
                            		 [ "calendar", "MMM-EventHorizon" ]],
            			  fixed: ["clock", "currentweather", "MMM-page-indicator"],
                	}
            	},
            	{
                		module: 'MMM-page-indicator',
                		position: 'bottom_bar',
                		config: {
                    		pages: 2,
                	}
            		},
            	{
            		module: "updatenotification",
            		position: "top_bar"
            	},
            	{
            		module: "clock",
            		position: "top_left"
            	},
            	{
            		module: "MMM-Navigate",
            		header: "Navigation",
            		position: "top_left",
            		config: {
            		// Alias: [
            			// 'Wetter anzeigen',
            			// 'Webcam Vogelnest',
            			// 'Türstation',
            			// 'Fritzbox',
            			// 'News - weniger Details',
            			// 'Neustart MagicMirror (PM2)',
            			// 'Neustart',
            			// 'Herunterfahren'
            		// ],
            		// Action: [
            			// [{notification:'PAGE_INCREMENT',payload:''},{notification:'PAGE_DECREMENT',payload:''}],//action array, first press locks menu, after this rotation CW/CCW executes, second press release lock mode
            			// [{notification:'ARTICLE_MORE_DETAILS',payload:''},{notification:'ARTICLE_LESS_DETAILS',payload:''}],
            			// {notification: "SHOW_ALERT", payload: {type:"notification",message:"http://192.168.xx.xx:8080/remote.html"}},//single action, execute on press
            			// {notification:'ARTICLE_MORE_DETAILS',payload:''},
            			// {notification:'ARTICLE_LESS_DETAILS',payload:''},
            			// {notification: "REMOTE_ACTION", payload: {action: "RESTART"}},
            			// {notification: "REMOTE_ACTION", payload: {action: "REBOOT"}},
            			// {notification: "REMOTE_ACTION", payload: {action: "SHUTDOWN"}}
            		// ],
            		GPIOPins: [26,20,19]//rotary cw, rotary ccw, rotary press (BCM Numbering)
            		},
            	},
            	{
            		module: "calendar",
            		header: "Johannes&Jennifer Kalender",
            		position: "top_left",
            		config: {
            			maximumEntries: 3, // Total Maximum Entries
            			calendars: [
            				{
            					symbol: "calendar-check",
            					url: "webcal://www.kreis-alzey-worms.eu/verwaltung-wGlobal/wGlobal/scripts/php/anwendungen/abfallwirtschaft/termine_icalendar.php?Location=Saulheim&Type=Next"
            				}
            			]
            		}
            	},
            

            {
            module: ‘MMM-DWD-WarnWeather’,
            position: ‘top_left’,
            config: {
            region: ‘Saulheim’,
            changeColor: true,
            minutes: false,
            displayRegionName: true,
            interval: 10 * 60 * 1000, // every 10 minutes
            loadingText: ‘Warnungen werden geladen…’,
            noWarningText: ‘Keine Warnungen’,
            severityThreshold: 1
            }
            },
            {
            module: “currentweather”,
            position: “top_right”,
            header: “Aktuelles Wetter”,
            config: {
            location: “Saulheim”,
            locationID: “2874225”, //ID from http://bulk.openweathermap.org/sample/; unzip the gz file and find your city
            appid: " xxxxxx "
            }
            },
            {
            module: “weatherforecast”,
            position: “top_right”,
            header: “Wetterprognose”,
            config: {
            maxNumberOfDays: 3,
            location: “Saulheim”,
            locationID: “2874225”, //ID from https://openweathermap.org/city
            appid: " xxxxxx "
            }
            },
            {
            module: “MMM-Fuel”,
            position: “top_right”,
            config: {
            provider: “tankerkoenig”,
            api_key: " xxxxxx ",
            lat: 49.86376,
            lng: 8.13526,
            types: [“e5”,“diesel”],
            sortBy: “diesel”,
            open: true,
            updateInterval: 900000,
            radius: 8,
            max: 3,
            }
            },
            {
            module: “MMM-NetworkScanner”,
            position: “top_right”,
            header: “Wer ist zu Hause online?”,
            config: {
            devices: [
            { macAddress: “xxxxxx”, name: “Jennifer”, icon: “female”},
            { macAddress: " xxxxxx ", name: “Johannes”, icon: “male”},
            { macAddress: " xxxxxx ", name: “Ma”, icon: “female”},
            { macAddress: " xxxxxx ", name: “Pa”, icon: “male”},
            { ipAddress: “192.168.2.101”, name: “Pi-Hole”, icon: “server”},
            { ipAddress: “192.168.2.180”, name: “K1”, icon: “globe”},
            { ipAddress: “192.168.2.181”, name: “K2”, icon: “globe”},
            ],
            showUnknown: true,
            showOffline: true,
            keepAlive: 10,
            updateInterval: 5
            }
            },
            {
            module: ‘MMM-pihole-stats’,
            position: ‘top_left’, // Or any valid MagicMirror position.
            header: “Pihole-Statstik”,
            config: {
            // See ‘Configuration options’ for more information.
            apiURL: ‘http://192.168.2.101/admin/api.php’,
            }
            },
            {
            disabled: false,
            module: ‘MMM-EventHorizon’,
            position: ‘top_center’,
            config: {
            timezone: “n37”, // See Timezone chart at bottom
            units: “1”, // 1=no units, 2=units initial only, 3=units abbr singular, 4= units abbr plural, 5= units full name
            size: “large”, // small, medium or large
            countUp: “yes”, // Count up after timer ends
            date: “2019-08-24”, // YYYY-MM-DD format ONLY
            time: “00:00:01”, // (HH:MM:SS) Exact time you want timer to end
            text1: “Hochzeit”, // 2 lines of text during timer
            text2: “Jennifer&Johannes”, // 2 lines of text during timer
            text1Color: “FF0000”, // Hex color codes
            text2Color: “62FF00”, // Hex color codes
            timerColor: “CCEEFF”, // Hex color codes
            endText1: “When timer ends”, // 2 lines of text when timer ends
            endText2: “Say something here”, // 2 lines of text when timer ends
            endText1Color: “FFFFFF”, // Hex color codes
            endText2Color: “62FF00”, // Hex color codes
            timerUpColor: “CCEEFF”, // Hex color codes
            colorpc: “000”, // color of the background 000 = black, t = transparent
            }
            },

            ]
            

            };

            /*************** DO NOT EDIT THE LINE BELOW ***************/
            if (typeof module !== “undefined”) {module.exports = config;}

            1 Reply Last reply Reply Quote 0
            • A Offline
              AxLed Module Developer
              last edited by May 11, 2019, 11:35 AM

              See english tex below.
              Was genau geht mit MMM-pages nicht?
              Was ich auf die schnelle sehe ist dass 4 Seiten mit deiner config für 2 Seiten nicht geht. Gruß AxLED

              What part of MMM-pages isnt working?
              On a quick check i see that 4 pages doesnt match to your config for 2 sites.
              AxLED

              T 1 Reply Last reply Mar 16, 2020, 8:29 PM Reply Quote 0
              • T Offline
                TheDuDiop @AxLed
                last edited by Mar 16, 2020, 8:29 PM

                @AxLed
                *

                @TheDuDiop @AxLed sorry I’m reporting so late. It works perfektli, the problem was before the pc. but i have a question, when i / if i I would like to click on the Weather (Wetter) button to open the “Weather module”. what do I have to change?

                entschuldigung dass ich mich nicht so lange drauf gemeldet habe, alles geht soweit super. Das problem was vor dem pc. jetzt eine letzte Frage. Wenn ich den Button Wetter klicke würde ich gerne das Modul Wetter aufgeht was muss ich dazu machen, dass das geht ?

                {
                disabled: false,
                module: “MMM-Navigate”,
                header: “Navigation”,
                position: “top_left”,
                config: {
                Alias: [
                ‘Seiten blättern’,
                ‘Wetter’,
                ‘Einkaufsliste’,
                ‘News - mehr Details’,
                ‘News - weniger Details’,
                ‘Neustart MagicMirror (PM2)’,
                ‘Neustart’,
                ‘Herunterfahren’
                ],
                Action: [
                [{notification:‘PAGE_INCREMENT’,payload:‘’},{notification:‘PAGE_DECREMENT’,payload:‘’}],//action array, first press locks menu, after this rotation CW/CCW executes, second press release lock mode
                [{notification:‘ARTICLE_MORE_DETAILS’,payload:‘’},{notification:‘ARTICLE_LESS_DETAILS’,payload:‘’}],
                {notification: “SHOW_ALERT”, payload: {type:“notification”,message:“Dies ist eine Testnachricht”}},//single action, execute on press
                {notification:‘ARTICLE_MORE_DETAILS’,payload:‘’},
                {notification:‘ARTICLE_LESS_DETAILS’,payload:‘’},
                {notification: “REMOTE_ACTION”, payload: {action: “RESTART”}},
                {notification: “REMOTE_ACTION”, payload: {action: “REBOOT”}},
                {notification: “REMOTE_ACTION”, payload: {action: “SHUTDOWN”}}
                ],
                GPIOPins: [26,20,19]//rotary cw, rotary ccw, rotary press (BCM Numbering)
                },
                },
                {
                module: ‘MMM-pages’,
                config: {
                modules:
                [[ “weatherforecast”, “MMM-Fuel”],
                [ “calendar”, “mmm-udr” ],
                [ “MMM-DWD-WarnWeather” ]],
                fixed: [“clock”, “MMM-page-indicator”, “MMM-Fuel”],
                }
                },

                1 Reply Last reply Reply Quote 0
                • A Offline
                  AxLed Module Developer
                  last edited by Apr 1, 2020, 6:21 PM

                  @TheDuDiop
                  see english text below
                  Ich verstehe deine Frage nicht, das Modul “weatherforecast” wird angezeigt, wenn die die entsprechende Seite anwählst, in deinem Fall die erste Seite von “MMM-pages”.

                  I don’t understand your question, the module “weatherforecast” is displayed when you select the corresponding page, in your case the first page of “MMM-pages”.

                  AxLED

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post
                  Enjoying MagicMirror? Please consider a donation!
                  MagicMirror created by Michael Teeuw.
                  Forum managed by Sam, technical setup by Karsten.
                  This forum is using NodeBB as its core | Contributors
                  Contact | Privacy Policy