Bugsounet Coding

    • Register
    • Login
    • Search
    This Forum is now reserved to registred users!

    [Need Help] Displaying web result

    Issues
    5
    20
    167
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • bugsounet
      bugsounet Main Coder last edited by bugsounet

      Hi, I’m Coding GA V4.1.0 but i need your help.

      I’m able to activate web result content with EXT-Browser or EXT-YouTube

      I have to do a lang database, for enable this functionality

      Each language have some Google text result and this text result will able to enable search

      Google Search (with lang defined in assistantConfig)

      lang: fr-FR

              "Voici le premier résultat de recherche"
              "Voici ce que j'ai trouvé"
              "Voilà un résultat venant du Web"
              "Voilà ce que nous donne une recherche rapide"
              "Je vous donne le premier résultat"
              "Une recherche nous donne ce résultat"
              "Voilà ce que j'ai trouvé"
              "Sur le Web, on trouve ce résultat"
              "Un résultat de recherche"
              "Ceci vient du Web" (Since v4.2.0)
      

      lang: en-US

              "Here's what I found"
              "Here's the top search result"
              "Here's what I found on the web"
              "Here's a result from search"
              "Here's a result from the web"
              "This is the top result"
              "This came back from a search"
              "this came back from google"
              "here's some info"
      

      What’s your ?
      Give me all possible result with your lang defined in assistantConfig 🙂

      YouTube Search (with lang defined in assistantConfig)

      lang: fr-FR

              "Voilà ce que propose YouTube"
              "Voici un résultat provenant de YouTube"
              "J'ai trouvé ça sur YouTube"
              "Voilà ce que YouTube propose"
              "Voilà un résultat de YouTube"
              "Voici les meilleurs résultats de YouTube"
              "Voici les premiers résultats de YouTube"
              "Voici quelques éléments trouvés sur YouTube"
              "Voilà des éléments tirés de YouTube"
              "YouTube propose ce résultat"
      

      lang: en-US

              "YouTube has this result"
              "This came back from YouTube"
              "This is from YouTube"
              "Here's a matching YouTube result"
              "Here's a result from YouTube"
              "Here's an answer from YouTube"
              "Here's a YouTube result"
              "Here's the top YouTube result"
              "Here's something from YouTube"
              "I found this on YouTube"
      

      Help me to find all language and all response possibility for open EXT-Brower or EXT-YouTube !

      I just release v4.1.0 with assistantSearch in fr-FR and en-US language

      Thanks for your help !

      A 1 Reply Last reply Reply Quote 0
      • bugsounet
        bugsounet Main Coder last edited by

        v4.2.0 will start now

        –> It allows you to open the first link discovered instead of google search

        Don’t remember to use npm run update !

        1 Reply Last reply Reply Quote 0
        • A
          Anthony Donators @bugsounet last edited by Anthony

          @bugsounet
          Google Search
          lang: el-GR

                  "Βρήκα αυτό"
                  "Αυτό είναι το κορυφαίο αποτέλεσμα της αναζήτησης"
                  "Βρήκα αυτό στο διαδίκτυο"
                  "Αυτό είναι ένα αποτέλεσμα από την αναζήτηση"
                  "Αυτό είναι ένα αποτέλεσμα από τον ιστό"
                  "Αυτό είναι το κορυφαίο αποτέλεσμα"
                  "Βρήκα αυτό μετά την αναζήτηση"
                  "Βρήκα αυτό στο google"
                  "Εδώ είναι μερικές πληροφορίες"
          

          YouTube Search

                  "Αυτό είναι το αποτέλεσμα από το YouTube"
                  "Βρήκα αυτό στο YouTube"
                  "Αυτό είναι από το YouTube"
                  "Αυτό είναι ένα ταιριαστό αποτέλεσμα από το YouTube"
                  "Αυτό είναι ένα αποτέλεσμα από το YouTube"
                  "Αυτή είναι μία απάντηση από το YouTube"
                  "Αυτό είναι ένα αποτέλεσμα από το YouTube"
                  "Αυτό είναι το κορυφαίο αποτέλεσμα στο YouTube"
                  "Εδώ είναι κάτι από το YouTube"
                  "Βρήκα αυτό στο YouTube"
          
          R 1 Reply Last reply Reply Quote 0
          • R
            Raf Translators @Anthony last edited by

            nl-BE

            "Hier is wat ik heb gevonden"
            "Hier is het beste zoekresultaat"
            "Hier is wat ik gevonden heb op internet"
            "Hier is een zoekresultaat"
            "Hier is het beste resultaat"
            "Dit komt terug uit een zoekresultaat"
            "Dit komt terug uit een zoekresultaat van google"
            "Hier is wat info"
            
            R 1 Reply Last reply Reply Quote 0
            • R
              Raf Translators @Raf last edited by Raf

              YouTube Search

              "Youtube geeft dit resultaat"
              "Dit komt terug uit een zoekresultaat van Youtube"
              "Dit komt van Youtube"
              "Hier is een overeenkomend YouTube-resultaat"
              "Hier is een resultaat van Youtube"
              "Hier is een antwoord van Youtube"
              "Hier is een Youtube resultaat"
              "Dit is het beste YouTube resultaat"
              "Hier is iets van Youtube"
              "Dit heb ik gevonden op Youtube"
              
              1 Reply Last reply Reply Quote 0
              • bugsounet
                bugsounet Main Coder last edited by

                Warn Guys:

                • lang is NOT the lang of MagicMirror config !
                • lang is the lang of GA AssisantConfig see there 🙂
                A 1 Reply Last reply Reply Quote 0
                • A
                  Anthony Donators @bugsounet last edited by

                  @bugsounet Hello. I hope you are doing well. I am not sure what you mean about the language. In mm config there is the lang
                  section which in my case is set to ‘gr’ and the locale section which is set to ‘el-GR’. For the translation I used the same lang setting as you. Is this wrong? Do you need another setting?

                  1 Reply Last reply Reply Quote 0
                  • bugsounet
                    bugsounet Main Coder last edited by bugsounet

                    Hi,

                    I just launch V4.2.2 and it display MMM-GoogleAssistant Language used:

                    image.png

                    in this case: it’s fr_FR

                    No error can be emit now 🙂

                    Then, what is assisant lang ? @bitass, @raf, @Anthony

                    Note: new beta lag supported: it-IT, de-DE
                    Warn:

                    • I don’t want a translate part !
                    • I want ALL sentence on the screen (assisant response) that match for opening browser need

                    Tips:

                    1. Enable debug mode in GA
                    • TelegramBot can help you !
                      —> Try /query bugsounet

                    • Gateway app can help you too !
                      in Tools -> query Assistant (request)
                      —> Send bugsounet

                    image.png

                    1. go to terminal and see logs
                      you will discover this:
                    [02.03.2023 00:49.57.198] [LOG]   [GA] ASSISTANT_RESULT {
                      error: { error: null, message: null, audio: false },
                      action: { requestId: '64000197-0000-2cf1-a667-582429d28bc0' },
                      text: "Voici ce que j'ai trouvé",
                      screen: {
                    ....
                    

                    I am looking to have all the possibilities of the text field. I’m my case text: "Voici ce que j'ai trouvé",
                    Usually there are about 10 different answer possibilities 🙂

                    Past me all posibilites my lang used in GA (see my screenshot)
                    Thanks for your help !

                    A 1 Reply Last reply Reply Quote 0
                    • A
                      adel51 last edited by

                      ‘Voilà ce que nous donne une recherche rapide’
                      Par contre, j ai eu des messages d erreur. et aucune page web ne s est ouverte !

                      [02.03.2023 14:21.45.831] [LOG] [GA] ASSISTANT_RESULT {
                      error: { error: null, message: null, audio: false },
                      action: { requestId: ‘6401e671-0000-2ce0-9f01-582429cef278’ },
                      text: ‘Voilà ce que nous donne une recherche rapide’,
                      screen: {
                      text: ‘.show_text_container{width:100%;padding:41px 0px 41px 112px;box-sizing:border-box}.show_text_content{font-size:1em;line-height:1.4em;width:24.7em;white-space:pre-wrap;color:#ffffff}#scroll-up{background-image:url(“https://www.gstatic.com/actions/devices_platform/expand-less.png”);background-size:48px 48px;color:#FFFFFF;height:48px;width:48px;margin-bottom:24px;display:none}#scroll-up:focus{background-color:#8e4e76}#scroll-down{background-image:url(“https://www.gstatic.com/actions/devices_platform/expand-more.png”);background-size:48px 48px;color:#FFFFFF;height:48px;width:48px;display:none}#scroll-down:focus{background-color:#8e4e76}.scroll-bar{left:32px;position:absolute;display:flex;flex-direction:column;margin-top:48px}.scroll_active{background-color:#424242}.scroll_inactive{opacity:0.3}\n’ +
                      ‘Voilà ce que nous donne une recherche rapide’,
                      links: [],
                      photos: [],
                      path: ‘/home/rpi/MagicMirror/modules/MMM-GoogleAssistant/tmp/responseOutput.html’,
                      uri: ‘tmp/responseOutput.html’
                      },
                      audio: {
                      path: ‘/home/rpi/MagicMirror/modules/MMM-GoogleAssistant/tmp/lastResponse.mp3’,
                      uri: ‘tmp/lastResponse.mp3’
                      },
                      transcription: { transcription: ‘bugsonnet’, done: true },
                      continue: false,
                      volume: null,
                      lastQuery: {
                      type: ‘TEXT’,
                      key: ‘bugsonnet’,
                      lang: ‘fr-FR’,
                      status: ‘standby’,
                      chime: true
                      }
                      }
                      [02.03.2023 14:21.47.359] [LOG] [GA] [GoogleSearch] Link: https://www.lepoint.fr/justice/le-bourgeois-le-vicomte-et-le-laveur-de-vitres-rebondissement-dans-l-affaire-bissonnet-22-05-2019-2314465_2386.php
                      [02.03.2023 14:21.47.361] [LOG] [GA] [GoogleSearch] Link: https://www.lefigaro.fr/tag/jean-michel-bissonnet
                      [02.03.2023 14:21.47.363] [LOG] [GA] [GoogleSearch] Link: https://www.francebleu.fr/infos/faits-divers-justice/les-annees-2010-dans-l-herault-le-proces-de-l-affaire-bissonnet-1577117297
                      [02.03.2023 14:21.47.364] [LOG] [GA] [GoogleSearch] Link: https://www.rtl.fr/actu/justice-faits-divers/l-affaire-bissonnet-le-mari-le-jardinier-et-le-vicomte-7900214813
                      [02.03.2023 14:21.47.367] [LOG] [GA] [GoogleSearch] Results: [
                      ‘https://www.lepoint.fr/justice/le-bourgeois-le-vicomte-et-le-laveur-de-vitres-rebondissement-dans-l-affaire-bissonnet-22-05-2019-2314465_2386.php’,
                      ‘https://www.lefigaro.fr/tag/jean-michel-bissonnet’,
                      ‘https://www.francebleu.fr/infos/faits-divers-justice/les-annees-2010-dans-l-herault-le-proces-de-l-affaire-bissonnet-1577117297’,
                      ‘https://www.rtl.fr/actu/justice-faits-divers/l-affaire-bissonnet-le-mari-le-jardinier-et-le-vicomte-7900214813’
                      ]
                      [02.03.2023 14:21.50.716] [LOG] [DETECTOR] Starts listening. 1 Models
                      [02.03.2023 14:21.58.700] [ERROR] Error occurred in handler for ‘GUEST_VIEW_MANAGER_CALL’: Error: ERR_ABORTED (-3) loading ‘about:blank’
                      at rejectAndCleanup (node:electron/js2c/browser_init:2:76993)
                      at EventEmitter.navigationListener (node:electron/js2c/browser_init:2:77299)
                      at EventEmitter.emit (node:events:525:35) {
                      errno: -3,
                      code: ‘ERR_ABORTED’,
                      url: ‘about:blank’
                      }

                      1 Reply Last reply Reply Quote 0
                      • A
                        adel51 last edited by

                        ‘Ceci vient du Web’ tu ne l avais pas dans ta liste il me semble

                        1 Reply Last reply Reply Quote 0
                        • bugsounet
                          bugsounet Main Coder last edited by

                          Salut,

                          1. Erreur Electron => essai d’ouvrir la page mais la connexion a été reinitialisée
                          2. Ceci vient du Web est present dans la liste depuis v4.2.0
                          A 2 Replies Last reply Reply Quote 0
                          • A
                            adel51 @bugsounet last edited by

                            @bugsounet
                            Donc à mon avis, tu as la liste complète en fr

                            1 Reply Last reply Reply Quote 0
                            • A
                              adel51 @bugsounet last edited by

                              @bugsounet j attends avec impatience le wiki pour Smart Home ! 😂

                              1 Reply Last reply Reply Quote 0
                              • B
                                bitass last edited by bugsounet

                                I did an update to GA 4.2.2
                                I recieve [GA:AS] CONVERSATION_ERROR: Error: 3 INVALID_ARGUMENT: Invalid 'dialog_state_in': unsupported language_code. when my config is set to
                                nl-BE

                                This is the reason why I changed it to

                                en-US
                                
                                1 Reply Last reply Reply Quote 0
                                • bugsounet
                                  bugsounet Main Coder last edited by

                                  @bitass : perfect !

                                  Can you confirm me (to be sure that it’s not a translated part EN to NL)

                                  • Youtube Search:
                                      "YouTube geeft je dit resultaat"
                                      "Dit antwoord komt van YouTube"
                                      "Ik heb dit gevonden op YouTube"
                                      "Hier een passend voorstel van YouTube"
                                      "Hier een resultaat van YouTube"
                                      "Hier het antwoord van YouTube"
                                      "Hier is het beste resultaat van YouTube"
                                      "Hier is het eerste resultaat van YouTube"
                                      "Dit heb ik gevonden op YouTube"
                                      "YouTube stelt dit voor"
                                  
                                  • GoogleSearch:
                                      "Dit heb ik gevonden"
                                      "Dit is het beste resultaat dat ik gevonden heb"
                                      "Dit heb ik op internet gevonden"
                                      "Hier is het zoekresultaat"
                                      "Hier is het internet zoekresultaat"
                                      "Hier het beste zoekresultaat"
                                      "Dit is het resultaat van uw zoekopdracht"
                                      "Hier het antwoord van Google"
                                      "Hier heb je meer informatie"
                                  

                                  It’s the real Text response of GA displayed or it’s you own translate ?

                                  1 Reply Last reply Reply Quote 0
                                  • bugsounet
                                    bugsounet Main Coder last edited by

                                    @Raf :
                                    I think that you use the default lang too (en-US)

                                    It’s the real Text response of GA displayed or it’s you own translate ?

                                    1 Reply Last reply Reply Quote 0
                                    • B
                                      bitass last edited by

                                      UPDATE:
                                      Actual result, not translated:

                                      Youtube Search:

                                      "Dit is het beste resultaat"
                                          "Hier is het beste zoekresultaat"
                                          "Dit heb ik gevonden"
                                          "Dit zijn de beste resultaten"
                                          "Hier zijn een paar zoekresultaten"
                                          "Hier is een resultaat"
                                          "Hier is een zoekresultaat"
                                      

                                      GoogleSearch:

                                      "Dit heb ik op internet gevonden"
                                          "Dit is het beste resultaat"
                                          "Dit heb ik gevonden"
                                          "Hier het beste zoekresultaat"
                                          "Hier is het beste zoekresultaat"
                                          "Hier is een resultaat"
                                          "Hier is een zoekresultaat"
                                          "Ik heb dit gevonden over je zoekopdracht"
                                      
                                      1 Reply Last reply Reply Quote 0
                                      • bugsounet
                                        bugsounet Main Coder last edited by

                                        thx, just added in v4.2.4 😉

                                        1 Reply Last reply Reply Quote 0
                                        • B
                                          bitass last edited by

                                          Thank you bugsounet! I did the update and the result is incredible, The GA opens every search I do (in dutch) and the most important thing is: it gives you much more interraction.

                                          1 Reply Last reply Reply Quote 0
                                          • A
                                            Anthony Donators @bugsounet last edited by

                                            @bugsounet Hello again. In this case I cannot help you much bacause my pi’s SD crashed and I must set all up again in a new one. I will do it during the weekend probably and then I will check what you need. I will keep in touch. Thank you again for your effort.

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Powered by NodeBB | @bugsounet ©2022