Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

Using DSAudio from Synology from a HC2


Question

Posted

Hi there,

 

A small message here to indicate that I started a project to control the DSAudio player from the HC2.

You can install the .vfib of the 1.0-beta1 version which only takes 75 tracks in random from your library and send it to the selected renderer.

 

You just have to edit the ip, port, admin password and the renderer name to get it work.

 

That should be pretty straightforward to use.

 

Please consider that as a first beta testing, so things could fail ;o)

 

You can find the code & the vfib here :

Please login or register to see this link.

Cheers,

Erwan

Recommended Posts

  • 0
  • Inquirer
  • Posted

    I made a 1.0-beta2

     

    It does provide a more reactive interface and new controls (play,stop,next,prev, pause, volume)

    You just have to create a global variable DSAudio_Control to get it work.

     

    Enjoy,

    Please login or register to see this link.

    • 0
    Posted

    What a coincidence!

    I was just looking for something like this today...

    Thanks a lot! I will try it and post you my results if there are any to be mentioned (like bugs or incompatibilities).

    • 0
  • Inquirer
  • Posted

    I have a short stack of issues to solve and features to add but would be interested at getting yours too ;o)

    • 0
    Posted

    First of all it worked with DS412+ and current version of DSAudio.

     

    Features I would like to see/have are (I can also work on it if you like):

    - Displaying current audio file

    - Choose special audio file to play only

    - Choose playlist

    - Speed of reactions (but I don't know if this is possible)

    • 0
  • Inquirer
  • Posted

    Everything is possible.

     

    I'm just wondering about the reactivity. It's like the DSAudio web client which is pretty laggy.

     

    Anyway thanks for the report. Hope you enjoyed it ;o)

    • 0
  • Inquirer
  • Posted

    Can you point me out how you'd like to get the name of the current song playing.

    Almost the same question about how to provide the name of a particular playlist or song.

    • 0
    Posted

    Up to now I figured out how to load the content of a playlist:

    api=SYNO.AudioStation.RemotePlayer&method=getplaylist&id=<PlayerID>&version=2

     

    Set a special file out of the current playlist

    api=SYNO.AudioStation.RemotePlayer&method=control&action=play&id=<PlayerID>&value=<Index starting with 0>&version=2

     

     

    Choose a playlist:

    api=SYNO.AudioStation.RemotePlayer&method=updateplaylist&library=shared&id=<PlayerID>&offset=0&limit=0&play=true&version=2&containers_json=[{"type":"playlist","id":"<PlaylistID"}]

    (This json entry must be in URL-enconding (percent-encoding)

     

    Maybe this will help:

    Please login or register to see this link.

    Specially:

    Please login or register to see this link.

    • 0
  • Inquirer
  • Posted

    Sorry, I wasn't clear enough. I know how to use the API with it but I wonder how to provide the input on my plugin.

     

    On the fibaro system, I do'nt really get how you want to provide input (playlist name, ..) to my plugin.

    • 0
    Posted

    I understand. Sorry.

     

    In this virtual plugin you cannot have an input field.

    A label is possible to show the currently played song and also the current name of the playlist.

    But I think having a global variable with filename (plus foldername) would suit very well.

    • 0
  • Inquirer
  • Posted

    Hey, I've been implementing the currently play song :

    Please login or register to see this link.

     

    Will be part of the next release

    • 0
    Posted

    Here might be a bug:

    Please login or register to see this code.

    If the parameter is not set "args.songs" won't exist.

    Normally it does exist. But it should be consistent, otherwise this is useless:

    Please login or register to see this code.

    Showing the currently played name is working.

     

    Right now I am looking how to specify a specific playlist.

    I found out how it should work but it doesn't yet.

     

    I can list all available playlists but setting one gives error 405.

    • 0
  • Inquirer
  • Posted

    I move the code to another repo in order to collect a various set of hacks & virtual devices :

    Please login or register to see this link.

    • 0
  • Inquirer
  • Posted

    Just release a beta3 here :

    Please login or register to see this link.

    • 0
    Posted

    Will this still work for people who have 2 step verification enabled?

    Please login or register to see this image.

    /emoticons/default_icon_wink.gif" alt=";-)" />

    • 0
  • Inquirer
  • Posted

    Just release the beta4 to handle case where the playlist is empty.

    • 0
  • Inquirer
  • Posted

    I've been also implementing the playlist support and fixed some issues with big playlist.

     

    That makes a 1.0-rc1 ready to be turned into a 1.0 if no bug found by testing.

     

    Please found the release here :

    Please login or register to see this link.

     

    Note the vfib does provide a sample implementation to control a playlist streaming.

     

    Enjoy,

    • 0
    Posted

    I will test it.

    But since a week I am struggling with getting my speaker connected to Synology again.

    I don't know why (yet) but Synology does not fine it anymore

    Please login or register to see this image.

    /emoticons/default_sad.png" alt=":(" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

    When it is working again, I will test it intensively.

    • 0
    Posted

    The songtext is not displayed correctly at my place.

    It is cut off after 16 characters.

     

    Also playlists are not working. There is no error message. It looks like it should work but Audiostation is playing just the same playlist as before.

    But maybe I have configured something wrong.

    Being more specific: It is loading the play queue with the wrong songs all the time, it does not matter which playlist I choose.

    Setting up an illegal playlist does not give me an error message also.

     

    I am going to check this.

    • 0
    Posted

    Why are you using playlist_shared_smart and not playlist_shared_normal?

    What is the difference?

     

    Using *_normal is not working (cannot remember where I did get this from). Using this is doing nothing, playlist stays empty (but no error message).

    Using *_smart fills playlist with all songs but not the one from the playlist only.

    • 0
    Posted

    A request like this one does not load a specific playlist for me (named "2"):

    wget -qO - --no-check-certificate --load-cookies cookies.txt --post-data api=SYNO.AudioStation.RemotePlayer&method=updateplaylist&library=shared&id=uuid:F00DBABE-AA5E-BABA-DADA-188ED5720080&offset=0&limit=8192&play=true&version=2&containers_json=%5B%7B%22type%22%3A%22playlist%22%2C%22id%22%3A%22playlist_shared_smart%2F2%22%7D%5D

    Please login or register to see this link.

     

    How does it come that it is working for you?

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Answer this question...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...