Hello Thread from the past!
There is now a module that I created that can do this:
https://github.com/MomentumV/MMM-RandomBibleVerse
It is largely based off of DailyBibleVerse, but you can configure an update interval in minutes. Minimum interval is 0.2 minutes (12 seconds).
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.
M
Posts made by Momentumv 0
-
RE: Change from Daily verse to x amount of time
-
MMM-RandomBibleVerse
https://github.com/MomentumV/MMM-RandomBibleVerse
This module, largely based off of MMM-DailyBibleVerse, gives you the option of having more than one verse a day! as of the latest version,
It is pretty limited to only ESV, NIV, KJV, NKJV versions, though. This is due to changing the verse provider from BibleGateway to dailyverses.net.
You can set the refresh interval in the config from a minimum of 0.2 minutes (12 seconds) to… ? I didn’t set a maximum! You could have a verse of the MONTH! ( that’s 602430 = 43,200 minutes). The default value is 60 minutes.
The actual function part of the code uses the
cheerio
package to parse html from dailyverses.net, and pull the verse parts out using CSS selectors.