Announcement

Collapse
No announcement yet.

[VB.NET Script] Bible Verse of the Day

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [VB.NET Script] Bible Verse of the Day

    I took the code from the "word for the day" script we discussed yesterday and found a site that does Bible Verse of the day...

    It's from an ESV (english standard version)

    VerseOfTheDay.vb
    Code:
    Imports System.IO
    Imports System.Xml
    Sub Main(parm as object)
       Dim m_xmld As XmlDocument
       Dim m_node As XmlNode
       Dim CHverse as xmlNode
       dim tverse as xmlNode
     
       m_xmld = New XmlDocument
       m_xmld.Load("http://www.gnpcb.org/esv/share/rss2.0/daily/")
       CHverse = m_xmld.SelectSingleNode("rss/channel/item/title")
       tverse = m_xmld.SelectSingleNode("rss/channel/item/description")
     
     
       hs.speak ("The Verse for the day is from " & CHverse.InnerText &". The Verse is. . " & tverse.InnerText)
     
     
    End Sub
    Note: You will need to put -
    ScriptingReferences=System.XML;System.XML.dll
    in your Settings.ini file if it isn't there already.

    Nothing special... but thought i might save someone some legwork if i shared.

    Andrew
    Regards,

    Andrew B.

    #2
    Move to disscusion thread.
    Last edited by lpitman; January 27, 2007, 12:06 PM.
    -Larry

    A member of "The HA Pioneer Group", MyWebSite

    Plugins:
    VWS, AB8SS, lrpSpeak, Calendar, Arduino, Harmony, BlueIris, Sprinklers, ZipBackup...

    Hardware:
    Intel NUC8i7BEH1 running Windows 10 Pro headless, HS3 Pro, Plex running on Synology dual High Availability DS-1815+ NAS (24Tb each), Synology Surveillance Station running on DS-416 Slim (8Tb), Samsung SmartThings, Google Home, Alexa, Hubitat Elevation, ZNET, Ubiquiti UniFi Network, Davis Vantage Pro II Weather Station. Whole house speaker system using a couple of AB8SS switches. Vantage Pro II Weather Station, Rain8Net Sprinklers, Hubitat Elevation, Google Home, Alexa, DSC Security System, Ubiquiti UniFi Network.

    Comment

    Working...
    X