MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. NPX78
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    N
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 6
    • Groups 0

    NPX78

    @NPX78

    1
    Reputation
    203
    Profile views
    6
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    NPX78 Unfollow Follow

    Best posts made by NPX78

    • RE: MM and Kalliope: make Kalliope speaking

      :::

      Spoiler Text

      :::

      Hello

      So my solution.

      :::

      Kalliope Side :

      :::

      //-- settings.yml file
      
      # ---------------------------
      # Rest API
      # ---------------------------
      rest_api:
        active: True
        port: 5000
        password_protected: False
        login: admin
        password: secret
        allowed_cors_origin: "*" 
      
      

      active:True allows using the Rest API
      password_protected: False allows anonymous connections
      allowed_cors_origin: allows connections from other sites. This option is mandatory because the MM site is localhost:8080 and kalliope 127.0.0.1:5000

      Concerning the brain.yml file

        - name: "repeat"
          signals:
            - order: "repeat after me {{sentence}}"
          neurons:
            - say:
                message: "{{sentence}}"
      
      

      This synapse allows Kalliope repeat a sentence.

      :::

      Magic Mirror side :

      :::

      The following lines could be inserted in a module file

      //-- Create the Request object.
      const Http   = new XMLHttpRequest();
      
      //-- Url to call fo our synapse.
      const url    = 'http://localhost:5000/synapses/start/id/repeat';
      
      //-- Build our data to send as parameters of our request.
      var sent     = 'This is the text I want Kalliope repeat';    //-- You can modify it
      var data     = {"parameters" : {'sentence':sent}};
      var dataJson = JSON.stringify(data);
      
      //-- Launch the request.                
      Http.open("POST",url);
      Http.setRequestHeader("Content-type","application/json");
      Http.send(dataJson);
      
      

      I hope to be clear :)
      I mark the post as Solved.

      Thank you a lot for your time and ideas.

      Regards

      Nicolas

      posted in Troubleshooting
      N
      NPX78

    Latest posts made by NPX78

    • RE: MM and Kalliope: make Kalliope speaking

      :::

      Spoiler Text

      :::

      Hello

      So my solution.

      :::

      Kalliope Side :

      :::

      //-- settings.yml file
      
      # ---------------------------
      # Rest API
      # ---------------------------
      rest_api:
        active: True
        port: 5000
        password_protected: False
        login: admin
        password: secret
        allowed_cors_origin: "*" 
      
      

      active:True allows using the Rest API
      password_protected: False allows anonymous connections
      allowed_cors_origin: allows connections from other sites. This option is mandatory because the MM site is localhost:8080 and kalliope 127.0.0.1:5000

      Concerning the brain.yml file

        - name: "repeat"
          signals:
            - order: "repeat after me {{sentence}}"
          neurons:
            - say:
                message: "{{sentence}}"
      
      

      This synapse allows Kalliope repeat a sentence.

      :::

      Magic Mirror side :

      :::

      The following lines could be inserted in a module file

      //-- Create the Request object.
      const Http   = new XMLHttpRequest();
      
      //-- Url to call fo our synapse.
      const url    = 'http://localhost:5000/synapses/start/id/repeat';
      
      //-- Build our data to send as parameters of our request.
      var sent     = 'This is the text I want Kalliope repeat';    //-- You can modify it
      var data     = {"parameters" : {'sentence':sent}};
      var dataJson = JSON.stringify(data);
      
      //-- Launch the request.                
      Http.open("POST",url);
      Http.setRequestHeader("Content-type","application/json");
      Http.send(dataJson);
      
      

      I hope to be clear :)
      I mark the post as Solved.

      Thank you a lot for your time and ideas.

      Regards

      Nicolas

      posted in Troubleshooting
      N
      NPX78
    • RE: MM and Kalliope: make Kalliope speaking

      Hello everybody

      Good night for my brain :) .
      I solved my problem.

      I will put the solution this evening (and will turn this post to solve)

      Thanh you a lot to everybody in particular Sean.

      Regards

      Nicolas

      posted in Troubleshooting
      N
      NPX78
    • RE: MM and Kalliope: make Kalliope speaking

      @sean Very good idea. Thank you.

      I look for it this evening.

      Currently : call the API REST with a synapse “repeat afer me …” : OK
      I have some problem to call the curl into javascript module.

      I use the XMLHttpRequest, but I have a beautiful: “400 (BAD REQUEST)” :)

      After a night, my brain would be better :).

      I will give you some news tomorrow.

      posted in Troubleshooting
      N
      NPX78
    • RE: MM and Kalliope: make Kalliope speaking

      @sean hello Sean.
      Using the TTS of Kalliope could be the better solution.
      But how can I call this fonctionnalité from a MM module

      Thank you for your time and explanations

      Regars

      Nicolas

      posted in Troubleshooting
      N
      NPX78
    • RE: MM and Kalliope: make Kalliope speaking

      @sdetweil Thank you for your answer.
      In a perfect world, I would like to have the Kalliope voice :smiling_face_with_open_mouth_smiling_eyes:
      Is it possible with MMM-TTS module ?

      Regards

      Nicolas

      posted in Troubleshooting
      N
      NPX78
    • MM and Kalliope: make Kalliope speaking

      Hello everyone

      Sorry for my english.
      I hope my question is not already answered in another post

      I am working on module and interactions between Kalliope and MagicMirror.
      The module receives the order and takes it into account.

      Now, I would like to force Kalliope to say someting.

      For example:

      1. I say : “Kalliope … Display the calendar for John”
      2. Kalliope send a notification to modules
      3. My module catches this notification and display the calendar for John
      4. My module forces Kalliope to say “The calendera for John is displayed”

      The step 1, 2 a,d 3 are OK
      But I do not know if it is possible to do the step 4.

      Currently I display only the text.

      Thank you for your time and your help.

      Regards

      Nicolas

      posted in Troubleshooting
      N
      NPX78