@ufransa Ok, I don’t see anything in your config that would cause a problem. However, you do have both MMM-NewsAPI and MMM-calendarExt3 in the exact same position. I am thinking that MMM-CalendarExt3 may be pushing the module off the screen, they both cannot occupy the same space. Try using it in a different position and use the vertical option.
Read the statement by Michael Teeuw here.
Posts
-
RE: MMM-NewsAPI
-
RE: MMM-NewsAPI
@ufransa You will need to advise which other module you are using. I am assuming that the config you passing in may not be correct. When I run
domains: "bbc.co.uk"it worked fine for me without that extra config. Can you confirm which other module you are using so I can check if you have specified that config setting correct. -
RE: Contributing to a GitHub repository - a bit stuck
@evroom Just launch a terminal in VsCode

Make sure it is set to bash.

Then you can run the same commands
git addandgit commit -m "your commit text"andgit pushfrom the terminal. -
RE: MMM-NewsAPI
@sdetweil I am assuming he is using your fork of MMM-pages and was probably trying to do the below.
{ module:"MMM-NewsAPI", classes:"sport", }If I remember the README from your fork it calls for page1 page2 etc. I kinda remember carousel has the type of config he was trying to implement but a little different.
@ufransa can you confirm what you are trying to achieve or which module you using for page control?
-
RE: MMM-NewsAPI
Hi. What is the below config for?
@ufransa said in MMM-NewsAPI:pages: { “sport”: “bottom_bar” },
-
RE: Having trouble with screen on and off? Here are some tips that could help
@reviewsfornerds Hi. Apologies for the late reply. Was away for the weekend.
Can you share your script that you are calling? Also the output of
wlr-randr. -
Having trouble with screen on and off? Here are some tips that could help
Hey guys,
Just a little note for for those who are struggling.
I have recently upgraded from my RPi 3B+ to RPi 5 4GB. MM has been running fine for a while now and all my modules are running sweet.
One thing I have been struggling with was getting the Pi to shut off the output at night and then on again in the morning. The old way,
vcgencmd display_power 0andvcgencmd display_power 1does not work on the RPi5.In order to get things working again, and after a lot of research I have managed to get this working now. Below are 2 scripts that I have which are called from crontab at specified times.
You have to ensure that both of the below scripts are executeable. To do this you need to run the following command.
chmod +x mon.sh mof.shfrom the command prompt.mof.sh - Monitor Off.
Create a file:nano mof.shand add the below.#!/bin/bash export WAYLAND_DISPLAY=wayland-1 export XDG_RUNTIME_DIR=/run/user/1000 /usr/bin/wlr-randr --output HDMI-A-1 --offExplanation
- Declare a variable for WAYLAND_DISPLAY
- Declare a variable for XDG_RUNTIME_DISPLAY (I had an issue with this and only found recently that I needed to declare this as well in the script)
- Execute the wlr-randr command to turn off the display
mon.sh - Monitor On
Create a file:nano mon.shand add the below to it.#!/bin/bash export WAYLAND_DISPLAY=wayland-1 export XDG_RUNTIME_DIR=/run/user/1000 /usr/bin/wlr-randr --output HDMI-A-1 --on --mode 1920x1080@60Hz --transform 270Explanation
- Declare a variable for WAYLAND_DISPLAY
- Declare a variable for XDG_RUNTIME_DISPLAY (I had an issue with this and only found that I needed to declare this as well in the script)
- Execute the wlr-randr command to turn on the display
- lI have to supply options to this command as I needed to ensure that when the monitor is turned on, it has the same pixilation and rotation etc. This is achieved by passing
--mode 1929x1080@60Hzand to ensure it is flipped 90 degrees I pass the option--transform 270.
To obtain your current screen settings you run
wlr-randrfrom the command prompt and you will be shown the current settings for your mirror. You can then use those values and substitute them for the values above if yours is different. This will also confirm if your monitor isHDMI-A-1or if it is called something else.Crontab
To instantiate a crontab you docrontab -efrom the command line.
Add the following entries at the bottom of the file.00 06 * * * /home/pi/mon.sh >> /home/pi/mon.log 2>&1 00 21 * * * /home/pi/mof.sh >> /home/pi/mof.log 2>&1From the above, it will turn the output on at 6am and turn it off at 9pm.
Hope this helps somebody.