Cloud streaming

Raspberry Pi related support

Cloud streaming

Postby andy.room » 08 May 2015, 18:07

Sorry for opening a new topic, but search didn't take me anywhere.
Is there a way to stream files located in a cloud such as DropBox, Google Drive, OneDrive or Mega?
It would be very useful to have a library accessible from anywhere and on the occasion playable with RuneAudio as if it was a NAS mount.
Thanks for your help.
andy.room
 
Posts: 31
Joined: 04 Jul 2014, 07:43

Re: Cloud streaming

Postby nic » 08 May 2015, 18:46

I'm also interested in this . Would be nice to access my NAS from work or while on holiday . I have a spare Pi and XMOS/Sabre DAC begging to get used :)

cheers

Nic
Pi3 , Kali / Piano 2.1 (with dedicated choke input PSU) ----6SN7 beta follower---BUZ900P choke loaded source follower---Beyma 15XT in 230l cabinets/TPL150H AMT .
User avatar
nic
 
Posts: 65
Joined: 16 Dec 2013, 20:52
Location: London UK

Re: Cloud streaming

Postby andy.room » 15 May 2015, 10:51

I have seen that ArchLinux supports Dropbox access, but I would need some advice in order to have my Dropbox folders mounted on my PI and usable as a NAS. Anybody can help on this subject? Thanks
andy.room
 
Posts: 31
Joined: 04 Jul 2014, 07:43

Re: Cloud streaming

Postby andy.room » 03 Jun 2015, 16:00

Did some more investigation on this subject (accessing a cloud with RPI and stream music from remote folder), but didn't get to anything practical.
For sure it requires more Linux skills than mine. I have found some instructions to set up your own app to connect with Dropbox http://raspi.tv/2013/how-to-use-dropbox-with-raspberry-pi but I am not sure it would work with ArchLinux environment. I renew my request for help to the Community. Thanks.
andy.room
 
Posts: 31
Joined: 04 Jul 2014, 07:43

Re: Cloud streaming

Postby andy.room » 03 Jun 2015, 16:34

I found the solution that I was looking for http://www.sbprojects.com/projects/raspberrypi/webdav.php .
Tried to install the script using "pacman -S" instead of "apt-get install" and the following is what I have got:

[root@runeaudio ~]# pacman -S davfs2
resolving dependencies...
looking for inter-conflicts...

Packages (2): neon-0.30.0-1 davfs2-1.5.2-1

Total Download Size: 0.18 MiB
Total Installed Size: 1.12 MiB

:: Proceed with installation? [Y/n] Y
:: Retrieving packages ...
error: failed retrieving file 'neon-0.30.0-1-armv6h.pkg.tar.xz' from mirror.archlinuxarm.org : The requested URL returned error: 404 Not Found
warning: failed to retrieve some files
error: failed to commit transaction (download library error)
Errors occurred, no packages were upgraded.


Am I doing something wrong or is the script not compatible?
Still hope for your help.
Thanks.
andy.room
 
Posts: 31
Joined: 04 Jul 2014, 07:43

Re: Cloud streaming

Postby hondagx35 » 03 Jun 2015, 18:11

Hi,

try:
Code: Select all
pacman -Sy
pacman -S davfs2


The first command updates the local database, if it does not work you can try:
Code: Select all
pacman -Syy


Please do not update the system with "pacman -Syu, because this will break your system.

Frank
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: Cloud streaming

Postby andy.room » 09 Jun 2015, 16:38

Hello Frank,
I've been able to stream music from a remote folder of a cloud provider (box.com). Everything works fine and I wish to publish in this forum the complete procedure. I just need a very simple hint from you (but not for me..lol):
How can I launch my mount sequence automatically when the system starts up?
I have created a script (/usr/bin/mount-box.sh) that works fine when launched manually, but I do not know the way to run it automatically everytime the system boots.
Can you help me please to complete my task?
Thanks in advance for your help.
andy.room
 
Posts: 31
Joined: 04 Jul 2014, 07:43

Re: Cloud streaming

Postby hondagx35 » 09 Jun 2015, 20:37

Hi andy,

Create a new file in /etc/systemd/system (e.g. mount-box.service) and add the following contents:

Code: Select all
[Unit]
Description=launch mount sequence automatically when the system starts up
After=network.target

[Service]
ExecStart=/usr/bin/mount-box.sh

[Install]
WantedBy=multi-user.target


Then:

Code: Select all
systemctl enable myscript.service


Frank
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: Cloud streaming

Postby andy.room » 10 Jun 2015, 10:36

Thanks Frank, everything is very clear......but even if I do not get any error, the automatic launch of the mount procedure doesn't happen.
I tested the my "mount-box.service" file with "# systemctl is-enabled mount-box.service" and the answer is "enabled".
Tried to reboot or shutdown several times...same result.
It only works if I execute my script manually...straight forward
Any ideas?
Thanks again
andy.room
 
Posts: 31
Joined: 04 Jul 2014, 07:43

Re: Cloud streaming

Postby hondagx35 » 10 Jun 2015, 12:58

Hi,

does your script have this
Code: Select all
#!/usr/bin/sh

in the first line?

or try
Code: Select all
[Service]
ExecStart=/usr/bin/sh /usr/bin/mount-box.sh
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

support RuneAudio Donate with PayPal

Next

Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 16 guests