The Following 3 Users Say Thank You to bennypr0fane For This Useful Post: | ||
|
2015-02-02
, 17:00
|
|
Posts: 3,404 |
Thanked: 4,474 times |
Joined on Oct 2005
@ Germany
|
#2
|
The Following 2 Users Say Thank You to pycage For This Useful Post: | ||
|
2015-02-02
, 19:15
|
Community Council |
Posts: 4,920 |
Thanked: 12,867 times |
Joined on May 2012
@ Southerrn Finland
|
#3
|
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 User Says Thank You to juiceme For This Useful Post: | ||
|
2015-02-02
, 19:57
|
Posts: 466 |
Thanked: 335 times |
Joined on Jan 2010
@ Vienna, Austria
|
#4
|
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
|
2015-02-02
, 20:01
|
Posts: 466 |
Thanked: 335 times |
Joined on Jan 2010
@ Vienna, Austria
|
#5
|
That part can be done really easy with pyinotify like in cloudsync.sh:
http://talk.maemo.org/showpost.php?p...61&postcount=8
|
2015-02-02
, 20:25
|
Posts: 1,293 |
Thanked: 4,319 times |
Joined on Oct 2014
|
#6
|
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 nieldk For This Useful Post: | ||
|
2015-02-02
, 21:03
|
Community Council |
Posts: 4,920 |
Thanked: 12,867 times |
Joined on May 2012
@ Southerrn Finland
|
#7
|
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 User Says Thank You to juiceme For This Useful Post: | ||
|
2015-02-02
, 22:16
|
Posts: 1,746 |
Thanked: 1,832 times |
Joined on Dec 2010
|
#8
|
|
2015-02-03
, 04:54
|
Community Council |
Posts: 4,920 |
Thanked: 12,867 times |
Joined on May 2012
@ Southerrn Finland
|
#9
|
can you have services on the Jolla? I thought it wasn't possible due to API restrictions and wakelocks?
The Following User Says Thank You to juiceme For This Useful Post: | ||
|
2015-02-03
, 18:50
|
|
Posts: 3,404 |
Thanked: 4,474 times |
Joined on Oct 2005
@ Germany
|
#10
|
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 Following 2 Users Say Thank You to pycage For This Useful Post: | ||
Tags |
owncloud, rsync, webdav |
|
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.