Read the statement by Michael Teeuw here.
Slideshow for PDFs question
-
@chrisfr1976 cool, should be possible to control in fullscreen w css.
in car, does this support url to pdf, or just local file?
(just local file) -
@sdetweil
Hi,
now also hosted PDF-files are supported. PDF with url have now the lead. The localpdfs/
folder is the fall-back if no URL is set or in case of any errors.But:
Most remote PDF is being blocked due to Cross-Origin Resource Sharing restrictions. The server hosting the PDF (https://www.w3.org/… etc.) is not allowing MagicMirror to access its resource. So the server-side PDF is downloaded locally and saved in a folder. Once the file exists locally, the download isn’t performed again. So if the server pdf is updated then the local download must be deleted.- If a URL-PDF (or one single PDF) should be displayed change
displayTime: 10000,
to a higher value (avoid flickering) - If a downloaded and local pdf should be displayed then copy or move the pdf from the
pdfURL
topdfs
folder and leave the URL in the config blank.
I think there are some optimizations in file handling possible and maybe a new PDF-URL can be sent with MMM-Remote module. But I won’t work on that any further. I will use the local folder in general (if I use the module at all - don’t know).
- If a URL-PDF (or one single PDF) should be displayed change
-
@chrisfr1976 have you looked at the cors server api we provide?
-
-
@chrisfr1976 not well documented and not 100%
http://mm_server:mm_port/cors?url=…,
sendheaders=…,
receiveheaders=…send/receive headers are headername:value,…
code in js/server_functions.js
for my readme support in mmm-config i had to fallback to curl/wget