Flask-based EyeFi Server
Project description
EyeFlask
Simple Flask-based Python3 EyeFi server
Introduction
I use an Eye-Fi SD card in my portable scanner. Unfortunately, it used to upload directly to Evernote, but no longer supports uploading directly to any service that suits my needs. Additionally, they don’t provide a Linux version of their server software.
EyeFlask is a simple Flask-based Eye-Fi server written for Python >= 3.4. The Eye-Fi card can connect to it and will upload images to the folder specified in the config. EyeFlask attempts to verify the file integrity using the same security protocols used by Eye-Fi Server.
Dependencies
Python >= 3.4
Flask >= 0.10.1
Quickstart
Clone the repo: git clone https://github.com/n8henrie/eyeflask && cd eyeflask
Make a virtualenv: python3 -m venv venv
Copy the config sample: cp instance/eyeflask{-sample,}.cfg
Edit the config to include your upload directory and upload_key (see below): vim eyeflask.cfg
Install dependencies: venv/bin/pip install -r requirements.txt
Run: venv/bin/python run.py
Scan some stuff, see if it ends up in your uploads folder
Acknowledgements
Much of the code for EyeFlask came from or was inspired by the following projects / links. Many thanks to the authors for their work! If I’ve forgotten anyone, let me know.
Troubleshooting / FAQ
Where do I find my upload key?
You’ll need a supported platform (OS X or Windows) with Eye-Fi Center.app installed, and need to have uploaded photos to that computer at least once. This ensures everything is working, and generates the Settings.xml file, from which you need to copy the upload key into instance/eyeflask.cfg.
Is it okay to be running this with the built-in Flask server?
It’s not perfect, but it seems to work okay for me and my single Eye-Fi card setup. You’d probably be better off running it behind gunicorn or a gunicorn / nginx setup, but I’m running it behind Flask alone for simplicity and because I haven’t had any issues so far.
History
0.1.0 ::
Initial release to GitHub, PyPI
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.