Reply
Thread Tools
Posts: 466 | Thanked: 335 times | Joined on Jan 2010 @ Vienna, Austria
#1
Hi,
I'm trying to work out a procedure for the easiest possible way to automate upload of pictures taken with the Jolla to an Owncloud server.
We currently have no native application that can do it. What we do have is Rsync, and some powerful command line tools and Linux packages.
With Rsync and the ShellEx application, we can reduce the effort needed to upload all new pics to Owncloud to one tap.
What's stopping me right now is the problem: Where do I rsync to?
Webdav is the only recommended upload solution for OC besides sync clients/apps and the web interface.
Owncloud's webdav share needs to be mounted somewhere in order to have a target to rsync to.
We currently cannot mount the share on the phone itself, although we have davfs2 on Openrepos. It won't install on my Jolla because of a dependencies error (maybe NielDK can shed some more light on this issue).
If you have a root server that is always on and is not your Owncloud server, it should be easy for you to mount the OC webdav share there and rsync your Jolla pics to it.
However, I have only my OC machine with an open internet port, so I have to mount the webdav to that. It's not working for me though, so I was hoping you guys could help me work out the proper mount options for a share *on the server that it comes from*.
I have unsolved threads here and here.
I know this part is not exactly a Jolla/SailfishOS topic, but it's part of the procedure that we could use with the tools we have at our disposal already and post it on TJC as a wiki, once all the details are clear.
If I succeed to mount the share on the OC server and the channel is open, the next step could be some sort of daemon that monitors the folder where the camera saves the pics, and triggers the rsync command whenever a picture is taken. Suggestions for this are welcome.
 

The Following 3 Users Say Thank You to bennypr0fane For This Useful Post:
pycage's Avatar
Posts: 3,404 | Thanked: 4,474 times | Joined on Oct 2005 @ Germany
#2
Just a suggestion: You could rip out the WebDAV implementation from Cargo Dock and use that. It shouldn't be too dependent on the UI, if at all.

https://github.com/pycage/cargodock/...api/davapi.cpp
__________________
Tidings - RSS and Podcast aggregator for Jolla - https://github.com/pycage/tidings
Cargo Dock - file/cloud manager for Jolla - https://github.com/pycage/cargodock
 

The Following 2 Users Say Thank You to pycage For This Useful Post:
Community Council | Posts: 4,920 | Thanked: 12,867 times | Joined on May 2012 @ Southerrn Finland
#3
Originally Posted by bennypr0fane View Post
If I succeed to mount the share on the OC server and the channel is open, the next step could be some sort of daemon that monitors the folder where the camera saves the pics, and triggers the rsync command whenever a picture is taken. Suggestions for this are welcome.
That part can be done really easy with pyinotify like in cloudsync.sh:
http://talk.maemo.org/showpost.php?p...61&postcount=8
 

The Following User Says Thank You to juiceme For This Useful Post:
Posts: 466 | Thanked: 335 times | Joined on Jan 2010 @ Vienna, Austria
#4
Originally Posted by pycage View Post
Just a suggestion: You could rip out the WebDAV implementation from Cargo Dock and use that. It shouldn't be too dependent on the UI, if at all.

https://github.com/pycage/cargodock/...api/davapi.cpp
At the moment this is read-only, it doesn't support uploads. At least that's the case for Cargo Dock. Unfortunately I don't have the skill set needed to find out whether or not it's true for just the Webdav part, nor for using that for anything else :-(
Maybe someone who does can try and take a look?
 
Posts: 466 | Thanked: 335 times | Joined on Jan 2010 @ Vienna, Austria
#5
Originally Posted by juiceme View Post
That part can be done really easy with pyinotify like in cloudsync.sh:
http://talk.maemo.org/showpost.php?p...61&postcount=8
great, that is in fact the kind of thing that I was thinking of. It's way more hacky though, someone should make it into a GUI app...
 

The Following 2 Users Say Thank You to bennypr0fane For This Useful Post:
Posts: 1,289 | Thanked: 4,318 times | Joined on Oct 2014
#6
Originally Posted by bennypr0fane View Post
great, that is in fact the kind of thing that I was thinking of. It's way more hacky though, someone should make it into a GUI app...
What dependency problem are you having with davfs2 on openrepos ? I just tried installing it again, and on my device it install fine without complains, did you enable my repository ?
 

The Following 2 Users Say Thank You to nieldk For This Useful Post:
Community Council | Posts: 4,920 | Thanked: 12,867 times | Joined on May 2012 @ Southerrn Finland
#7
Originally Posted by bennypr0fane View Post
great, that is in fact the kind of thing that I was thinking of. It's way more hacky though, someone should make it into a GUI app...
Well what you want to do, is to make it a service that monitors your "/home/nemo/Pictures/Camera/" and automatically uploads anything when you snap a picture or take a video.

No need for any kind of GUI there.

[*] actually I am of a mind that less GUI-tweaking you need to do, the smarter your device is...
 

The Following User Says Thank You to juiceme For This Useful Post:
Posts: 1,746 | Thanked: 1,832 times | Joined on Dec 2010
#8
can you have services on the Jolla? I thought it wasn't possible due to API restrictions and wakelocks?
 
Community Council | Posts: 4,920 | Thanked: 12,867 times | Joined on May 2012 @ Southerrn Finland
#9
Originally Posted by m4r0v3r View Post
can you have services on the Jolla? I thought it wasn't possible due to API restrictions and wakelocks?
Of course you can!
For example cron is one of most valuable things that I have in my device.
 

The Following User Says Thank You to juiceme For This Useful Post:
pycage's Avatar
Posts: 3,404 | Thanked: 4,474 times | Joined on Oct 2005 @ Germany
#10
Originally Posted by bennypr0fane View Post
At the moment this is read-only, it doesn't support uploads. At least that's the case for Cargo Dock. Unfortunately I don't have the skill set needed to find out whether or not it's true for just the Webdav part, nor for using that for anything else :-(
Maybe someone who does can try and take a look?
The WebDAV implementation in Cargo Dock supports uploads to WebDAV.
__________________
Tidings - RSS and Podcast aggregator for Jolla - https://github.com/pycage/tidings
Cargo Dock - file/cloud manager for Jolla - https://github.com/pycage/cargodock
 

The Following 2 Users Say Thank You to pycage For This Useful Post:
Reply

Tags
owncloud, rsync, webdav


 
Forum Jump


All times are GMT. The time now is 23:35.