Table of Contents
GitHub Repo: https://github.com/EricM194/file-copy
The purpose of this project was to make a program that can copy files to two locations at once with ease. I made this because my friend had gotten a new camera, and I wanted to ensure that all the great photos they take would be backed up.
The main goals of this project:
Copy files to multiple locations at once
Have a GUI for easy use
Remember previous settings when opened again
Ability to name your destination folder
When you start the program for the first time it will look like the top image to the right.
In the background, it will also create a settings file at C:/Users/<username>/AppData/Roaming/ericmichelin/photo_import_settings.json
Pressing the settings button in the top right will open this file in your default text editor for JSON files.
The settings file holds 4 key pieces of information:
sd_card: The path of the files to be copied
local: The path to save files to on your local computer
remote: a path not on your local computer to also save files to (ex: network file share)
import_history: The time of the last import, in format YYYY-MM-DD 00:00:00
You can use the GUI to update all of these paths via the Change button to the right of each respective path. The last import date will only be updated after a successful import.
You can also specify a name for the folder that will be created to hold your copied files. If no name is provided the folder will just be named the date the import started. If a name is provided the date is also prefixed so that it is easier to sort the folders by date.
Pressing Start Copy will start a multi-threaded copy which will start to copy the files to both locations at once. this does not require that the files copy at the same rate; one copy can finish before the other does. In the middle screenshot on the left, the folder in both the local and remote locations was titled "2021-01-27 - selfies"
After the copy is started you will see the progress bars start to fill in as the files get copied. Also to the right of the progress bar, you will find a count of how many files have finished copying and how many there are total.
Once the files are done being copied to both the local and remote locations you will see a bit of text also indicating this at the bottom of the window. If you attempt to close the application while a copy is in progress it will wait to finish the current file being copied then quit.
When you reopen the program the next time it will auto-populate the last file paths used
The view after opening the program for the first time
The view after entering info about your copy
The view after completing a file copy
GitHub Repo: https://github.com/EricM194/pi-led
The purpose of this project was to be able to access a URL (via a GET request) and turn on/ turn off/ update the color of the 16ft LED strip in my living room. This project also let me experiment with creating and running my own docker images.
These are the available paths to change the LEDS
{host}/ledon Turns on the LED light strip.
{host}/ledoff Turns off the LED light strip.
{host}/ledset?rgb=RRRGGGBBBWWW Set the LED color to the specified RGB value (values 0-255) with specified brightness (value 0-255)
{host}/ledrainbow Set the LED color to fade through the colors of the rainbow.