Hello everybody!
I am running a Tiddlywiki via node.js on my Raspberry Pi. This works wonderfully. Now I have some telemetry data from my network, periodically updated in a text file. It would be great, if I could show the current text content of this file in a tiddler in my wiki.
What is the best (and easiest) way to do this?
What I have tried so far:
1. I guessworked with the import and load commands of tiddlywiki on node.js. This works in principle, but to show the imported tiddlers, I had to stop and restart the tiddlywiki server after every import or load. Otherwise the new tiddlers were not shown in the refreshed browser page. Is there a way to avoid a restart of the node process?
2. I tried to use the HTML embed command in a tiddler like this:
<div style="height:60px;background-color:beige;">
<embed type="text/plain" src="data.txt">
</div>
But I did not get it working, neither with an absolute file path, nor with a relative file path. To be sure I copied the text file to the higher-level folder, to the 'mywiki' folder and to the 'tiddlers' folder. The file rights are checked and okay. No success.
Is access to local files with tiddlywiki on node.js even possible? How does it have to be formatted?
Thank you for helping me out.
Oliver