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.

    Trouble changing to 12 hour time and to Fahrenheit.

    Scheduled Pinned Locked Moved Troubleshooting
    troubleshootfahrenheitcelcius12 hour24 hour
    5 Posts 2 Posters 11.0k Views 2 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.
    • B Offline
      bez252
      last edited by

      Hi, I am having a huge problem getting the time in the default clock module to change to 12 hour time, and the same problem with setting both the current weather and the weather forecast modules to Fahrenheit.

      I tried using the information here: https://github.com/MichMich/MagicMirror/wiki/MagicMirror²-Modules
      But it either causes the module to fail or makes no change.
      Any help is appreciated.

      yawnsY 1 Reply Last reply Reply Quote 0
      • yawnsY Offline
        yawns Moderator @bez252
        last edited by

        @bez252

        language: 'en',
        timeFormat: 12,
        units: 'imperial',
        

        If you edit your config file and change the three lines at the top to look like this then you should be good. CurrentWeather and Clock by default use the settings in your config file.
        Otherwise please post your config.js completely. Please enclose the content with back ticks `(this one).

        B 1 Reply Last reply Reply Quote 0
        • B Offline
          bez252 @yawns
          last edited by

          @yawns
          ´/* Magic Mirror Config
          *

          • By Michael Teeuw http://michaelteeuw.nl
          • MIT Licensed.
            */

          var config = {
          port: 8080,

          language: 'en',
          timeFormat: 12,
          units: 'imperial',
          
          modules: [
          	{
          		module: 'alert',
          	},
          	{
          		module: 'clock',
          		position: 'top_left'
          	},
          	{
          		module: 'calendar',
          		header: 'US Holidays',
          		position: 'top_left',
          		config: {
          			calendars: [
          				{
          					symbol: 'calendar-check-o ',
          					url: 'webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics'
          				}
          			]
          		}
          	},
          	{
          		module: 'compliments',
          		position: 'lower_third'
          	},
          	{
          		module: 'currentweather',
          		position: 'top_right',
          		config: {
          			location: 'Charlottesville',
          			locationID: '',  //ID from http://www.openweathermap.org
          			appid: '1a42661953c78c36f761da67f2d94fef'
          		}
          	},
          	{
          		module: 'weatherforecast',
          		position: 'top_right',
          		header: 'Weather Forecast',
          		config: {
                      location: 'Charlottesville',
          			locationID: '5128581',  //ID from http://www.openweathermap.org
                      appid: '1a42661953c78c36f761da67f2d94fef'
          		}
          	},
          	{
          		module: 'newsfeed',
          		position: 'bottom_bar',
          		config: {
          			feeds: [
          				{
          					title: "New York Times",
          					url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml"
          				}
          			],
          			showSourceTitle: true,
          			showPublishDate: true
          		}
          	},
          ]
          

          };

          /*************** DO NOT EDIT THE LINE BELOW ***************/
          if (typeof module !== ‘undefined’) {module.exports = config;}´

          1 Reply Last reply Reply Quote 0
          • yawnsY Offline
            yawns Moderator
            last edited by

            Looks fine to me except for the last line. The ’ ’ around undefined are not the right ones. But that could be a copy and paste problem. I don’t have a computer with MagicMirror currently, so I can’t test your config file right now.

            B 1 Reply Last reply Reply Quote 0
            • B Offline
              bez252 @yawns
              last edited by

              @yawns

              I actually managed to figure it out. The problem was in the configs for the individual modules. They were set for ´config.js´ instead of ´config.units´ and ´congif.timeFormat´. Once I changed those it worked out.

              Thanks for the help though!

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • 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