• 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.

Locating and Copying Python scripts

Scheduled Pinned Locked Moved General Discussion
4 Posts 2 Posters 461 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.
  • A Offline
    ankonaskiff17
    last edited by ankonaskiff17 Oct 8, 2023, 9:09 PM Oct 8, 2023, 9:00 PM

    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 Oct 8, 2023, 11:12 PM Reply Quote 0
    • S Offline
      sdetweil @ankonaskiff17
      last edited by Oct 8, 2023, 11:12 PM

      @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 Oct 10, 2023, 12:57 PM Oct 9, 2023, 7:29 PM

        @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

        A 1 Reply Last reply Oct 15, 2023, 10:47 PM Reply Quote 0
        • A Offline
          ankonaskiff17 @sdetweil
          last edited by Oct 15, 2023, 10:47 PM

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

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          1 / 1
          • First post
            4/4
            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