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

    Posts

    Recent Best Controversial
    • RE: default Weather, current with wethergov issues

      @linuxha

      Hi,

      What is your default for ‘units’ in the config.js file?

      Config Options…

      Possible values: config.units = Specified by config.js, default = Kelvin, metric = Celsius, imperial =Fahrenheit

      and if your are asking about the current weather module

      useKMPHwind Uses KMPH as units for windspeed.
      Possible values:true or false
      Default value: false

      useBeaufort Pick between using the Beaufort scale for wind speed or using the default units.
      Possible values: true or false
      Default value: true

      if you are using weather module - windUnits

      What units to use for wind speed. If specified overrides units setting. Specified by config.js

      Possible values: config.units = Specified by config.js, default = Kelvin, metric = Celsius, imperial = Fahrenheit

      It’s best to check your options per module.

      Cheers.

      posted in Bug Hunt
      S
      scumbelly
    • Weather Module Location ID

      Hi,

      FYI

      I installed the latest MM version on a ‘play’ system. When using the ‘new’ weather module for current and forecast when I enter the ‘LocationID:’ 6 digit number the module only gets as far as loading. If I use ‘appid’ & ‘Location’ (location has to be valid ‘city’ supported by openweathermap) the module loads.

      Cheers

      posted in System
      S
      scumbelly
    • RE: weather module just shows loading?

      @sdetweil

      Thanks, I always thought I needed double quotes.

      posted in Troubleshooting
      S
      scumbelly
    • RE: weather module just shows loading?

      O.K.

      and… onlyTemp: ‘true’, would not have any quotes.

      posted in Troubleshooting
      S
      scumbelly
    • RE: weather module just shows loading?

      @fribse

      Are your single quotes ’ just an accident in your examples?

      {
      			module: "currentweather",
      			position: "top_right",
      			header: "my header",
      			config: {
      				location: "my village",
      //				locationID: "numbers",  //ID from http://bulk.openweathermap.org/sample/; unzip the gz file and find your city
      				appid: "wholelottanumbers",
      				appendLocationNameToHeader: false,
      				degreeLabel: true,
      				useBeaufort: false,
      				useKMPHwind: true,
      				showHumidity: true
      			}
      		},
      

      Hope this helps.

      posted in Troubleshooting
      S
      scumbelly
    • RE: es language to uppercase

      @lavolp3,

      Hi,

      I went through moment.js looking at ways to capitalize ‘domingo’ etc. I could create a function with ‘var str =’ and ‘var res =’, or do a moment.locale (“es”) define a var for months and days with uppercase and do a moment.UpdateLocale but all involving modifying the .js file.

      There was a solution editing the /MagicMirror/vendor/node_modules/moment/min/moment-with-locales.js which would change every module.

      However, this morning I tripped over just adding text-transform: capitalize to the .css for the module. I updated .clock and calendar_monthly. It worked. It’s simple and no messing with moment.locale and the .js

      I learned some things poking around in moment.js but the .css solution was way easier.

      Thank you for your insight and suggestions.

      Cheers!

      posted in Troubleshooting
      S
      scumbelly
    • RE: es language to uppercase

      I went through the locales.js and everything was lowercase.

      https://momentjs.com/downloads/moment-with-locales.js

      The only thing that I can think of doing was setting the config.js back to en.json and in the clock/calendar.js create a translation string and put that into es.json and leave the month starting on Domingo and not Lunes (like in the English en.json ). It’s confusing anyway to look at the english calendar with the week starting on Sunday and then you look at the Spanish calendar and it starts on Monday and visually things are off by one.

      Cheers

      posted in Troubleshooting
      S
      scumbelly
    • RE: Calendar - Change DateFormat to DD MM YYY

      Hi,

      The default in the .js is dateFormat: “MMM Do”, for fun have you tried “Do MMM”?

      Cheers.

      posted in Troubleshooting
      S
      scumbelly
    • es language to uppercase

      Hi.

      I was wondering if anyone has ever tried to change the OpenWeather es language data from lower case to upper case? The clock/calendar modules for example display marzo instead of Marzo, days are in lower case, etc. She who must be obeyed was “commenting” on it. Is it possible to translate the es lowercase data to uppercase in translations es.json? I didn’t think I could because I thought the translated spanish data, plus calendar month starting on Domingo (oops - dom.), was data supplied from the OpenWeather app. It sure would be easier to do the translation in en.json. I did try “marzo”: “Marzo”, in the es.json file to no success. The month/day format is" MMM Do" in the .js so is it possible to do something weird with moment?

      Wheee!

      Thanks.

      posted in Troubleshooting
      S
      scumbelly
    • RE: Header missing for Current weather (MMM_OpenMapWeather)

      @Nneuland ,

      Sorry, my example was not explained properly. It was basically how not to put the Location/LocationID name in the header. In my example you would just edit the header to say header: “Weather Forecast for New York”, or in your case just “New York, USA”. With the appendLocationNameToHeader: false, I put this in to stop the the appid city ID being populated as my location because it wasn’t my village name but a nearby city. So in your instance, if I remember correctly, your don’t need header: it should be fine with appendLocationNameToHeader: true,

      The default config for openmapweather

      modules: [
      {
      module: “MMM-OpenmapWeather”,
      position: “top_left”, // This can be any of the regions.
      // Best results in left or right regions.
      config: {
      // See ‘Configuration options’ for more information.
      location: “Phoenix,USA”,
      locationID: “”, //Location ID from http://openweathermap.org/help/city_list.txt
      appid: “abcde12345abcde12345abcde12345ab”, //openweathermap.org API key
      colorIcon: true
      }
      }
      ]

      should just be location:“New York”,
      locationID: “5128581”,
      appid: “xxxxxxxxxxx”,

      If you want the USA, location “New York, USA” that might work. It may not like the USA part because it might conflict with the returned locationID of just New York - I can’t remember. If you want USA you’ll have to create the header “New York, USA” using my example. I hope your config.js file has a comma at the end of your appid".

      Cheers, hope this helps.

      posted in Troubleshooting
      S
      scumbelly
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 4 / 6