spillz / picty

picty helps you manage photos
57 stars 9 forks source link

support for other online storage #10

Open eephyne opened 9 years ago

eephyne commented 9 years ago

I see there is facebook and flickr sync but could it be possible to add more of self hosted online storage?

I use owncloud so I'm mainly talking about webdav but samba share is also a good idea.

I know I can mount them in the system but I prefer not and let the app directly connect to it (I found this proper and safer).

If you think this is a good idea but you don't have the time to do it, maybe you could help me do it

spillz commented 9 years ago

Yes, this is something that needs to be done. Facebook and to a lesser extent flickr are walled gardens, and their companies are not interested in really supporting sync from third party apps. As a result, this feature doesn't work very well for either. (Its basically non-functional for Facebook.) In the past I had a plugin that just supported basic upload to these more difficult services. Maybe I need to go back that that and save the browsing feature for something like Dropbox and self hosted clouds.

Unfortunately I don't know a lot about either WebDAV or Samba and how one would go about managing a photo collection through them. It would take some research on my or your end. I am guessing that if this is something people do that there is a python lib for it somewhere!

Another option might be to make an interface with an open source web-based photo manager app. Gallery ( http://galleryproject.org ) recently stopped development but maybe there are others? On Jul 29, 2015 5:41 AM, "eephyne" notifications@github.com wrote:

I see there is facebook and flickr sync but could it be possible to add more of self hosted online storage?

I use owncloud so I'm mainly talking about webdav but samba share is also a good idea.

I know I can mount them in the system but I prefer not and let the app directly connect to it (I found this proper and safer).

If you think this is a good idea but you don't have the time to do it, maybe you could help me do it

— Reply to this email directly or view it on GitHub https://github.com/spillz/picty/issues/10.

eephyne commented 9 years ago

I use piwigo for self hosted gallery and I think they have an api to access it

spillz commented 9 years ago

Looking at the API here: http://piwigo.org/demo/tools/ws.htm#top

It looks picty could use "pwg.categories.getImages http://piwigo.org/demo/tools/ws.htm#top" with an empty category id to get the list images to enable browsing and there are methods for adding/removing/modifying/retrieving images and metadata just like there is for flickr. But I don't see an way easy to get the changeset for added/deleted/updated images from a given date, which makes client side caching more difficult and slow. (I have the same problems with Flickr and Facebook.)

On Wed, Jul 29, 2015 at 8:48 AM, eephyne notifications@github.com wrote:

I use piwigo for self hosted gallery and I think they have an api to access it

— Reply to this email directly or view it on GitHub https://github.com/spillz/picty/issues/10#issuecomment-125939714.

spillz commented 9 years ago

For what it's worth, dropbox has a method called "delta" in its python library. It retrieves a changeset for a path, which makes syncing much easier: https://www.dropbox.com/developers/core/docs/python

On Wed, Jul 29, 2015 at 1:30 PM, Damien Moore damienlmoore@gmail.com wrote:

Looking at the API here: http://piwigo.org/demo/tools/ws.htm#top

It looks picty could use "pwg.categories.getImages http://piwigo.org/demo/tools/ws.htm#top" with an empty category id to get the list images to enable browsing and there are methods for adding/removing/modifying/retrieving images and metadata just like there is for flickr. But I don't see an way easy to get the changeset for added/deleted/updated images from a given date, which makes client side caching more difficult and slow. (I have the same problems with Flickr and Facebook.)

On Wed, Jul 29, 2015 at 8:48 AM, eephyne notifications@github.com wrote:

I use piwigo for self hosted gallery and I think they have an api to access it

— Reply to this email directly or view it on GitHub https://github.com/spillz/picty/issues/10#issuecomment-125939714.

eephyne commented 9 years ago

I looked into webav client myself and the issue I see is that you need to retrieve each image to get the thumb. So we need to find another way to get it or disable it for online storage like that. (Piwigo can bypass that I guess since they provide thumb ).

Anyway that look a lot more difficult to do that I imagined since it implies a change in the core of picty

eephyne commented 9 years ago

It's maybe overkill but a lead could be to add your own daemon to the online server. A headless picty used to communicate with the local one. Of course this method is not possible with mutualized hosting but it's a start (or we can code the daemon in a php way but it force to have a web server daemon running)