@sdetweil said in Module to display information from a text file on a locally shared folder:
@TomBrown see the ln command for link
the compliments file MUST be in the compliments folder or subfolder. it cannot just be anywhere
the module config entry is
remoteFile: 'my_comp.json',
so, you could make a link like this
ln -s my_comp.json /mount_location/path/filename.xxx
that means make a file entry in the current folder called my_comp.json
and map it to the mounted file filename.xxx
i use this approach for linking pictures from my file server to be shown by the MMM-ImagesPhotos module
I have not tried any of this yet (have not had the time yet) but trying to make sure I understand.
If I created the word list file called “wordlist.txt”, saved that file to a share of “\server\share\wordlist.txt”.
I would create a file named “my_comp.json” in the compliments folder.
Then link it to the text file with
ln -s my_comp.json /server/share/wordlist.txt
And the wordlist.txt would look something like this.
{
"anytime" : [
"Band",
"Firetruck",
"Movie",
],
"morning" : [
"Good morning, sunshine!",
],
"afternoon" : [
"Hitting your stride!",
],
"evening" : [
"See you tomorrow!",
],
}
Or would it be easier all around to just set the “remotefile:” and save it locally on the pi. I will be connecting to the pi over vnc.