Read the statement by Michael Teeuw here.
custom.css ......body???
-
@piki sorry, don’t understand the question
put your file in ~/MagicMirror
then your css url will be
http://localhost:mm_config_port (usually 8080)/filename(whatever the name of the file is in the MagicMirror folder)http://localhost:8080/somefile.jpg
or whatever you call itif you don’t want to copy it then
cd ~/MagicMirror
sudo ln -s /wherever_the_actual_file_is somefile.jpgthat will create a link for the file (from the booted sd card) to the MagicMirror folder
as somefile.jpgyou can name it whatever you want with whatever type it is: gif, png, jpg…
-
sku.jpg (its my file) and is found in MagicMirror/sku.jpg
-
-
and should I enter that in custom .css?
body {
background-image : url(‘http://localhost:8080/sku.jpg.’);
background-size: cover; -
@piki yes,
you should be able to use the developers window to add that to test outselect the body element and add in top right
-
I copied it directly into custom .css…but it still doesn’t work
-
@piki can you show the custom.css entry
-
body {
background-image : uurl(‘http://localhost:8080/sku.jpg.’);
background-size: cover;}
-
-
I fixed it, but the image still doesn’t appear
body {
background-image : url(‘http://localhost:8080/sku.jpg.’);
background-size: cover;}
-
@piki and if you open the developers window, elements tab , select the body element
is the css selected
and are there any errors? (in the console tab) -
@piki said in custom.css ......body???:
/sku.jpg.');
you also have a trailing . in the image name, ‘jpg.’
-
Failed to load resource: the server responded with a status of 404 (Not found) sku.jpg.:1
-
@piki still the trailing comma
but, I tested here, needs to be in a subfolder of MagicMirror, config worked -
yes, I also have the ending “.jpg” in the image name
-
@piki no… your copy of custom.css said
body {
background-image : uurl(‘http://localhost:8080/sku.jpg. <<<<<<<<<—’);
background-size: cover;}
see the dot AFTER .jpg
also, you need to move the image to some subfolder
this worked for me(random jpg)
body { background-image : url('http://localhost:8090/config/scan-uuid.jpg'); background-size: cover; } -
I put the sku.jpg file in the config directory…and it works…thank you very much
one more question, how do I change the color of the clock and weather module to black?
-
@piki said in custom.css ......body???:
one more question, how do I change the color of the clock and weather module to black?
you will have to change/override the CSS for those…
in each module folder is the defined css (don’t change there, override in custom.cssif not there(same for every module), then examine the elements in the developers window elements tab
-
great, and if I want “Bolt” bold text instead of thin?
-
@piki see main.css for the defined colors and styles
if nothing there that works for you, then you have to define your own (in custom.css)
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