[QPKG] Eye-Fi Server

This is the best place for community developers to publish their genius work. Your Apps enrich the QNAP Turbo NAS.
duke_srg
Know my way around
Posts: 114
Joined: Sat Aug 09, 2008 12:14 pm
Location: Moscow, Russia

[QPKG] Eye-Fi Server

Post by duke_srg » Wed Jun 20, 2012 10:37 pm

This one is based on project https://github.com/dgrant/eyefiserver2/. http://www.eye.fi - like WEB GUI added for old firmware and QTS integrated GUI added for firmware 4+
Last edited by duke_srg on Tue Oct 21, 2014 6:18 pm, edited 2 times in total.

duke_srg
Know my way around
Posts: 114
Joined: Sat Aug 09, 2008 12:14 pm
Location: Moscow, Russia

Re: [QPKG] Eye-Fi Server

Post by duke_srg » Thu Jun 21, 2012 5:34 pm

Daemon restart after configuration change supported now using sudo. So version 0.4 is completely functional!

duke_srg
Know my way around
Posts: 114
Joined: Sat Aug 09, 2008 12:14 pm
Location: Moscow, Russia

Re: [QPKG] Eye-Fi Server

Post by duke_srg » Tue Jun 26, 2012 4:16 am

The latest version 0.6 is available here. http://code.google.com/p/eyefiserver2/downloads/list
Please uninstall previous versions.

duke_srg
Know my way around
Posts: 114
Joined: Sat Aug 09, 2008 12:14 pm
Location: Moscow, Russia

Re: [QPKG] Eye-Fi Server

Post by duke_srg » Thu Jun 28, 2012 3:04 am

Updated to version 0.8
On-the-fly configuration changes apply fixed, Geotagging feature added.

duke_srg
Know my way around
Posts: 114
Joined: Sat Aug 09, 2008 12:14 pm
Location: Moscow, Russia

Re: [QPKG] Eye-Fi Server

Post by duke_srg » Fri Jun 29, 2012 6:41 pm

Updated to version 0.0.9
Server start/sopt/restart operations added to WebGUI

duke_srg
Know my way around
Posts: 114
Joined: Sat Aug 09, 2008 12:14 pm
Location: Moscow, Russia

Re: [QPKG] Eye-Fi Server

Post by duke_srg » Tue Jul 03, 2012 4:41 pm

Update to version 0.0.12
Compatibility with Python 2.6+ was fixed, dependancies fixed to support QPKG Python also.

jamie.aston
Starting out
Posts: 10
Joined: Sun Feb 28, 2010 5:01 am

Re: [QPKG] Eye-Fi Server

Post by jamie.aston » Fri Jul 20, 2012 9:26 pm

Hi Guys,

Anyone else getting a key error?


[07/20/12 02:18PM][get_request] - Incoming connection from client 192.168.0.17
[07/20/12 02:18PM][do_POST] - POST /api/soap/eyefilm/v1 HTTP/1.1
[07/20/12 02:18PM][do_POST] - Headers received in POST request:
[07/20/12 02:18PM][do_POST] - content-length: 412
[07/20/12 02:18PM][do_POST] - soapaction: "urn:StartSession"
[07/20/12 02:18PM][do_POST] - connection: Close
[07/20/12 02:18PM][do_POST] - accept: text/xml, application/soap
[07/20/12 02:18PM][do_POST] - user-agent: Eye-Fi Card/5.0008
[07/20/12 02:18PM][do_POST] - host: api.eye.fi
[07/20/12 02:18PM][do_POST] - Attempting to read 412 bytes of data
[07/20/12 02:18PM][do_POST] - Finished reading 412 bytes of data
[07/20/12 02:18PM][do_POST] - Got StartSession request
[07/20/12 02:18PM][startSession] - Delegating the XML parsing of startSession postData to EyeFiContentHandler()
[07/20/12 02:18PM][get_request] - Incoming connection from client 192.168.0.17
[07/20/12 02:18PM][startSession] - Extracted elements: {'transfermode': u'16418', 'macaddress': u'00185627cb15', 'cnonce': u'7643e66c00dbde203d973830b3924870', 'transfermodetimestamp': u'1342617384'}
Traceback (most recent call last):
File "/opt/lib/python2.5/SocketServer.py", line 464, in process_request_thread
self.finish_request(request, client_address)
File "/opt/lib/python2.5/SocketServer.py", line 254, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/opt/lib/python2.5/SocketServer.py", line 522, in __init__
self.handle()
File "/opt/lib/python2.5/BaseHTTPServer.py", line 316, in handle
self.handle_one_request()
File "/opt/lib/python2.5/BaseHTTPServer.py", line 310, in handle_one_request
method()
File "/usr/local/bin/eyefiserver.py", line 499, in do_POST
response = self.startSession(postData)
File "/usr/local/bin/eyefiserver.py", line 873, in startSession
upload_key = mac_to_uploadkey_map[mac]
KeyError: u'00185627cb15'

I did as said and copied upload key from settings.xml Can anyone help as this would be ideal for my use a sick of having to turn on laptop to upload pics when my NAS is always on.

duke_srg
Know my way around
Posts: 114
Joined: Sat Aug 09, 2008 12:14 pm
Location: Moscow, Russia

Re: [QPKG] Eye-Fi Server

Post by duke_srg » Fri Jul 20, 2012 10:17 pm

Please attach eyefiserver.conf file.

jamie.aston
Starting out
Posts: 10
Joined: Sun Feb 28, 2010 5:01 am

Re: [QPKG] Eye-Fi Server

Post by jamie.aston » Sat Jul 21, 2012 5:52 pm

[EyeFiServer]

# host name and port to listen on
# you can leave hostname empty for localhost

host_name:
host_port:59278

# To use this script you need to have your Eye-Fi upload key.
# You can find it after configuring the card,
# which you can currently on do on windows or mac
# It is inside C:\Documents and Settings\<User>\Application Data\Eye-Fi\Settings.xml on windows
# or ~/Applications Data/Eye-Fi/Settings.xml on mac
# search for it and paste it here:

mac_0:00185627CB15
upload_key_0:3a5e3ce73477a9099289ca1de58b19c5

mac_1:64200c930943
upload_key_1:c2877988792d530cb1f4aaa4622081b4

# Create XMP file with geolocation information based on access points
# detected by Eye-Fi card for any uploaded JPEG or RAW file
geotag_enable:1

# Use acces points detected within this period of time
# before or after photo was taken, in seconds
geotag_lag:3600

# Use acquired geolocation data with accuracy over this value, in meters
geotag_accuracy:140000

# When connecting, all files are downloaded in one directory
# the name of the directory can be a strftime formatted string like
# /home/myblog/pictures/%%Y-%%m-%%d
# notice the double percent sign to escape % from ini interpolation

upload_dir:/share/photos/eyefi

# The UID of the user that you want to own the uploaded images
upload_uid:0
# The GID of the group that you want to own the uploaded images
upload_gid:0
# The permissions to use for the uploaded images
upload_file_mode:420
# The permissions to use for the directories that are created
upload_dir_mode:509


Thanks

duke_srg
Know my way around
Posts: 114
Joined: Sat Aug 09, 2008 12:14 pm
Location: Moscow, Russia

Re: [QPKG] Eye-Fi Server

Post by duke_srg » Sun Jul 22, 2012 3:42 am

Seems to be OK, very strange. Try with lower case letter in MAC please.

jamie.aston
Starting out
Posts: 10
Joined: Sun Feb 28, 2010 5:01 am

Re: [QPKG] Eye-Fi Server

Post by jamie.aston » Sun Jul 22, 2012 5:54 am

One problem done, but still no pics uploaded from my camera. Nothing changed in config ffile apart from lower case mac address. Not sure whats going on. The upload directory exists so it not that, permissions are ok too.

[07/21/12 10:44PM][get_request] - Incoming connection from client 192.168.0.17
[07/21/12 10:44PM][get_request] - Incoming connection from client 192.168.0.17
[07/21/12 10:44PM][do_POST] - POST /api/soap/eyefilm/v1 HTTP/1.1
[07/21/12 10:44PM][do_POST] - Headers received in POST request:
[07/21/12 10:44PM][do_POST] - content-length: 412
[07/21/12 10:44PM][do_POST] - soapaction: "urn:StartSession"
[07/21/12 10:44PM][do_POST] - connection: Close
[07/21/12 10:44PM][do_POST] - accept: text/xml, application/soap
[07/21/12 10:44PM][do_POST] - user-agent: Eye-Fi Card/5.0008
[07/21/12 10:44PM][do_POST] - host: api.eye.fi
[07/21/12 10:44PM][do_POST] - Attempting to read 412 bytes of data
[07/21/12 10:44PM][do_POST] - Finished reading 412 bytes of data
[07/21/12 10:44PM][do_POST] - Got StartSession request
[07/21/12 10:44PM][startSession] - Delegating the XML parsing of startSession postData to EyeFiContentHandler()
[07/21/12 10:44PM][startSession] - Extracted elements: {'transfermode': u'16418', 'macaddress': u'00185627cb15', 'cnonce': u'61323257d83b3e0a532f2559a756851e', 'transfermodetimestamp': u'1342617384'}
[07/21/12 10:44PM][startSession] - Got MAC address of 00185627cb15
[07/21/12 10:44PM][startSession] - Setting Eye-Fi upload key to 3a5e3ce73477a9099289ca1de58b19c5
[07/21/12 10:44PM][startSession] - Concatenated credential string (pre MD5): 00185627cb1561323257d83b3e0a532f2559a756851e3a5e3ce73477a9099289ca1de58b19c5
[07/21/12 10:44PM][do_POST] - StartSession response: <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><StartSessionResponse xmlns="http://localhost/api/soap/eyefilm"><credential>a1a9356a42b04a0cca18b8b3136e2ddb</credential><snonce>99208c155fc1883579cf0812ec0fe6d2</snonce><transfermode>2</transfermode><transfermodetimestamp>1230268824</transfermodetimestamp><upsyncallowed>false</upsyncallowed></StartSessionResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
192.168.0.17 - - [21/Jul/2012 22:44:05] "POST /api/soap/eyefilm/v1 HTTP/1.1" 200 -

duke_srg
Know my way around
Posts: 114
Joined: Sat Aug 09, 2008 12:14 pm
Location: Moscow, Russia

Re: [QPKG] Eye-Fi Server

Post by duke_srg » Sun Jul 22, 2012 1:39 pm

You should turn off share and remote upload functions to make it work.

jamie.aston
Starting out
Posts: 10
Joined: Sun Feb 28, 2010 5:01 am

Re: [QPKG] Eye-Fi Server

Post by jamie.aston » Mon Jul 23, 2012 1:02 am

Forgive me but how do i do that? Are those settings in the eyefiserver.conf file or through eyefi centre?

duke_srg
Know my way around
Posts: 114
Joined: Sat Aug 09, 2008 12:14 pm
Location: Moscow, Russia

Re: [QPKG] Eye-Fi Server

Post by duke_srg » Fri Aug 10, 2012 7:02 pm

These setings must be made in eyefi center, after that upload to the local server should be working just fine.

scubasteve
Starting out
Posts: 15
Joined: Thu Oct 18, 2012 5:14 am

Re: [QPKG] Eye-Fi Server

Post by scubasteve » Tue Oct 23, 2012 11:17 am

I just wanted to say "thanks" for this and let you know that it's working great!

Post Reply

Return to “Community Apps”