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

    Eisblume

    @Eisblume

    0
    Reputation
    276
    Profile views
    17
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    Eisblume Unfollow Follow

    Latest posts made by Eisblume

    • RE: MMM-RAIN-RADAR - Correct time

      It would be nice if someone implemented the Rain-Radar from WetterOnline.de ;-)

      posted in Troubleshooting
      E
      Eisblume
    • RE: MMM-Navigate, Navigation inside MagicMirror with Rotary Encoder

      @AxLed said in MMM-Navigate, Navigation inside MagicMirror with Rotary Encoder:

      {notification:‘BUTTON_PRESSED’,payload:‘’},

      Thanks. Works perfect !!!

      posted in System
      E
      Eisblume
    • RE: MMM-Navigate, Navigation inside MagicMirror with Rotary Encoder

      @AxLed
      Yes very interesting experiences :-) !

      Could you explain my how to start “Tagesschau in 100 Sekunden” in MMM-Navigate ??

      posted in System
      E
      Eisblume
    • RE: MMM-Navigate, Navigation inside MagicMirror with Rotary Encoder

      @AxLed
      Ok, i fix it now for me.

      I know, it is a dirty code, but don’t found another solution :dizzy_face:

      I attached the KY040 python script in the node_helper.js. Then everything works fine.

      //node_helper.js
      /* Magic Mirror
       * Node Helper: {MMM-Navigate}
       *
       * By {AxLED}
       * {MIT} Licensed.
       */
      
       //Debugging
       //tail -f ~/.pm2/logs/mm-out-0.log
       //tail -f ~/.pm2/logs/mm-error-0.log 
      
      const Gpio = require('onoff').Gpio;
      ...
      const spawn = require("child_process").spawn;
      //Variables
      ...
        start: function() {
      		var self = this;
      		this.loaded = false;
      		var process = spawn("python", ["/home/pi/Downloads/KY040/examples/python3.py"]);
      	},
      	
      ...
      });
      
      
      posted in System
      E
      Eisblume
    • RE: MMM-Navigate, Navigation inside MagicMirror with Rotary Encoder

      @AxLed
      Do not think that I am lying ;-), but it works fine, when I start MagicMirror and after that I start the python - script from here https://github.com/martinohanlon/KY040.

      cw, cww and press works absolutely fine.

      It is very strange.

      posted in System
      E
      Eisblume
    • RE: MMM-Navigate, Navigation inside MagicMirror with Rotary Encoder

      @AxLed
      Also after clean install with nothing more, the default modules and MMM-Navigate and MMM-Remote-Controll it doesn’t work.

      Here you can see: https://youtu.be/G2eRoPxRPjU

      Only when I remove ground, the press action works. But then, the cw and cww doesn’t work…

      posted in System
      E
      Eisblume
    • RE: MMM-Navigate, Navigation inside MagicMirror with Rotary Encoder

      Thank you so much for your help. But It still doesn’t work.

      The cabeling is correct I checked it many times ;-)

      The crazy thing is, when I remove ground, the press button works, but not the cw and cww.

      I think, I will try a clean reinstall on my RPi3.

      posted in System
      E
      Eisblume
    • RE: MMM-Navigate, Navigation inside MagicMirror with Rotary Encoder

      Ok, thanks @AxLed !!

      config.js:

      /* 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: "0.0.0.0", // 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", "::ffff:192.168.1.1/120", "192.168.1.1/24"], // 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: "clock",
      			position: "top_left"
      		},
      		{
      			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)
      					},
      },
      		{
          		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
          		config: {
              		customCommand: {},  // Optional, See "Using Custom Commands" below
              		customMenu: "custom_menu.json", // Optional, See "Custom Menu Items" below
              		showModuleApiMenu: true, // Optional, Enable the Module Controls menu
              		apiKey: ""         // Optional, See API/README.md for details
          		}
      		},
      		{
      			module: "updatenotification",
      			position: "top_bar"
      		},
      		{
      			module: "calendar",
      			header: "Familie Reetz",
      			position: "top_left",
      			config: {
      				calendars: [
      					{
      						symbol: "calendar-check",
      						url: "webcal://pxxxxxxm/xxxxxxxKSw_tdQ8WGeTZVjgr6Vwn1HDxxxxxxx5OuupPnKOIExxxx"
      					}
      				]
      			}
      		},
      //		{
      //			module: "compliments",
      //			position: "lower_third"
      //		},
      {
      			module: "currentweather",
      			position: "top_right",
      			config: {
      				location: "xxxx",
      				locationID: "xxx",  //ID from http://bulk.openweathermap.org/sample/; unzip the gz file and find your city
      				appid: "xxxxx"
      			}
      		},
      		{
      			module: "weatherforecast",
      			position: "top_right",
      			header: "Wettervorhersage",
      			config: {
      				location: "xxxx",
      				locationID: "xxxx",  //ID from https://openweathermap.org/city
      				appid: "xxxxx"
      			}
      		},
      		{
      			module: "newsfeed",
      			position: "bottom_bar",
      			config: {
      				feeds: [
      					{
      						title: "Tagesschau",
      						url: "http://www.tagesschau.de/xml/rss2"
      						//url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml"
      					}
      				],
      				showSourceTitle: true,
      				showPublishDate: true
      			}
      		},
      		{
          		module: "MMM-Fuel",
          		position: "bottom_left",
          		config: {
              			api_key: "xxxxx",
              			lat: 123456,
              			lng: 654321,
              			types: ["diesel"],
              			radius: 15,
              			max: 3     			
          				}
      		},
      		{
      	        module: 'MMM-Dreambox',
      			header: 'Vu+ Ultimo4K powered by VTi',
      			position: 'bottom_right',
      			config: {
      				apiBase: 'http://192.168.1.50:90',
      				//omxargs: ' --vol -6000 --win 0,625,590,957 --live ',
      				omxargs: ' --win 600,60,1490,940 -o both ',
      				refreshInterval: 1000 * 30, //refresh every 30 seconds
      				apibouquet: 0, //bouquet, if there is more than one under apiservices (/web/getallservices),
      				apiRecordingsID: 0, //which recording folder should be listed
      				listmax: 10,
      				apiabout: '/web/about',
      				apiservices: '/web/getallservices',
      				apiepgnow: '/web/epgnow?bRef=',
      				apizap: '/web/zap?sRef=',
      				apiTimerlist: '/web/timerlist',
      				apiServicelistplayable: '/web/servicelistplayable?sRef=',
      				apiLocations: '/web/getlocations', //where are the recording folders listed
      				apiMovielist: '/web/movielist?dirname=' //link for opening recording folder and list recordings
      				}
      		},
      	]
      
      };
      
      /*************** DO NOT EDIT THE LINE BELOW ***************/
      if (typeof module !== "undefined") {module.exports = config;}
      
      
      posted in System
      E
      Eisblume
    • RE: MMM-Navigate, Navigation inside MagicMirror with Rotary Encoder

      @AxLed
      I tried every very with different press speed. It doesn’t work. No press Signal will be sent :-(

      I don´t understand why cw and cww works fine, but not the press - Button?

      Edit:
      I test the Rotary with this: https://github.com/martinohanlon/KY040
      Here the press button works fine.

      pi@raspberrypi:~/EncoderTest/KY040/examples $ python python3.py
      turned - 0
      turned - 0
      turned - 1
      turned - 1
      button pressed
      button pressed
      button pressed
      button pressed
      button pressed
      button pressed

      posted in System
      E
      Eisblume
    • RE: MMM-Navigate, Navigation inside MagicMirror with Rotary Encoder

      @AxLed
      I use a Raspberry Pi 3 b+. The F2F cables between the rotary and the pi are 20cm long.
      I tried different speeds for pressing and releasing.

      When i debug the code, no action arrives when i press the button.

      Is it possible that there are problem with other modules I use ??

      Eisblume

      posted in System
      E
      Eisblume