• 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-PythonPrint customisation

Scheduled Pinned Locked Moved Solved Troubleshooting
46 Posts 5 Posters 12.9k Views 5 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.
  • S Offline
    sdetweil @RobCee
    last edited by Apr 11, 2022, 4:09 PM

    @RobCee yes, docker paths and if OUTSIDE the MM tree, then YOU have to add new volume statements to the docker setup to map them

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    R 1 Reply Last reply Apr 11, 2022, 4:10 PM Reply Quote 0
    • R Offline
      RobCee @sdetweil
      last edited by RobCee Apr 11, 2022, 4:12 PM Apr 11, 2022, 4:10 PM

      @sdetweil yeah, I am deliberately keeping all the module paths in the default place, but it still doesn’t like it.
      But if I go into the docker container, it doesn’t seem to have access to Python, so maybe that’s the problem.
      It is all rather confusing. (More so from your end, no doubt)

      S 2 Replies Last reply Apr 11, 2022, 4:11 PM Reply Quote 0
      • S Offline
        sdetweil @RobCee
        last edited by sdetweil Apr 11, 2022, 4:14 PM Apr 11, 2022, 4:11 PM

        @RobCee this.file(filename) will prepend the file system path to the module folder

        I just pushed a fix to do the same in the module, instead of the __dirname prefix

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        R 1 Reply Last reply Apr 11, 2022, 4:15 PM Reply Quote 0
        • R Offline
          RobCee @sdetweil
          last edited by Apr 11, 2022, 4:15 PM

          @sdetweil But if I exec into a bash console in the docker container, it doesn’t seem to have access to Python, so maybe that’s the problem.
          It is all rather confusing. (More so from your end, no doubt)

          1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @RobCee
            last edited by Apr 11, 2022, 4:15 PM

            @RobCee you had to install python in the container if it wasn’t as part of the instance

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            R 1 Reply Last reply Apr 11, 2022, 4:19 PM Reply Quote 0
            • R Offline
              RobCee @sdetweil
              last edited by Apr 11, 2022, 4:19 PM

              @sdetweil I have just had that lightbulb switch on in my head…

              S 1 Reply Last reply Apr 11, 2022, 4:22 PM Reply Quote 0
              • S Offline
                sdetweil @RobCee
                last edited by Apr 11, 2022, 4:22 PM

                @RobCee i don’t think the image has python installed

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                R 1 Reply Last reply Apr 11, 2022, 4:26 PM Reply Quote 0
                • R Offline
                  RobCee @sdetweil
                  last edited by Apr 11, 2022, 4:26 PM

                  @sdetweil you are correct. It doesn’t have python installed with it.
                  My next challenge is to work out how to get that up and running.

                  Once I have it running I will get back to you on your module.

                  S 1 Reply Last reply Apr 11, 2022, 4:27 PM Reply Quote 0
                  • S Offline
                    sdetweil @RobCee
                    last edited by sdetweil Apr 11, 2022, 4:31 PM Apr 11, 2022, 4:27 PM

                    @RobCee short term while u are execed in, install python as usual

                    if you are using https://gitlab.com/khassel/magicmirror

                    he doesn’t provide a mechanism to add system components like python

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    R K 2 Replies Last reply Apr 11, 2022, 4:31 PM Reply Quote 0
                    • R Offline
                      RobCee @sdetweil
                      last edited by Apr 11, 2022, 4:31 PM

                      @sdetweil that works, but the setup refreshes itself by default, so it wouldn’t last too long.
                      I will work it through. Thanks

                      S 1 Reply Last reply Apr 11, 2022, 4:40 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 1 / 5
                      1 / 5
                      • First post
                        18/46
                        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