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


Question

Posted

Hi all,

I setup  a raspberry pi with homebridge and also the sonos-http-api server.

 

Everything is working really great, however, I am a little stuck here:

 

I would like to call (open) a Url on a VD buttonpress to start the sonos function (especially the TTS).

Format of the URL is quite simple: "

Please login or register to see this link.

to say"

 

How can I do this?

 

cheers

joystick

 

 

Recommended Posts

  • 0
  • Inquirer
  • Posted

    Wow, Great! I Will Play around with that tomorrow...

    Thanks a lot, this is getting me on the Track for more!

    Please login or register to see this image.

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

    I think there might be a Problem with the language mix (english/German ) though.

    • 0
    Posted

    If you have set url_lang = "de-de"; in the say.js  and if you have set your HC2 to (in your case) German you should be fine.

    You will need to translate the English sayall words (in my example) to German.

    • 0
  • Inquirer
  • Posted

    Everything is working great.

    I found out that the Url encode is also working with "+" instead of "%20" which is more easy to read/Write...

    Cheers

    Joystick

    • 0
    Posted

    Yes with the URL Encode it does work fine too.

     

    So final code will look like this:

    Please login or register to see this code.

    Change the IP 10.0.0.105 accordingly!

     

    Will be doing some more coding when I have more time.

    • 0
    Posted

    Works this code only with a RPI?

     

    Or - did you realize TTS and Sonos via 

    Please login or register to see this link.

    ?

    • 0
    Posted

    RPI.

    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...