How strip html cache, a solution

Asked by riny

On 2014-06-24 I asked how to strip the html file in the cache, see Question 250685 https://answers.launchpad.net/xibo/+question/250685

I needed this because I work for Bartimeus. Bartimeus is for a Dutch organisation who provides care, support, education and training for partially sighted or blind people.

We use Xibo to inform visitors and employers. Some of them are also cliënts of us.

I found a solution. The solution works only on the Linux based cliënts.

What did I do. In a script I did:
1. Remove the first 91 lines of the cache-HTML-file and the last 58 lines. These are used by Xibo (I think) but can't be read by some text-browsers.
2. Remove the most of HTML with the command nohtml
3 Remove some leftover rubbish
4 Make sure that the name Bartimeus is spelled good.
5 Place a dollarsign (normally not used in the Netherlands) after the first message (needed for layouts with a RRS feed)
6 remove all text after the dollarsign

this makes a clean textfile wich can be read out loud.

Needed pakkets:
rpl, emboss

Riny Feller
Projectmedewerker Bartimeus
http://www.bartimeus.nl/english_index

Question information

Language:
English Edit question
Status:
Solved
For:
Xibo Edit question
Assignee:
No assignee Edit question
Solved by:
riny
Solved:
Last query:
Last reply:
Revision history for this message
riny (rinyfeller) said :
#1

The scripts are in a zipfile:
http://www.rinyfeller.nl/jdownloads/xibo/speak-xibo.zip

I can't find a way to attach the files in this question/remark in launchpad.

Revision history for this message
Dan Garner (dangarner) said :
#2

Hi,

I think it would be better to develop a module for this to fit inside instead of stripping out the content designed for the ticker module.

Facts are that the ticker module will be subject to change and those changes won't be able to take your use case into account.

In 1.7.0-alpha we are making it much easier to develop your own module for Xibo and get that HTML file saved on the client - where you have control over what is in the file.

I hope that would be helpful to you in this case.

Thanks,
Dan