MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MMM-NOAA

    Scheduled Pinned Locked Moved Troubleshooting
    68 Posts 15 Posters 50.2k Views 13 Watching
    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.
    • HrierebH Offline
      Hriereb @Hriereb
      last edited by

      JS@hriereb said in MMM-NOAA:

      @cowboysdude
      How to change the default language?
      I’ve seen a translation folder with some .json files so I created an it.json file to enable the italian translation. After that I added some lined to the MMM-NOAA.js file but it doesn’t work. Where’s my mistake? Thanks.

      /* Magic Mirror
       * Module: MMM-NOAA
       * By cowboysdude and tbbear 
              modified by barnosch
       */
      var c = 0;
      var l = 1;
      var loco = "";
      "use strict";
      
      Module.register("MMM-NOAA", {
      
          // Module config defaults.
          defaults: {
              updateInterval: 70 * 60 * 1000, // every 10 minutes
              animationSpeed: 0,
              initialLoadDelay: 8000,
              rotateInterval: 20 * 1000,
              maxWidth: "100%",
              apiKey: "",
              airKey: "",
      	loco1: "xxx",
      	loco2: "xxx",
      	loco3: "xxx",
      	pws: "XXX",
      	pws1: "xxx",
      	pws2: "xxx",
      	pws3: "xxx",
      
      	   langFile: {
                  "en": "en-US",
                  "de": "de-DE",
                  "sv": "sv-SE",
                  "es": "es-ES",
                  "fr": "fr-FR",
                  "zh_cn": "zh-CN",
                  "da": "da",
                  "nl": "nl-NL",
                  "nb": "nb-NO",
                  "it": "it-IT"
              },
      
      
              langTrans: {
                  "en": "EN",
                  "de": "DL",
                  "sv": "SW",
                  "es": "SP",
                  "fr": "FR",
                  "zh_cn": "CN",
                  "da": "DK",
                  "nl": "NL",
                  "nb": "NO",
                  "it": "IT",
              },
      
      	levelTrans: {
              "1":"green",
      		"2":"yellow",
      		"3":"orange",
      		"4":"red",
      	}				
      
          },
      
          getTranslations: function() {
              return {
                  en: "translations/en.json",
                  da: "translations/da.json",
                  sv: "translations/sv.json",
                  de: "translations/de.json",
                  es: "translations/es.json",
                  fr: "translations/fr.json",
                  zh_cn: "translations/zh_cn.json",
                  nl: "translations/nl.json",
                  nb: "translations/nb.json",
                  it: "translations/it.json",
               };
          },
      
      /* Magic Mirror Config Sample
       *
       * By Michael Teeuw http://michaelteeuw.nl
       * MIT Licensed.
       *
       * For more information how you can configurate this file
       * See https://github.com/MichMich/MagicMirror#configuration
       *
       */
      
      var config = {
      	address: "localhost", // Address to listen on, can be:
      	                      // - "localhost", "127.0.0.1", "::1" to listen on loopback interface
      	                      // - another specific IPv4/6 to listen on a specific interface
      	                      // - "", "0.0.0.0", "::" to listen on any interface
      	                      // Default, when address config is left out, is "localhost"
      	port: 8080,
      	ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses
      	                                                       // or add a specific IPv4 of 192.168.1.5 :
      	                                                       // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
      	                                                       // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
      	                                                       // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
      
      	language: "it",
      	timeFormat: 24,
      	units: "metric",
      
      	modules: [
      		{
      			module: "alert",
      		},
                      {
                              module: 'MMM-NOAA',
                              position : "top_right",
                              language: "it",
                                      config: {
                                      apiKey: "xxxxxx",    // https://www.wunderground.com/weather/api  select the middle plan... 
      	                        airKey: "xxxxxxx"    // IF you want Air Quality Index
                                      }
                      },
      

      As I posted before I made an it.json file and put it in the translation folder. I’ve tried to update the MMM-NOAA.js
      but it doesn’t seem to work. Can you help me finding my mistake?

      idoodlerI 1 Reply Last reply Reply Quote 0
      • idoodlerI Offline
        idoodler Module Developer @Hriereb
        last edited by

        @hriereb May you please also post your it.json

        HrierebH 1 Reply Last reply Reply Quote 0
        • HrierebH Offline
          Hriereb @idoodler
          last edited by

          @idoodler

          {
          “Atmospheric Conditions” : “Condizioni Atmosferiche”,
          “Sunrise/Sunset”:“Alba/Tramonto”,
          “AQI/UV/Wind”:“AQI/UV/Vento”,
          “4 Day Forecast”:"Previsioni su quattro giorni ",
          “Monday”: “Lunedì”,
          “Tuesday”: “Martedì”,
          “Wednesday”: "Mercoledì ",
          “Thursday”: “Giovedì”,
          “Friday”: “Venerdì”,
          “Saturday”: “Sabato”,
          “Sunday”: “Domenica”,
          “Hours of Light”:“Ore di luce”,
          “Last Updated”: “Ultimo aggiornamento”,
          “Today”:“Oggi”,
          “Mon”:“Lun”,
          “Tue”:“Mar”,
          “Wed”:“Mer”,
          “Thu”:“Giov”,
          “Fri”:“Ven”,
          “Sat”:“Sab”,
          “Sun”:“Dom”,
          “Forecast”:“Previsioni”,
          “Weather warning”:“Allerta meteo”,
          “Night”: “Notte”
          }

          idoodlerI 1 Reply Last reply Reply Quote 0
          • idoodlerI Offline
            idoodler Module Developer @Hriereb
            last edited by

            @hriereb This is an invalide JSON, please replace “ with ".

            HrierebH 1 Reply Last reply Reply Quote 0
            • HrierebH Offline
              Hriereb @idoodler
              last edited by

              @idoodler
              Sorry,
              I’m an absolute beginner, what do I have to replace?

              idoodlerI 1 Reply Last reply Reply Quote 0
              • idoodlerI Offline
                idoodler Module Developer @Hriereb
                last edited by idoodler

                @hriereb As I already mentioned previously (but only halve correct) replace the characters “ (Left Double Quotation Mark) and ” (Right Double Quotation Mark) with " (Quotation Mark).
                NOTE: The characters you used are slightly tilted (italic).

                {
                  "Atmospheric Conditions" : "Condizioni Atmosferiche",
                  "Sunrise/Sunset":"Alba/Tramonto",
                  "AQI/UV/Wind":"AQI/UV/Vento",
                  "4 Day Forecast":"Previsioni su quattro giorni ",
                  "Monday": "Lunedì",
                  "Tuesday": "Martedì",
                  "Wednesday": "Mercoledì ",
                  "Thursday": "Giovedì",
                  "Friday": "Venerdì",
                  "Saturday": "Sabato",
                  "Sunday": "Domenica",
                  "Hours of Light":"Ore di luce",
                  "Last Updated": "Ultimo aggiornamento",
                  "Today":"Oggi",
                  "Mon":"Lun",
                  "Tue":"Mar",
                  "Wed":"Mer",
                  "Thu":"Giov",
                  "Fri":"Ven",
                  "Sat":"Sab",
                  "Sun":"Dom",
                  "Forecast":"Previsioni",
                  "Weather warning":"Allerta meteo",
                  "Night": "Notte"
                }
                
                HrierebH 1 Reply Last reply Reply Quote 0
                • HrierebH Offline
                  Hriereb @idoodler
                  last edited by

                  @idoodler
                  Ah ok, my tablet wrote a wrong character but I have the right version in my translation folder. What’s wrong with that?

                  idoodlerI 1 Reply Last reply Reply Quote 0
                  • idoodlerI Offline
                    idoodler Module Developer @Hriereb
                    last edited by

                    @hriereb You may try to lint your JSON then -> https://jsonlint.com/

                    1 Reply Last reply Reply Quote 1
                    • HrierebH Offline
                      Hriereb
                      last edited by

                      it returns me a valid json…

                      idoodlerI 1 Reply Last reply Reply Quote 0
                      • idoodlerI Offline
                        idoodler Module Developer @Hriereb
                        last edited by

                        @hriereb Well, thats odd then. I assume you did restart your MagicMirror after adding itallian, right?

                        1 Reply Last reply Reply Quote 0
                        • HrierebH Offline
                          Hriereb
                          last edited by

                          How do I restart the mirror? Do I have to do a sudo reboot?

                          idoodlerI 1 Reply Last reply Reply Quote 0
                          • idoodlerI Offline
                            idoodler Module Developer @Hriereb
                            last edited by

                            @hriereb If you are using pm2 you can just enter pm2 restart MagicMirror, a reboot will do the same, but takes longer.

                            1 Reply Last reply Reply Quote 0
                            • HrierebH Offline
                              Hriereb
                              last edited by

                              It works now, thank you so much mate. You’ve been so kind. May I ask you another thing? Everything seems now nicely translated except for the scrolling line under the icon, is there a way to translate it? Where can I find it? Thx again.

                              idoodlerI 1 Reply Last reply Reply Quote 0
                              • idoodlerI Offline
                                idoodler Module Developer @Hriereb
                                last edited by

                                @hriereb I am afraid, but I have no clue, what you mean. You can send me a screenshot, or mark what you mean on the example images on Github and post them here.

                                1 Reply Last reply Reply Quote 0
                                • HrierebH Offline
                                  Hriereb
                                  last edited by

                                  0_1527536226004_Studio_20180528_213636.jpg

                                  I mean above the weather icon I still see overcast clouds and under the field “previsione” there’s the same scrolling phrase.

                                  idoodlerI 2 Replies Last reply Reply Quote 0
                                  • idoodlerI Offline
                                    idoodler Module Developer @Hriereb
                                    last edited by

                                    @hriereb Oh, I guess, this is the weather description from the Weather API. The developer behind MMM-NOAA is currently reworking the module. You may contact him and request a full translatable config.

                                    1 Reply Last reply Reply Quote 0
                                    • HrierebH Offline
                                      Hriereb
                                      last edited by

                                      Ok, thanks again mate. I really appreciated your help.

                                      1 Reply Last reply Reply Quote 1
                                      • idoodlerI Offline
                                        idoodler Module Developer @Hriereb
                                        last edited by

                                        @hriereb Btw. I would love to see an upvote on the post that helped you the most:)

                                        1 Reply Last reply Reply Quote 1
                                        • Mykle1M Offline
                                          Mykle1 Project Sponsor Module Developer @Hriereb
                                          last edited by

                                          @hriereb said in MMM-NOAA:

                                          I added some lined to the MMM-NOAA.js

                                          In the future, it might be best to ask for help before you start editing the module files. This is not recommended and makes it more difficult to determine the cause of your issue

                                          Create a working config
                                          How to add modules

                                          1 Reply Last reply Reply Quote 1
                                          • C Offline
                                            core
                                            last edited by

                                            Hi everyone,

                                            I have problems with regard to the latest version of this module.

                                            I updated to the new version, including the updated weather service provider and since then, two of my other modules (MMM-Fuel and MMM-Sonos) are not working any more. The position (bottom_left) is just blank now, wheras the MMM-NOAA (position: top_right) module works. Even a re-install of MMM-NOAA and reboot of my Rpi3 did not fix this issue.
                                            When I delete the module from my config, all other modules are working again, so I can clearly assign the problem to the MMM-NOAA module.
                                            Until now, I don´ t use this module and all modules are working smoothly. However, I like this module so hopefully, the problems will be fixed soon. Any news about it?

                                            Thanks!

                                            idoodlerI cowboysdudeC 2 Replies Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 2 / 4
                                            • First post
                                              Last post
                                            Enjoying MagicMirror? Please consider a donation!
                                            MagicMirror created by Michael Teeuw.
                                            Forum managed by Sam, technical setup by Karsten.
                                            This forum is using NodeBB as its core | Contributors
                                            Contact | Privacy Policy