Skip to content

Instantly share code, notes, and snippets.

@grahameger
Last active October 31, 2018 22:23
Show Gist options
  • Save grahameger/ac15ad47d76495bc5fd4420ca94603cd to your computer and use it in GitHub Desktop.
Save grahameger/ac15ad47d76495bc5fd4420ca94603cd to your computer and use it in GitHub Desktop.
Welcome file

Card Swiper Tutorial: Mac

Open Terminal.app which is located in the Utilities folder in your Applications Paste the following command and enter your computer password if it asks and follow any other instructions it has for you.

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Then once that's installed run the following command.

brew install python3

Should be it for the install.

Run the Application

Instructions for running (every time)

  1. Open terminal and navigate to the folder that contains cardSwiper.py. There are a few simple terminal commands that you'll need to know to do this.
  • cd changes the directory that terminal is looking at and you need to use it to navigate to your folder.
  • if you navigate to the wrong directory, type cd .. to go back one step.
  • ls shows the files that are in the folder you're in, you can just use it to make sure you get to the next folder correctly.
  • pwd prints the folder that you're currently in

If you store cardSwiper.py on your Desktop the command to navigate to the desktop would be cd ~/Desktop

  1. Now that I'm in the correct directory, I can run the program with: python3 cardSwiper.py
  2. The program will now be running, so here's a few important notes about it.
  • I'd recommend turning on caps lock once you start running it, as you need to use all caps to search and enter names.

  • Because of the way the mcards give info for names, you have to search and enter names in a weird way. my name would be GODLEY,W

  • When you're creating the guest list, you MUST use the QUIT command when you're done. If you don't, the excel file won't be created/updated. If you have to us control + c to force quit, just restart it and only the last entry won't be saved. Everything else will be in another file, and will update to the excel sheet when you exit the program properly

  • The program supports swiping out, the person just swipes their card again if they have an mcard. The program will only give the time entered If the person doesn't swipe out.

  • If you want to save the data at any point while you are swiping people in, just type QUIT, then start the program again. As long as you type in the date correct again, you will be using the same file so swiping in new people will save it for the file for that date and swiping out will work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment