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

    Posts

    Recent Best Controversial
    • RE: Magic Mirror with touchscreen Display/Monitor

      @BJK Great to hear!! :)

      posted in Hardware
      SnilleS
      Snille
    • RE: Magic Mirror with touchscreen Display/Monitor

      @BJK I don’t start the xin.sh (with pm2). if you read in the xin.sh file you will find instructions how I did it… :) Here you can download the xin.sh.

      The script (if you don’t want to download it):

      #!/bin/bash
      
      # Before I just tested with the xinput command directly in the autostart file, but that did not work. So now instead I just created a script called xin.sh.
      # nano ~/xin.sh
      # Then added
      # DISPLAY=:0.0 xinput --set-prop "Multi touch Multi touch overlay device" "Coordinate Transformation Matrix" 0 1 0 -1 0 1 0 0 1
      # There should actually be 3 spaces between “Multi touch” and “Multi touch overlay device”. For some reason the board removes the extra spaces here.
      #
      # You can actually find the “name” of the device with this commandDISPLAY=:0.0 xinput list
      # Shows something like this:
      #
      # Virtual core pointer id=2 [master pointer (3)]
      #   Virtual core XTEST pointer id=4 [slave pointer (2)]
      #   Multi touch Multi touch overlay device id=6 [slave pointer (2)]
      # Virtual core keyboard id=3 [master keyboard (2)]
      # Virtual core XTEST keyboard id=5 [slave keyboard (3)]
      #
      # Depending on what you have connected to your RPi. 🙂
      # 
      # So, after creating the xin.sh I added that to the autostart file for LXDE:
      # Like this:
      # nano ~/.config/lxsession/LXDE-pi/autostart
      # Added at the end of the file.
      # @/home/pi/xin.sh
      # Restarted and it works.
      #
      DISPLAY=:0.0 xinput --set-prop "Multi touch   Multi touch overlay device" "Coordinate Transformation Matrix" 0 1 0 -1 0 1 0 0 1
      

      You have to figure out your own “matrix” of course… :) Not sure if mine is the same…

      posted in Hardware
      SnilleS
      Snille
    • RE: Magic Mirror with touchscreen Display/Monitor

      @core I also used a IR-Frame in my build. Works very well if you just want “simple” point and click and/or point and drag (even with two fingers)… I have not tested it with more advanced stuff. :) But for the MM it’s great. You can read about my build here and underneath the picture, you can find a link to a full photo album with pictures and text to all pictures about what you see. :)

      posted in Hardware
      SnilleS
      Snille
    • RE: MMM-homeassistant-sensors stopped working after HA 2021.10 update

      @asifnabi Hi, not with my module “only”, but if you have the information in HA, you can get it to the mirror using my module. I also believe there are modules that do fetch package data to the mirror directly, I just have not used any. :)
      Take a look here: https://github.com/MichMich/MagicMirror/wiki/3rd-Party-Modules

      posted in Troubleshooting
      SnilleS
      Snille
    • RE: MMM-HomeAssistant-Sensors (Development) - Show your HA Sensors on your Mirror

      Now it’s working again… On both mu mirrors… I don’t understand why… I fixed the “moment” problem at least, I hope… Pushed that… But I guess it’s still the SSL problems left. But I can’t replicate it. @Ivanov_d Where did you set the debug flag to get the errors?

      posted in Utilities
      SnilleS
      Snille
    • RE: MMM-HomeAssistant-Sensors (Development) - Show your HA Sensors on your Mirror

      @ivanov_d Nah… Not really, never been down the SSL rabbit hole… :) I have just forked this module and “fixed” the things I needed… I hope someone else can give some tips (PR:s)… My javascript skills are not that great ether… :)

      posted in Utilities
      SnilleS
      Snille
    • RE: MMM-HomeAssistant-Sensors (Development) - Show your HA Sensors on your Mirror

      @ivanov_d Interesting… Maybe it’s a package missing, but that would not explain why the non SSL connections would fail…
      I found another ting, if you don’t have the “clock” module enabled, the “moment.js” is not loaded, and therefore errors out my module (that uses the moment function)… So I have to fix that somehow as well… :)

      posted in Utilities
      SnilleS
      Snille
    • RE: MMM-HomeAssistant-Sensors (Development) - Show your HA Sensors on your Mirror

      @ivanov_d Interesting, I’m not using SSL in HA (I have a Reverse-proxy) that SSL:s everything… So, internally I can get to HA via http (or https) but externally I’ll always go through the reverse-proxy (and SSL). However, the development MM works both with and without SSL. But my real MM now don’t work with either… Darn! :)
      What I CAN do, is use curl from ssh on the real MM and get the “status” from all sensors with this…

      curl -X GET -H "Authorization: Bearer VeRy-LoNg-API-ToKen" -H "Content-Type: application/json" http://ha-IP:8123/api/states
      

      And it lists everything… Hm…

      posted in Utilities
      SnilleS
      Snille
    • RE: MMM-HomeAssistant-Sensors (Development) - Show your HA Sensors on your Mirror

      @ivanov_d Hmm… In my own adventures to find what’s going on, I managed to “break” my real mirror connection to HA (now getting the fetch-error) but my development mirror is still working (against the same HA instance).
      I don’t understand what’s going on. :)

      As for codebase I’m using my own fork: https://github.com/Snille/MMM-homeassistant-sensors.git

      Let me know if you get it to work again… :)

      posted in Utilities
      SnilleS
      Snille
    • RE: MMM-homeassistant-sensors stopped working after HA 2021.10 update

      @asifnabi Hi, if you don’t specify the port, it will default to port 8123. And if you are using ssl (https) you need the port to be set to 443. Otherwise it will not work.

      So, either do not use ssl (https) and you can skip the port option (because it will default to 8123).
      Or use ssl (https) but then you need to specify the port option to 443.

      Both options are working for me at least. I hope this clarify things…

      posted in Troubleshooting
      SnilleS
      Snille
    • 1 / 1