@MMRIZE I am stumped. The changes to the color happened, but the resizing still not responding.
Read the statement by Michael Teeuw here.
Posts made by Rags
-
RE: Resizing font size of modules
-
RE: Resizing font size of modules
@MMRIZE It is still placed there ( /home/pi/MagicMirror/css/custom.css) , and configured with font-size:60px. I only copied that file into newsfeed module folder since the font size was not increasing, and thought to just try if it works by placing it into the newsfeed module folder.
-
RE: Resizing font size of modules
@sdetweil I have made changes to both custom.css file and newsfeed.css file. I also copied the custom.css file into newsfeed module folder. Nothing seems to work.
css/custom.css configuration;
.MMM-pihole-stats {
color: #fff; /* change the font color */
}.MMM-pihole-stats .dimmed {
color: #aaa; /* change the color of dimmed elements */
}.MMM-pihole-stats .bright {
color: #ff0; /* change the color of bright elements */
}
.MMM-pihole-stats .small.bright {
color: red;
}
.MMM-pihole-stats {
font-size: 60px;
}**.newsfeed {
font-size:70px;
margin-bottom: 0.5em;
}**newsfeed.css configuration;
iframe.newsfeed-fullarticle {
width: 100vw;
/* very large height value to allow scrolling */
height: 3000px;
top: 0;
left: 0;
border: none;
z-index: 1;
}.region.bottom.bar.newsfeed-fullarticle {
bottom: inherit;
top: -90px;
}.newsfeed-list {
list-style: none;
}.newsfeed-list li {
text-align: justify;
font-size:70px;
margin-bottom: 0.5em;
}Need further help please.
-
RE: Resizing font size of modules
@sdetweil I inspected the developer page for newsfeed and it indicates that the font size configuration is being picked up from main.css. So changing the font size here is messing up all the sizes and consequently all the MM modules. How to resize only for the font size of newsfeed. How to make the custom.css priority or the newsfeed.css as the priority.
-
Resizing font size of modules
Ok, so i have searched in the forum to find out how to do this. There is some information but confusing. I recently upgraded my monitor from 18 inch to a 27 inch monitor. I also changed the orientation to portrait. I had to reposition some modules for aesthetics. Some module fonts are too small to be clearly visible from a distance. For eg i am trying to increase the font size of the default module newsfeed. The forum answers are confusing (at least for me). SO there is a custom.css file in CSS folder in MM directory. The (CSS/custom.css) . Is the values to be defined here in this folder? Or in the modules folder .css file. There is a newsfeed.css file in newsfeed module folder. I added the configuration for size but nothing is happening.
I also tried to change the display size (cntrl+shift+ +), but the display of modules increases disproportionately.
So need help here.
Thanks. -
RE: ChatGpt developed Module MMM-Dockerstat
@karsten13 said in ChatGpt developed Module MMM-Dockerstat:
missed the
-a
❯ docker ps -a --format "{{.Names}} {{.State}}" magicmirror running watchtower running traefik running
Great !
Yes the command is working now but locally on the docker machine only. It needs to work from the first machine after ssh ing into docker machine.
ssh
.exec (‘docker ps -a --format “{{.Names}} {{.State}}”’)
.on(‘error’, (err) => {
console.error(Error: ${err}
);
this.status = ‘Error’;
this.sendSocketNotification(‘STATUS_UPDATE’, { status: this.status, icon: this.offlineIcon });
}) -
RE: ChatGpt developed Module MMM-Dockerstat
@karsten13 said in ChatGpt developed Module MMM-Dockerstat:
docker ps --format "{{.Names}} {{.State}}
should this command produce an output when run directly on the docker machine? I am not getting any output.!
Docker ps -a gives this output listing all containers whether up or exited. I need to just pickup name and status
Now just need to workout (as Sam says ‘the fun part’) ssh into second pi retrieve the docker ps -a and display. -
RE: ChatGpt developed Module MMM-Dockerstat
@sdetweil said in ChatGpt developed Module MMM-Dockerstat:
@Rags but are you running this on the docker host? outside any container?
if u run this from INSIDE the container (where MM is running) , does it work?
as I recall, it does not.
I think the command (on the host) is
Usage: docker exec [OPTIONS] CONTAINER COMMAND [ARG...]
docker exec container_id “docker -ps … rest of parms”
but you will have to use docker command to get the container_id from the name to use in the exec
long time ago, 9 years now, I wrote a whole bunch of scripts to support using docker to deploy and manage a software api testing service…
Sorry if i have not been clear. My MagicMirror is in the living room. The MM is running on the first pi( standalone ) not in any container. The second pi in my network is tucked away in my study. This machine is installed with Docker containing multiple containers, which include pihole, wireguard, nginx, apache etc. Occasionally, one or two containers would quit running and I would realise quite late that a particular service is down. That’s why i was trying to build this module so that the status of all containers are known in a jiffy on the MM display.
So when the MM docker module probes the second pi it should just ssh into it and retrieve the docker status easily, format the info in an array and display it. Simple (apparently ). -
RE: ChatGpt developed Module MMM-Dockerstat
@mumblebaj said in ChatGpt developed Module MMM-Dockerstat:
@Rags The output from the query does not return a Status of “Online”
See below what it returns.
Yes you are right even i got a similar output when the command was run on the second pi directly. So at least we are getting somewhere. Good news.
sudo docker ps -f name=wireguard --format “{{.Names}} {{.Status}}”
wireguard Up 36 hours.
so now i have to figure out a command line to get status of all containers in a table form with name of container and the uptime. -
RE: ChatGpt developed Module MMM-Dockerstat
@sdetweil said in ChatGpt developed Module MMM-Dockerstat:
@mumblebaj can u see the container names from inside a container?
‘Docker ps’ command list all the containers that are currently running. So i guess the command will execute and should be able to confirm the status with the command
" ‘.exec(sudo docker ps -f name=${payload.container} --format "{{.Names}} {{.Status}}"
)’"This command uses the Docker CLI (Command Line Interface) to list the running Docker containers on a host, filtering the results by the name of the container specified in payload.container. The --format option specifies how to format the output of the docker ps command. In this case, {{.Names}} {{.Status}} is used to output only the names and statuses of the containers that match the specified filter. The output is then captured and processed by the SSH library used in the code.
anyways " work in progress ".