Eyefi Server

One of my co-workers was telling me about his wireless scanning set up at his house. It was kinda nifty. He had a scanner sitting in his kitchen that wrote to an eye-fi card, which then synced to his computer and on to his Evernote account. I thought that doing something similar myself would be nice, so I ordered an eye-fi card.

After messing around with it for a little while, I discovered two things:

  1. My wireless signal was too low for this little guy to connect consistently
  2. Eye-Fi cards did not connect to samba shares. Only Windows or OS X computers.

Problem 1 was resolved with a quick tweak in DD-WRT, but problem 2 was a little more challenging.

After some googling, I found that someone had done the leg work for me: http://returnbooleantrue.blogspot.com/2009/04/eye-fi-standalone-server-version-20.html. Here was a working eye-fi server for linux! And it’s written in python!

  • Okay, so now I’ll just download the source, dump it in /opt and start it up…
  • Interesting, the github hasn’t been updated in 3 years…
  • Oh! But there’s a pull request that has numerous updates!
  • That also hasn’t been updated in over a year…
  • Oh well…that’s fairly recent, and I can’t imagine that this tool changes all that often, so I’ll use this branch.

After playing with the downloaded tool briefly, I found that there was no good way to daemonize the process, and I’d be writing my own init script for a RHEL-compatible distro (‘cause if you use it at work, you may as well use it at home).

Some coding ensued, and thanks to python-daemon, I was able to produce my own pull request within a day or two.

This version of the software should work on any current RHEL-compatible linux, plus continuing to work with debian (I could use some advice on how to update the debian init script) and most other linux versions using python 2.6+.