Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    1. Home
    2. scumbelly
    MagicMirror² v2.15.0 is available! For more information about this release, check out this topic.
    S
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 21
    • Best 3
    • Groups 0

    scumbelly

    @scumbelly

    Retired old fart.

    3
    Reputation
    3
    Profile views
    21
    Posts
    0
    Followers
    0
    Following
    Joined Last Online
    Location Maitland, Ontario, Canada Age 66

    scumbelly Follow

    Best posts made by 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
    • 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: weather module just shows loading?

      O.K.

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

      posted in Troubleshooting
      S
      scumbelly

    Latest posts made by 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
    • RE: Header missing for Current weather (MMM_OpenMapWeather)

      Here’s my currentweather example …

      {
      module: “currentweather”,
      position: “top_right”,
      header: “blah blah City”,
      config: {
      location: “City”,
      // locationID: “XXXXXX”, //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
      }
      },

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

      @Nneuland ,

      Hi. Just a little confused as to which module but if you’re asking about OpenMapWeather by default in the .js file appendLocationNameToHeader: true, so in the config/config.js you can look at adding the location or locationID options.

      The location used for weather information.

      Example: ‘Phoenix,USA’
      Default value: false

      Note: When the location and locationID are both not set, the location will be based on the information provided by the calendar module. The first upcoming event with location data will be used.

      Location ID from OpenWeatherMap This will override anything you put in location.
      Leave blank if you want to use location.
      Example: 1234567
      Default value: false

      Note: When the location and locationID are both not set, the location will be based on the information provided by the calendar module. The first upcoming event with location data will be used.

      If you are asking about the currentweather module you can do the same or use the header option in the config.js file.

      I hope this is what you were looking for.

      Cheers.

      posted in Troubleshooting
      S
      scumbelly