Bugsounet Coding

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

    [GA-RECIPE] MMM-NewsFeed

    Recipes
    2
    2
    251
    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.
    • 2hdlockness
      2hdlockness Helpers last edited by bugsounet

      Hello following the update of MMM-NewsFeed you can now display the article in full screen with A2D, return to the previous article, go to the next article and finally force the refresh of all news data . Here is a recipe (English, French and Italian) allowing you to perform these actions with GA :

      var recipe = {
        transcriptionHooks: {
          "NEWS_DETAIL_FR": {
            pattern: "affiche l'article",
            command: "NEWS_DETAIL"
          },
          "NEWS_PREVIOUS_FR": {
            pattern: "article précédent",
            command: "NEWS_PREVIOUS"
          },
          "NEWS_NEXT_FR": {
            pattern: "article suivant",
            command: "NEWS_NEXT"
          },
          "NEWS_REFRESH_FR": {
            pattern: "mets à jour les données d'actualité",
            command: "NEWS_REFRESH"
          },    
          "NEWS_DETAIL_IT": {
            pattern: "mostra articolo",
            command: "NEWS_DETAIL"
          },
          "NEWS_PREVIOUS_IT": {
            pattern: "articolo precedente",
            command: "NEWS_PREVIOUS"
          },
          "NEWS_NEXT_IT": {
            pattern: "articolo successivo",
            command: "NEWS_NEXT"
          },
          "NEWS_REFRESH_IT": {
            pattern: "aggiornare i dati delle notizie",
            command: "NEWS_REFRESH"
          },        
          "NEWS_DETAIL_EN": {
            pattern: "show article",
            command: "NEWS_DETAIL"
          },
          "NEWS_PREVIOUS_EN": {
            pattern: "previous article",
            command: "NEWS_PREVIOUS"
          },
          "NEWS_NEXT_EN": {
            pattern: "next article",
            command: "NEWS_NEXT"
          },
          "NEWS_REFRESH_EN": {
            pattern: "update news data",
            command: "NEWS_REFRESH"
          }                                    
        },
        commands: {
          "NEWS_DETAIL": {
            notificationExec: {
              notification: "NEWSFEED_DETAIL"
            },
            soundExec: {
              chime: "open"
            }  
          },
          "NEWS_PREVIOUS": {
            notificationExec: {
              notification: "NEWSFEED_PREVIOUS"
            },
            soundExec: {
              chime: "open"
            }  
          },
          "NEWS_NEXT": {
            notificationExec: {
              notification: "NEWSFEED_NEXT"
            },
            soundExec: {
              chime: "open"
            }
          },
          "NEWS_REFRESH": {
            notificationExec: {
              notification: "NEWSFEED_REFRESH"
            },
            soundExec: {
              chime: "open"
            }
          }
        }
      }
      
      exports.recipe = recipe // Don't remove this line.
      
      
      1 Reply Last reply Reply Quote 1
      • bugsounet
        bugsounet Main Coder last edited by

        should works with GA v3.0.2 and Newsfeed v1.1.4

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