Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Perl Shell Makefile
Fetching latest commit…
Cannot retrieve the latest commit at this time.
|Failed to load latest commit information.|
This is a tool to email recent pictures from flickr accounts to an email address, with the image as an attachment. This is specifically designed for my Mom, to use with her Kodak Pulse digital picture frame. http://www.amazon.com/gp/product/B0030MIU16/ref=oh_o00_s00_i00_details STEP 1: Create a config file for your mom. Put something like this in your momrc file. --- api_key: _YOUR_FLICKR_API_KEY_ api_secret: _YOUR_FLICKR_APP_SECRET_ email_from: _your_email_ email_to: _your_moms_email_ last_sent: 0 # Use http://idgettr.com/ to get IDs for users people: - id: _id_of_user1_ username: _username_of_user1_ - id: _id_of_user2_ username: _username_of_user2_ (It should be valid YAML - Mom's love YAML) STEP 2: Build the docker container. Check out this repository, and then run `make docker`. It should build you a docker image for your mom! STEP 3: Run the container by hand. Make sure it works. sudo bin/momframe-docker path/to/your/momrc This command will run the script inside the docker container and show you the output. STEP 4: Put it on cron. Stick something like this in your /etc/cron.d/momframe file: MF="/home/offspring/src/momframe" MAILTOfirstname.lastname@example.org 0 17 * * * $MF/bin/momframe-from-cron $MF/.momrc 1 17 * * * $MF/bin/momframe-from-cron $MF/.granrc