Skip to content

prepend fullImagePath with nextcloud path - #7

Merged
skuethe merged 1 commit into
skuethe:masterfrom
The0frastus:the0frastus/fix-image-path
Feb 20, 2022
Merged

skuethe merged 1 commit into
skuethe:masterfrom
The0frastus:the0frastus/fix-image-path

Conversation

@The0frastus

@The0frastus The0frastus commented Feb 20, 2022

Copy link
Copy Markdown

Problem I stumbled upon:

I had troubles getting MMM-RandomPhtoto to work with my Nextcloud share.
In the logs, I read the message "Invalid URL", and no matter what kind of WebDAV URL I used, it didn't work.

I took a look at the code, and found this:

Solution in this PR:

node_helper calls the http get with the fullImagePath, which, at this point, consists of only the fileName and extension.
I prepended the configured nextcloud Path, and with this change, I finally had images appearing on my Magic Mirror!

Thanks for this cool module!

@skuethe

skuethe commented Feb 20, 2022

Copy link
Copy Markdown
Owner

That problem was introduced in the last PR. Thank you for catching that and opening up the PR!

@skuethe
skuethe merged commit 23fa73c into skuethe:master Feb 20, 2022
@skuethe skuethe added bug Something isn't working good first issue Good for newcomers labels Feb 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working good first issue Good for newcomers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants