Read the statement by Michael Teeuw here.
No numbers in analog watch face
-
First: what script did you modified?
As I wrote before, you need to update this css code in clock_styles.css in modules/default/clock folder
.clockCircle { margin: 0 auto; position: relative; border-radius: 50%; background-size: 100%; background: transparent url("faces/face-005.svg") center no-repeat; /* add this line */ }
or add in custom.css
.clockCircle { background: transparent url("../modules/default/clock/faces/face-005.svg") center no-repeat; }
your code is wrong, probably should look like this:
background: transparent (“/home/pi/MagicMirror/modules/default/clock/faces/face-005.svg”) center no-repeat;
Second: set in config face to none
config: { displayType: "analog", analogSize: "300px", analogFace: "none", /* set this line to none */ }
Third: did you download the old faces? Now there is a fix into the develop branch with valid svg faces, except face-006.svg
-
Fixed clock face-006
-
@hango Thanks Hango.
- I have updated the code (still not working presumably because of point 3 below)
- I don’t know where to download the old SVG faces - when I installed MM there was/is a folder full of SVG clock faces
- Please don’t laugh - I don’t know how to create/use a custom css folder - I plan to learn this soon! X
-
This post is deleted! -
@hango if one uses my installer script, I create the empty custom.css as part of the install.
-
This post is deleted! -
- Haha thanks guys - that worked!
Very good point in regard to ‘‘how you update the code if you don’t know to create custom.css?’’- I previouly edited the config.js, clock.js and clock_styles.css > I created a really pretty analog clock with the centre, second hand, minute and hour each with different colours.
- For some reason I thought that a custom.css was really technical but I easily created this from my terminal.
For what it’s worth, I’ve connected to a few APIs and have configued these in the main confg folder and the css’s.
Going forward I’m going to play with customising the default modules (well the ones which I haven’t hidden in the main config file) in the custom CSS.
Thanks again Xx
-
@Ice-cream do not edit the default files.
config in config.js and css in custom.css
-
@sdetweil said in No numbers in analog watch face:
@lavolp3 interesting, my script tries to minimize space used, so only downloads the master branch
to down develop dogit fetch origin develop:develop git checkout develop
I am probably doing something wrong.
I typed in “git fetch origin develop:develop” and then “git checkout develop” and got an error.
git checkout develop error: Your local changes to the following files would be overwritten by checkout: modules/default/clock/clock.js modules/default/weatherforecast/weatherforecast.js package-lock.json Please commit your changes or stash them before you switch branches. Aborting
-
@TomBrown do u remember why you edited the clock and weatherforecast files?