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.

    Locating and Copying Python scripts

    Scheduled Pinned Locked Moved General Discussion
    4 Posts 2 Posters 884 Views 2 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.
    • ankonaskiff17A Offline
      ankonaskiff17
      last edited by ankonaskiff17

      Is there a way to find and copy some Python scripts off of an SD Card set to run Pi OS
      I had a Pi 4 that I had install MM on that I subsequently did some sensor scripts on but decided to get the sensor scripts up and running first, so did a Pi OS install on a different SD SD Card thinking I could just copy the *.py files using my Win 11 laptop but my thinking was wrong.
      When I put the SD card in laptop it sees all the various Pi OS files but not a *.py file to be seen. Files are there but while Windows can see all the OS files it can’t see the Python files.
      I can get the files but really wondering if there are ways that might not be obvious to a casual MM builder like myself.

      SD Card A with Pi OS and MM installed plus about 6 - 8 Python scripts
      SD Card B with Pi OS, NO MM and no Python scripts.
      Use Windows 11 Laptop as middleman to move sensor scripts from SD Card A to SD Card B

      S 2 Replies Last reply Reply Quote 0
      • S Offline
        sdetweil @ankonaskiff17
        last edited by

        @ankonaskiff17 problem is Windows can’t read the SD card file system.

        best to get an SD card/USB adapter and mount it on pi.

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @ankonaskiff17
          last edited by sdetweil

          @ankonaskiff17 then the find command can be used to search the sd card for .py files

          cd /media/userid/????? whatever the mount path is
          find . -type f -name "*.py" 2>/dev/null
          

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          ankonaskiff17A 1 Reply Last reply Reply Quote 0
          • ankonaskiff17A Offline
            ankonaskiff17 @sdetweil
            last edited by

            @sdetweil You go away for a couple of weeks and…!!

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • 1 / 1
            • First post
              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