Displaying a local MHT file - is it possible?

Hi,

I found following post really helpful - Using Python to Automatically Update Xibo DataSets

It’s using Python to update datasets but I modified it, so it would converts PPTX to PDF and upload new version of PDF file to Xibo. I added my code as an attachment, I had to upload .py as .pdf because Xibo Community doesn’t allow .py files. I looked for code tag to copy-paste it, but couldn’t find it.

You’ll also need “settings.ini” file in the same folder for it to work (replace xxx with your own info). Contents of settings.ini:

[DEFAULT]

#Original PPTX file located on network share
orig_PPTX_file_path = xxx
#Copied PPTX file, located on local HDD
PPTX_file_path = xxx
#Converted PDF file
PDF_file_path = xxx
#Xibo address
Xibo_address = http://xx.xx.xx.xx
#Media name in Xibo, used for searching and replacing media (PDF)
Xibo_media_name = InfoTV PDF API updated
#The Client Credentials from a Xibo Application you create at Administration>Applications>Add
#Xibo client ID
Xibo_client_id = xxx
#Xibo secret
Xibo_secret = xxx

PPTX_to_PDF.pdf (135.6 KB)

1 Like