Read the statement by Michael Teeuw here.
Clock format
-
@sdetweil I just did a ctrl a then copy and pasted
-
NEVER change the CODE
in config.js
{ module: "clock", position: "top_left" },whatever u need to configure goes inside a config:{} section,…
if not there, add one
{ module: "clock", position: "top_left", config: { .... whatever } }, -
@sdetweil I didn’t think I did change anything.
-
@louise after the paste
select the text in the message, and the push the </> button above the editor

-
@sdetweil OH, that’s what you meant by block.
But as far as changing anything in the code I didn’t, except the 12 and imperial -
deleted sam -
@louise said in Clock format:
anything in the code I didn’t, except the 12 and imperial
then u changed something
NEVER edit the source files… ALL changes go thru config.js
the design is that things u specify in config.js override thing in the source code… so you NEVER have to touch the source file.
if you DON’T specify something, then the module default setting will be used…
(each module should document what that is… ) -
@louise again you are pasting the source code… and missed a step,
after the paste into the message here, SELECT the text AGAIN, and then push the code button
we want to see what settings are in config.js for clock, not clock.js
-
aaaaa
-
@louise I forgot to take out private stuff again
-
@louise nope, still don’t want to see the code
edit your ~/MagicMirror/config/config.js
find the section that says
module:"clock"and copy from the line above that is
{to the macthing line below
that is}and paste THAT, and then select it all (ctrl a)
and then it the buttonplease read the two topics below in my signature…
-
@sdetweil This?
{ module: "clock", position: "top_left" },```code_text
module: "clock", position: "top_left" },``` code_text -
@louise hmm… still not sure what the problem is
select/copy from config.js
replay to message here
paste text
ctrl-a (select all)
(it will have my userid in the select of the reply )
press code block buttonI just did this and got
@louise { module: "clock", position: "top_left" }, -
@sdetweil Would it be easier if I just started over?
-
@louise said in Clock format:
Would it be easier if I just started over?
with what? ignore what is above
-
@sdetweil Just a new install of Magic Mirror, rename this as MagicMirror1 and do a new install.
-
@louise no… u havent hurt anything… we can get back the changed files easy
the design makes it so we can change the code whenever we need to (we own it) and your implementation is not impacted, and you also aren’t blocked from getting the quarterly updates (next one coming Jan 1) …
if you think it would be easier for you, then sure ,rename the folder, use my script to install again
and then migrate your source file changes to config.jsbut u can migrate the changes now, no harm …
-
deleted
-
@louise said in Clock format:
{
module: “clock”,
position: “top_left”
},still didnt’ get the select all
and this is the only part we needed
{ module: “clock”, position: “top_left” },it has no config:{} section, so all the module defaults are used
to change some setting here do
{ module: “clock”, position: “top_left”, // <- add a comma (more stuff follows this line) config : { timeFormat:24, } },in the setting above clock will use 24 hour format, even if the base is set to 12 hour format
-
@sdetweil Given a choice I would rather just have this figured out. Did I do right this time?
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