Read the statement by Michael Teeuw here.
Trouble changing to 12 hour time and to Fahrenheit.
-
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. -
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). -
@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;}´ -
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.
-
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!
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