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

    Posts

    Recent Best Controversial
    • RE: Lost Swipe functionality

      @sdetweil Correct, not sure why I wrote buster when os-release clearly stated bookworm.

      posted in Troubleshooting
      S
      seabass
    • RE: Lost Swipe functionality

      @mischag Sorry to reply to an old issue but was wondering how exactly you fixed your issue? My MMM-Touch doesn’t work as well. I’m using a Raspberry Pi 5 with the latest Pi OS, Debian 12 Buster. I can perform touch, swipe, drag and drop, etc. outside of the Magic Mirror interface but as I said, not in MMM-Touch. Touch does work when using the page-indicator module and also in MMM-SmartTouch but swiping seems to be ignored or not recognized.

      posted in Troubleshooting
      S
      seabass
    • RE: Kitchen Touchscreen Dashboard

      @Niggich I think @sdetweil is correct that MMM-RemoteControl is not related to Touch. I can try it in a bit to confirm. I do have a question on the MMM-Touch module though that I’m hoping one of you or anyone for that matter can answer. When using the touch module, does it allow touch/swipe across the entire screen or just within the module that is loaded on the screen itself?

      posted in Show your Mirror
      S
      seabass
    • RE: Kitchen Touchscreen Dashboard

      @Niggich Hopefully the format looks okay but here you go. Thanks in advance for your help. Under the MMM-Touch section I currently added another sendnotification NEW_PAGE but it didn’t have any impact.

      let config = {
      	address: "localhost",
      	port: 8080,
      	basePath: "/",
      	ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1", "192.168.1.228"],
              useHttps: false,
      	httpsPrivateKey: "",
      	httpsCertificate: "",
      
      	language: "en",
      	locale: "en-US",
      	logLevel: ["INFO", "LOG", "WARN", "ERROR"],
      	timeFormat: 12,
      	units: "imperial",
      
      	modules: [
      		{
      			module: "alert",
      		},
      		{
      			module: "updatenotification",
      			position: "top_bar"
      		},
      		{
      			module: "clock",
      			position: "top_left"
      		},
      		{
      			module: "calendar",
      			header: "US Holidays",
      			position: "top_left",
      			config: {
      				calendars: [
      					{
      						fetchInterval: 7 * 24 * 60 * 60 * 1000,
      						symbol: "calendar-check",
      						url: "https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics"
      					}
      				]
      			}
      		},
      		{
      			module: "compliments",
      			position: "lower_third"
      		},
      		{
      			module: "weather",
      			position: "top_right",
      			config: {
      				weatherProvider: "openmeteo",
      				type: "current",
      				lat: 44.953873,
      				lon: -123.0884734
      			}
      		},
      		{
      			module: "newsfeed",
      			position: "bottom_bar",
      			config: {
      				feeds: [
      					{
      						title: "Fox News",
      						url: "https://moxie.foxnews.com/google-publisher/latest.xml"
      					}
      				],
      				showSourceTitle: true,
      				showPublishDate: true,
      				broadcastNewsFeeds: true,
      				broadcastNewsUpdates: true
      			}
      		},
      		{
      		        module: 'MMM-page-indicator',
      		        position: 'bottom_bar',
      		        config: {
                  		activeBright: true,
      		        }
      		},
      		{
      			module: "MMM-pages",
      		        config: {
      		            timings: {
                      		default: 5000,               // rotate every 5 seconds
      		                0: 20000                     // page 0 rotates every 20 seconds
      		            },
      		            modules: [
                      		["newsfeed"], 				 // page 0
      		                ["calendar", "compliments"], // page 1
      		            ],
      		            fixed: [                         // modules that are always shown
      						"alert",
                      		"clock",
      		                "weather",
                      		"MMM-page-indicator",
      						"MMM-Touch",
      						"MMM-ViewNotifications"
      		            ]
      		        }
      		},
      		{
      		        module: 'MMM-ViewNotifications',
      		        position: "top_left",
      		        header: "Notifications",
      		        config: {
                      		// See below for Configuration Options
                  		}
             	},
      		{
      			module: "MMM-Touch",
      			position: "top_center",
      			classes: "",
      			disabled: false,
      			config: {
      				debug: false,
      				useDisplay: false,
      				autoMode: false,
      				defaultMode: "default",
      				gestureCommands: {
      					"default": {
      						"TAP_1": (commander) => {commander.sendNotification("USER_PRESENCE", true);},
      						"SWIPE_RIGHT_1": (commander) => {
      							commander.sendNotification("NEW_PAGE"),
      							commander.sendNotification("PAGE_DECREMENT", null);
      						},
      						"SWIPE_LEFT_1": (commander) => {
      							commander.sendNotification("NEW_PAGE"),
      							commander.sendNotification("PAGE_INCREMENT", null);
      						},
      					}
      				}
      			}
        		}
      	]
      };
      
      /*************** DO NOT EDIT THE LINE BELOW ***************/
      if (typeof module !== "undefined") { module.exports = config; }
      
      posted in Show your Mirror
      S
      seabass
    • RE: Kitchen Touchscreen Dashboard

      @Niggich Thanks for the sample code. Unfortunately I still can’t get it working. I’m also using the MMM-ViewNotifications module and never see a notification sent from MMM-Touch when swiping. I used your exact code but commented out all the gestures except SWIPE_RIGHT_1 and SWIPE_RIGHT_2.

      I know the touchscreen works because I’m also using the page-indicator module which sends the notification to change pages without issue. Do you have any suggestions on what I can look at?

      Thanks!

      posted in Show your Mirror
      S
      seabass
    • RE: Kitchen Touchscreen Dashboard

      @Niggich I see you’re using the MMM-Touch and MMM-pages modules. Are you able to swipe to the next page configured with the MMM-pages module? Would you be able to share your module configuration for the MMM-Touch and MMM-pages modules as I’m unable to get the MMM-Touch module working with my setup. Thank you!

      posted in Show your Mirror
      S
      seabass
    • RE: Home Dashboard

      @Hilt I like the depth of the mirror. Can you tell me what monitor you use? Thanks!

      posted in Show your Mirror
      S
      seabass
    • RE: How to Swipe between pages

      @sdetweil The only notification from MMM-Touch I saw was that onIdle one I mentioned earlier. I saw a css error in the dev console. I’m not in front of the Pi right now so I can’t get the exact message but I don’t think it has anything to do with this issue. I have the MMM-Pages, MMM-page-indicator and standard modules loaded. I initially had the MMM-SmartTouch loaded which worked but I removed it for now until I can get the MMM-Touch working.

      posted in Troubleshooting
      S
      seabass
    • RE: How to Swipe between pages

      @sdetweil I’ve been trying to use MMM-Touch (https://github.com/gfischershaw/MMM-Touch/tree/master) which says it’s a plugin for touch gesture commander using touchscreen. Regarding what type of swipe, I’m wanting to use finger swipe on the touchscreen. For testing purposes, mouse swipe when using VNC would be nice.

      posted in Troubleshooting
      S
      seabass
    • RE: How to Swipe between pages

      @sdetweil I seem to only see the onIdle notification from the MMM-Touch module. When I use the MMM-SmartTouch module it works as it should so I know the touch screen is working fine. Here’s my config for MMM-Touch.

      module: "MMM-Touch",
      			position: "fullscreen_above", 
      			config: {
      				debug: false,
      				useDisplay: true, 
      				autoMode: false, 
      				threshold: {
      					moment_ms: 1000 * 0.5,
      					double_ms: 1000 * 0.75, 
      					press_ms: 1000 * 3,
      					move_px: 50,
      					pinch_px: 50, 
      					rotate_dg: 20, 
      					idle_ms: 30000,
      				},
      				defaultMode: "default", 
      				onTouchStart: "TOUCH_ACTIVITY_STARTED", 
      				onTouchEnd: null, 
                                      onTouchEnd: "TOUCH_ACTIVITY_ENDED"
      				onIdle: "TOUCH_IDLE_TRIGGERED", 
      				gestureCommands: {
      					"default": {
      						"SWIPE-LEFT": (commander, gesture) => {
      							commander.sendNotification("NEW_PAGE"),
      							commander.sendNotification("PAGE_INCREMENT")
      						},
      						"SWIPE-RIGHT": (commander, gesture) => {
      							commander.sendNotification("NEW_PAGE"),
      							commander.sendNotification("PAGE_DECREMENT")
                              }
      					}
      				}
      			}
      
      posted in Troubleshooting
      S
      seabass
    • 1 / 1