SaltyRiver / MMM-SimpleText

Simple and plain text module for the MagicMirror project
MIT License
7 stars 3 forks source link

Feature request - Read from file #1

Closed testbughub closed 3 years ago

testbughub commented 4 years ago

As well as an option for time to re-read it. I think this would make this module 10x better. For example, instead of relying on other modules for values gathered from a temperature sensor, just read it from a file.

EDIT: Just noticed after doing a fork that it already has a function to refresh, so you could just add it as an option.

SaltyRiver commented 4 years ago

Could be a handy feature yea. I am currently not really invested in the MagicMirror project, if I have some time in the future I will look into this. Feel free to commit changes though.

testbughub commented 4 years ago

I've never really played around with javascript/node, so I'm pretty much shooting in the dark right now trying to add it myself :P

thefoster commented 3 years ago

I'm surprised that this doesn't exist yet, it should be one of the simpler modules to create. I'm definitely interested, too.

SaltyRiver commented 3 years ago

I will look further into implemented this within the next few days. Gonna update this issue once that's done

testbughub commented 3 years ago

Nice! Thanks!

thefoster commented 3 years ago

Yes, thanks for that effort! I'm gonna use that for displaying custom fortune cookies (phrases), which a cron job writes to a file every day (fortune -a custom.dat.o >file), the existing MMM-Fortunes module doesn't work here and has a different scope/look either.

SaltyRiver commented 3 years ago

I have added the functionality to read the content from text files, aswell as to refresh the module every given amount of milliseconds. Make sure to read through the entire updated .readme. If you have further wishes for this module feel free to ask!

testbughub commented 3 years ago

Glorious! This will definitely be one of my most used plugins! Thank you for taking the time to implement this :)

thefoster commented 3 years ago

Great, thank you!