Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No image loading unless - clearCacheOnStart: false #29

Closed
Moerup opened this issue Jan 11, 2021 · 5 comments
Closed

No image loading unless - clearCacheOnStart: false #29

Moerup opened this issue Jan 11, 2021 · 5 comments
Labels
bug Something isn't working

Comments

@Moerup
Copy link

Moerup commented Jan 11, 2021

Describe the bug
No image will load for me if the clearCacheOnStart is set to true.
If I set it to false, it loads correctly
No errors in log or dev tools.

var config = {
    address: "localhost",
    port: 8080,
    basePath: "/",
    ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"],

    useHttps: false,
    httpsPrivateKey: "",
    httpsCertificate: "",

    language: "en",
    logLevel: ["INFO", "LOG", "WARN", "ERROR", "DEBUG"],
    timeFormat: 24,
    units: "metric",

    modules: [{
            module: "WallberryTheme",
            position: "fullscreen_below",
            config: {
                unsplashAccessKey: "XXX",
                collections: "45585351",
                clearCacheOnStart: false,
            }
        }, {
            module: "WallberryTheme/WB-clock",
            position: "top_bar",
            config: {}
        }, {
            module: "WallberryTheme/WB-weather",
            position: "bottom_bar",
            config: {
                apiKey: "XXX",
                providerName: "openweathermap",
                latitude: 55.7974140,
                longitude: 9.694617
            }
        }, {
            module: "calendar",
            position: "top_right",
            disabled: true,
            config: {
                maximumEntries: 10000,
                colored: true,
                coloredSymbolOnly: false,
                calendars: [{
                        url: 'XXX',
                        color: '#263261',
                    },
                ],
            }
        }, {
            module: "MMM-MonthlyCalendar",
            position: "bottom_bar",
            config: {
                mode: "nextFourWeeks",
            }
        },
    ]
};

/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== "undefined") {
    module.exports = config;
}

Brand new setup of Magic Mirror on a Pi 4 2GB
Let me know if you need anything else!
Based on one of the other issues #8 I think it would be better to clear the cache, but atm it only works if that's disabled.

@scuppasteve
Copy link

Describe the bug
No image will load for me if the clearCacheOnStart is set to true.
If I set it to false, it loads correctly
No errors in log or dev tools.

I just installed on a RPi4 4gb and had the exact same issue, except i didnt have clear cache in at all, this actually fixed it for me. Thanks for the help. But i agree i would think you would want it to clear.

@delightedCrow delightedCrow added the bug Something isn't working label Jan 12, 2021
@delightedCrow
Copy link
Owner

This is an excellent report, thank you. I ordered a Rpi4 not too long ago so I will investigate this soon :)

@Moerup
Copy link
Author

Moerup commented Jan 12, 2021

Sounds good, thanks a bunch for all the effort you have put into this.
Really enjoying the look of it, it's soon going up on the wall!

delightedCrow added a commit that referenced this issue Jan 15, 2021
Fixes the issue of Wallberry not loading background images on start up due to a failure to clear the Electron Cache
@Moerup
Copy link
Author

Moerup commented Jan 19, 2021

I just updated the module on my pi with the 2 latest commits you did (fast help!) and the background wouldn't show with clearCacheOnStart: false, after I set it to true it showed up immediately.
Seems like you fixed it 👍

@delightedCrow
Copy link
Owner

Awesome, thanks for the confirmation and for your help submitting the reports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants