@sdetweil Thank you for your help.
Read the statement by Michael Teeuw here.
Posts made by WallysWellies
-
RE: MMM-Pages - possible to change module config?
-
RE: MMM-Pages - possible to change module config?
@sdetweil Basically, using MMM-Pages I will have 2 pages:
- Page 1 - show only MMM-Wallpaper.
- Page 2 - show MMM-Wallpaper, and everything else (calendar, clock, weather, mealie, Spotify…).
MMM-Wallpaper is set to position “fullscreen_below” so I have configured it to dim the images so I can read the text of the other modules using it’s normal config:
filter: "grayscale(0.0) brightness(0.2)"
On page 1, where there will be no other modules overlayed, I would like to reset this config and have the images at normal (full) brightness.
I’m just looking for some ideas on how to achieve this with the least amount of fuss.
The idea situation would be, MMM-Wallpaper page 1 config:
filter: "grayscale(0.0) brightness(1.0)"
MMM-Wallpaper page 2 config:
filter: "grayscale(0.0) brightness(0.2)"
-
MMM-Pages - possible to change module config?
Hello all. I recently setup MMM-Pages and essentially am looking for setup where one page is a digital photo frame, and the other has all my dashboard content. For the wallpaper I use MMM-Wallpaper.
Both pages have the background image set but in order to increase contrast for the text I dim the images with this line in the config:
filter: "grayscale(0.0) brightness(0.2)"
I would like to disable that line (or adjust it) so the background is more vibrant on the page without the dashboard text.
My first thought would be to duplicate the module and simply switch between them when the page changes but I wonder if anyone can see a better way? I do see that the wallpaper module can accept a notification called UPDATE_WALLPAPER_CONFIG which may be of some help. Not sure how I could use that though.
-
RE: MMM-MealieMenu Fetch Error
@zanix Restarting the MM service fixed the issue with no additional steps so it may well be an expiring token or something.
I have updated the Mealie container so I am now on v1.7.0 and switched to using the API key for auth. I have also checked and I am using the current version of your module, v1.5.0.
I’ll report back if anything interesting happens. Thanks again for your advice.
-
RE: MMM-MealieMenu Fetch Error
@sdetweil Mealie is the first time I’ve used docker so it’s totally manual. I’ve never tried to update it - it was setup within the last couple of months.
I was planning to do the update based on the Mealie docs but I could look into watchtower.
-
RE: MMM-MealieMenu Fetch Error
- I have found the part of Mealie that allows creation of an API key so I could switch to that method for authentication.
- I also see I am a couple of versions behind the Mealie master branch (I use version 1.5.1 - current version is 1.7.0). That looks drastic but it’s only 2 releases behind.
I don’t think either of these things are causing my issue necessarily but it’s a couple of things I can change soon.
-
RE: MMM-MealieMenu Fetch Error
@zanix The mealie module has been in an error since yesterday and I wonder if you might be able to help me troubleshoot?
I have run the following command:
tail -100 .pm2/logs/mm-error.log
And at the end I see the following:
[2024-05-31 16:47:51.577] [ERROR] [MMM-MealieMenu] Fetch error: "Unauthorized" [2024-05-31 17:47:51.580] [ERROR] [MMM-MealieMenu] Fetch error: "Unauthorized" [2024-05-31 18:47:51.581] [ERROR] [MMM-MealieMenu] Fetch error: "Unauthorized" [2024-05-31 19:47:51.590] [ERROR] [MMM-MealieMenu] Fetch error: "Unauthorized" [2024-05-31 20:47:51.571] [ERROR] [MMM-MealieMenu] Fetch error: "Unauthorized" [2024-05-31 21:47:51.575] [ERROR] [MMM-MealieMenu] Fetch error: "Unauthorized" [2024-05-31 22:47:51.582] [ERROR] [MMM-MealieMenu] Fetch error: "Unauthorized" [2024-05-31 23:47:51.574] [ERROR] [MMM-MealieMenu] Fetch error: "Unauthorized" [2024-06-01 00:47:51.604] [ERROR] [MMM-MealieMenu] Fetch error: "Unauthorized" [2024-06-01 01:47:51.601] [ERROR] [MMM-MealieMenu] Fetch error: "Unauthorized" [2024-06-01 02:47:51.576] [ERROR] [MMM-MealieMenu] Fetch error: "Unauthorized" [2024-06-01 03:47:51.576] [ERROR] [MMM-MealieMenu] Fetch error: "Unauthorized" [2024-06-01 04:47:51.577] [ERROR] [MMM-MealieMenu] Fetch error: "Unauthorized" [2024-06-01 05:47:51.575] [ERROR] [MMM-MealieMenu] Fetch error: "Unauthorized" [2024-06-01 06:47:51.580] [ERROR] [MMM-MealieMenu] Fetch error: "Unauthorized" [2024-06-01 07:47:51.571] [ERROR] [MMM-MealieMenu] Fetch error: "Unauthorized" [2024-06-01 08:47:51.577] [ERROR] [MMM-MealieMenu] Fetch error: "Unauthorized" [2024-06-01 09:47:51.572] [ERROR] [MMM-MealieMenu] Fetch error: "Unauthorized" [2024-06-01 10:47:51.577] [ERROR] [MMM-MealieMenu] Fetch error: "Unauthorized" [2024-06-01 11:47:51.576] [ERROR] [MMM-MealieMenu] Fetch error: "Unauthorized" [2024-06-01 12:47:51.568] [ERROR] [MMM-MealieMenu] Fetch error: "Unauthorized" [2024-06-01 13:47:51.580] [ERROR] [MMM-MealieMenu] Fetch error: "Unauthorized"
I have confirmed that the correct username / password is in my config.js file (and it has worked previously) - I can login via my laptop using http://raspberrypi:9925/ using these credentials.
The config.js file is using the following line for the connection:
host: "http://localhost:9925"
I use browser / terminal / SSH etc. to access the Pi but if necessary I can connect a keyboard / mouse if that would aid in narrowing down the issue.
Do you have any thoughts? I can probably just restart the mirror service but I haven’t yet in case that deletes any valuable information. Any advice would be appreciated.
-
RE: MMM-MealieMenu Fetch Error
@zanix Thanks for your input :)
I made the change after posting and it certainly doesn’t break anything but I have been playing with some other modules too so have restarted the software several times meaning I haven’t given it a chance to error but based on my understanding it probably shouldn’t anymore. I don’t know why it was in the first place though - the Mealie container is on the Pi so it’s using localhost to retrieve data. Who knows.
I did make one other change because I wanted to see the next week of meals, rather than the remaining meals this week. So I changed this line:
const startOfWeek = this.getFirstDayOfWeek(config.weekStartsOnMonday);
to this:
const startOfWeek = moment();
It’s pretty crude but if you’re taking suggestions it might be nice to have the option to show x number of days in the future rather than until the end of the week. I don’t believe that’s currently possible natively?
Thanks for the module though, it’s great!
-
RE: MMM-MealieMenu Fetch Error
@sdetweil Done!
I shall try and remember to report back if it seems to have worked - if I do not then we can assume I am a happy customer.
Cheers for your time.