• 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 14.4k 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: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
          • S Offline
            sdetweil @RobCee
            last edited by Apr 11, 2022, 4:40 PM

            @RobCee while its challenging, its possible

            I might open an issue of the docker image to allow a folder/file with additional packages to install at startup…

            seems a waste to do it every refresh time tho

            long ago and far away (2015) I had a product to install in an image, 1.5 GIG of product, and didn’t want to make a separate image for the different versions…

            so I figured out how to install and capture that as a tarfile, and then
            untar it as part of the startup…

            then the start script passed that as a parm to startup, so I could change the product on the fly, using the same tiny image…

            Sam

            How to add modules

            learning how to use browser developers window for css changes

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

              @sdetweil it may just be quicker for me to learn how to do what my python code does in .js
              It probably isn’t that complex. It is only reading stuff from web services and reporting it locally. I had hoped I could skip that stage, but I guess there are no short-cuts.

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

                @RobCee you can do most of the dev and test using a local file , outside of MM

                xxx.js
                then
                node xxx.js

                at least to get your main function working…

                this code would work in the node helper

                Sam

                How to add modules

                learning how to use browser developers window for css changes

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

                  @sdetweil super. thanks for the pointer.

                  1 Reply Last reply Reply Quote 0
                  • K Online
                    karsten13 @sdetweil
                    last edited by karsten13 Apr 11, 2022, 6:04 PM Apr 11, 2022, 6:04 PM

                    @sdetweil

                    the docker image karsten13/magicmirror:latest doesn’t contain python. Simplest solution for this is to use the fat image karsten13/magicmirror:fat, for more infos: https://khassel.gitlab.io/magicmirror/images/

                    S 1 Reply Last reply Apr 11, 2022, 6:13 PM Reply Quote 1
                    • S Offline
                      sdetweil @karsten13
                      last edited by Apr 11, 2022, 6:13 PM

                      @karsten13 thanks… the doc needs help tho

                      The difference between latest and fat is image size and installed

                      those words are not used above that sentence, and so didn’t mean anything to me…

                      I would propose adding in front of that sentence

                      There are two images of each type created
                      
                      latest and fat 
                      docker pull image_name:latest 
                      or
                      docker pull image_name:fat 
                      

                      and then I would add a new line between these sentences

                      debian packages. For most use cases the latest image is sufficient. 
                      Some modules need dependencies which are not includes in latest, e.g
                      

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      K 1 Reply Last reply Apr 11, 2022, 6:15 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 3 / 5
                      3 / 5
                      • First post
                        24/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