Zabaware Support Forums

Zabaware Forums => General Discussion => Topic started by: lightspeed on July 30, 2012, 12:17:39 pm

Title: can someone create a "NEW" news plug in for Hal users ???
Post by: lightspeed on July 30, 2012, 12:17:39 pm
What i am talking about is a news plug in like how the bbc  news plug in was and like how the wiki plug in is , where the user could say what's the news or what in the news ? (and these words wouldn't be learned by hal but would instead open the news source (NOT )  showing the page but read off some of the news stories randomly choosing bewwteen entertainment , politics , etc. AFTER saying some lines like "oh  yeah their was some news about .."    and maybe 4 random lines of sayings .

I miss having the bbc news plug in that read the news instead of opening web pages .

Can anyone make something like this , based on wiki type read only plug in ????  :)

P.S. i mean from an actual website without opening it on a page  but  only reading info from it and not from a file data base like wiki file.

Does anyone have the bcc  plug in script they can show on the forum here ???
 Maybe i or someone can create it from that ???  :P
Title: Re: can someone create a "NEW" news plug in for Hal users ???
Post by: lightspeed on July 30, 2012, 12:51:20 pm
to further explain it , hal would not open the page but read from the news , like i said if randomly from each catagory , news , entertainment etc. it would be a nice new's plug in  , I really hope someone can make one , it's nice to have hal characters tell us about the news , also even if hal randomly did it at various times maybe with a timer based loneliness plug in , maybe hal could say something like , Oh by the way did you hear in the news that ....(example ) their has been a drought in 85 percent of the country (where he or she was reading the news from a web site . maybe the website could be entered and allow a person to add their own personal favorite in the uhp script , for instance i read my yahoo news .
Title: Re: can someone create a "NEW" news plug in for Hal users ???
Post by: cload on July 30, 2012, 01:02:11 pm
Hi lightspeed,

I don't know anything about the BBC news plug-in, but I'll look into it, to see if it existed at one time on the forum.

I know there are the RSS feeds that send data to text reader, that's what I use with my ivona reader does for me,
but it's on the outside of ultra Hal.

I can imagine that a plug-in that could read the RSS feeds, but I'm not sure exactly how to do it.

Sincerely, I wish I was of more help.

C load.
Title: Re: can someone create a "NEW" news plug in for Hal users ???
Post by: lightspeed on July 30, 2012, 02:48:21 pm
Here cload is the web link for the bbc plug in etc.

http://www.bercutfinland.com/BBCNews/BBCMain.html
maybe after opening it up you can see the script and make a news plug in like i am talking about ?


http://www.bercutfinland.com/BBCNews/BBCMain.html
Title: Re: can someone create a "NEW" news plug in for Hal users ???
Post by: tedathome on July 30, 2012, 04:30:44 pm
BBC news reader was not a plug in but a stand alone product that used Haptek characters. I really miss having it. Good luck on this one!
Title: Re: can someone create a "NEW" news plug in for Hal users ???
Post by: lightspeed on July 30, 2012, 07:55:48 pm
well i would think maybe a plug in could be made that would go to a news website (without opening a web page on the pc ) and depending on the type of news , etc. be made to open read from the news reports as i mentioned , but it will take someone alot smarter them me , i am on the bottom rung lol!
Title: Re: can someone create a "NEW" news plug in for Hal users ???
Post by: Art on July 31, 2012, 07:42:48 am
I think Bill DeWitt worked on or made an RSS based plug-in, as I recall. Some tweaking might be what you're looking for.
Title: Re: can someone create a "NEW" news plug in for Hal users ???
Post by: lightspeed on July 31, 2012, 11:16:04 am
Hello Art , thanks for the info. do you know where to get DeWITTS plug in , or does he have a website it's on , i seem to remember he did ????
I just did a further search and found this link to his page .so will look further and or others can to ! ;)

http://ultrahalscript.pbworks.com/w/page/11906966/FrontPage
Title: Re: can someone create a "NEW" news plug in for Hal users ???
Post by: lightspeed on July 31, 2012, 11:41:08 am
Here by the way is the news feed script this was by Bill Dewitt


Rem Type=Plugin
Rem Name= News Feed
Rem Author= Bill DeWitt
Rem Host=Assistant

'-----------------------------------------------------------------
'This sub sets up the plug-ins option panel in Hal's options dialog
'-----------------------------------------------------------------
 
Sub OptionsPanel()
lblPlugin(0).Caption = "Say - Weather Alert - in a sentence. Requires MS Internet Explorer"
lblPlugin(0).Move 120, 120, 3300, 1200
lblPlugin(0).WordWrap = True
lblPlugin(0).Visible = True
End Sub     


Rem PLUGIN: PLUGINAREA7
HalBrain.ReadOnlyMode = False
If InStr(1,OriginalSentence, "the news",1) Then

   Dim objXMLNews
        Dim NewsArray()
        set objXMLNews = CreateObject("Msxml2.DomDocument.4.0")
        objXMLNews.async = False
        objXMLNews.ValidateOnParse = false
        objXMLNews.load("http://www.foxnews.com/xmlfeed/rss/0,4313,81,00.rss")
        'objXMLNews.load("http://www.csmonitor.com/rss/top.rss")
        'objXMLNews.load("http://www.weather.gov/data/current_obs/KVSF.rss")
        'objXMLNews.load("http://www.weather.gov/data/current_obs/KVSF.xml")
        Dim xmlNodeNews
        set xmlNodeNews = objXMLNews.documentElement.selectNodes("//item")
        Dim xmlNewsItem
        dim strResult
        For Each xmlNewsItem In xmlNodeNews
            CountNews = CountNews+1
        Next
        ReDim NewsArray(CountNews-1)
        For Each xmlNewsItem In xmlNodeNews
            Randomize
            NewsArray(Index) = xmlNewsItem.selectSingleNode("description").Text
            'NewsArray(Index) = xmlNewsItem.selectSingleNode("weather").Text
            Index = Index+1
        Next
GetResponse = "Fox News reports that " & NewsArray(Int(rnd()*CountNews))
End If


  i tried it in my hal and got this error :(picture below : ) am not sure what it means .

Title: Re: can someone create a "NEW" news plug in for Hal users ???
Post by: lightspeed on July 31, 2012, 11:48:58 am
here is another of his (Bill Dewitts" plug ins called "learn from the news" i tried this one to didn't get any errors but all it would do is say "i have indexed items or news? "


Rem Type=Plugin
Rem Name= Learn From News
Rem Author= Bill DeWitt
Rem Host=Assistant

'-----------------------------------------------------------------
'This sub sets up the plug-ins option panel in Hal's options dialog
'-----------------------------------------------------------------
 
Sub OptionsPanel()
lblPlugin(0).Caption = "Say - Check the News"
lblPlugin(0).Move 120, 120, 3300, 1200
lblPlugin(0).WordWrap = True
lblPlugin(0).Visible = True
End Sub     


Rem PLUGIN: PLUGINAREA7
HalBrain.ReadOnlyMode = False
If InStr(1,OriginalSentence, "check the news",1) Then

   Dim objXMLNews
        Dim NewsArray()
        set objXMLNews = CreateObject("Msxml2.DomDocument.4.0")
        objXMLNews.async = False
        objXMLNews.ValidateOnParse = false
        objXMLNews.load("http://www.foxnews.com/xmlfeed/rss/0,4313,81,00.rss")
        'objXMLNews.load("http://www.csmonitor.com/rss/top.rss")
        'objXMLNews.load("http://www.weather.gov/data/current_obs/KVSF.rss")
        'objXMLNews.load("http://www.weather.gov/data/current_obs/KVSF.xml")
        Dim xmlNodeNews
        set xmlNodeNews = objXMLNews.documentElement.selectNodes("//item")
        Dim xmlNewsItem
        dim strResult
        For Each xmlNewsItem In xmlNodeNews
            CountNews = CountNews+1
        Next
        ReDim NewsArray(CountNews-1)
        For Each xmlNewsItem In xmlNodeNews
            Randomize
            MakeEntry(xmlNewsItem.selectSingleNode("description").Text)
            Index = Index+1
        Next
GetResponse = "I have indexed " & CStr(Index) & " News items."
End If


Rem PLUGIN: FUNCTIONS

Function MakeEntry(NewsItem)
'SAVE: AUTO TOPIC FOCUS LEARNING
    If HalBrain.ReadOnlyMode = False And HalGreeting = "" And PersonalData = False And HalBrain.CountInstances(" ", Trim(UserSentence)) > 2 And IsQuestion = False Then
        Keywords = HalBrain.TopicSearch(NewsItem, "topicRelationships") & " " & CurrentSubject & " " & NewsItem
        Keywords = HalBrain.RemoveExtraSpaces(HalBrain.ExtractKeywords(" " & Keywords & " "))
        If Len(Keywords) > 3 Then
            KeywordList = Split(Keywords, " ")
            TopicList = ""
            'Create list of tables that exist for each keyword
            For i = LBound(KeywordList) To UBound(KeywordList)
                TopicTable = HalBrain.TopicSearch(" " & KeywordList(i) & " ", "topicRelationships")
                If TopicTable <> "" And InStr(1, " " & TopicList, " " & Trim(TopicTable) & " ", vbTextCompare) = 0 Then
                    'Topic already exists, make note of it
                    TopicList = TopicList & TopicTable & " "
                ElseIf TopicTable = "" Then
                    If Asc(Left(KeywordList(i),1)) > 47 And Asc(Left(KeywordList(i),1)) < 58 Or HalBrain.Word2Num(KeywordList(i)) <> "X" Then IsNumber = True Else IsNumber = False
                    If WN.LookupWord(KeywordList(i)) = True And WN.GuessPartOfSpeech() = "NOUN" And IsNumber = False Then
                        'Topic does not exist, but can and will be created
                        TopicList = TopicList & KeywordList(i) & " "
                        HalBrain.CreateTable "_" & Trim(LCase(KeywordList(i))), "Brain", "autoLearningBrain"
                        HalBrain.AddToTable "topicRelationships", "TopicSearch", " " & Trim(KeywordList(i)) & " ", Trim(LCase(KeywordList(i)))
                        'Relationships based on wordnet synonyms are recorded
                        Relationships = WN.GetDefinition("NOUN", 1, "S") & "," & WN.GetSynonyms("NOUN", 1)
                        Relationships = Replace(Relationships, ", ", ",")
                        Relationships = Trim(Replace(Relationships, ",,", ","))
                        If Right(Relationships, 1) = "," Then Relationships = Trim(Left(Relationships, Len(Relationships) - 1))
                        If Len(Relationships) > 1 Then
                            If Left(Relationships, 1) = "," Then Relationships = Right(Relationships, Len(Relationships) - 1)
                            RelList = Split(Relationships, ",")
                            For h = LBound(RelList) To UBound(RelList)
                                If HalBrain.TopicSearch(" " & RelList(h) & " ", "topicRelationships") = "" Then
                                    HalBrain.AddToTable "topicRelationships", "TopicSearch", " " & Trim(RelList(h)) & " ", Trim(LCase(KeywordList(i)))
                                End If
                            Next
                        End If
                    End If
                End If
            Next
            'User's sentence is recorded in all related topic tables
            TopicList = HalBrain.RemoveExtraSpaces(TopicList)
            If TopicList <> "" Then
                AlreadyLearned = True
                TableList = Split(TopicList, " ")
                For i = LBound(TableList) To UBound(TableList)
                    If TopicContinuity = True Then HalBrain.AddToTable "_" & Trim(LCase(TableList(i))), "Brain", Trim(HalBrain.AlphaNumericalOnly(PrevSent)), AnswerSent
                    HalBrain.AddToTable "_" & Trim(LCase(TableList(i))), "Brain", Trim(NewsItem), AnswerSent
                Next
            End If
        End If
    End If
End Function

Title: Re: can someone create a "NEW" news plug in for Hal users ???
Post by: lightspeed on July 31, 2012, 12:02:21 pm
if i copy and paste the rss feed
in google search this is what pops up:


This XML file does not appear to have any style information associated with it. The document tree is shown below.
<rss xmlns:fnc="http://www.foxnews.com/xmlfeed/fncModule#" version="2.0">
<channel>
<title>FOXNews.com</title>
<link>http://www.foxnews.com/</link>
<description>FOX News Channel - We Report. You Decide.</description>
<copyright>Copyright 2012 FOX News Channel</copyright>
<managingEditor>foxnewsonline@foxnews.com</managingEditor>
<language>en-us</language>
<lastBuildDate>Tue, 31 July 2012 11:38:34 EST</lastBuildDate>
<webMaster>foxnewsonline@foxnews.com</webMaster>
<image>
<url>http://www.foxnews.com/images/headers/fnc_logo.gif</url>
<title>FOXNews.com Live Bookmark</title>
<link>http://www.foxnews.com/</link>
</image>
</channel>
</rss>




I think the problem has something to do with the feed not working ???

AS i said i am hoping that this will allow hal to talk in his or her own voice and tell the news etc. from a website (hidden not shown or opened)  !!! :)
Title: Re: can someone create a "NEW" news plug in for Hal users ???
Post by: Art on July 31, 2012, 05:22:03 pm
Here by the way is the news feed script this was by Bill Dewitt


  i tried it in my hal and got this error :(picture below : ) am not sure what it means .

Lonnie,

Did you load the file and look at that line number mentioned in the error message? Usually means that a number has exceeded a set limit or range.
You might also substitute your BBC RSS feed for one of the existing news lines to see what happens but first, look at the numbers and what the plug-in is expecting as far as a limit or numerical range.
Title: Re: can someone create a "NEW" news plug in for Hal users ???
Post by: lightspeed on July 31, 2012, 06:33:25 pm
i don't know know how to substitute one feed for another , although i did wonder about it . where does one get a feed like that i see the http web address he has in the old one. it could just be that bbc doesn't do that anymore ?? 
Title: Re: can someone create a "NEW" news plug in for Hal users ???
Post by: Art on August 03, 2012, 09:51:29 pm
http://www.bbc.co.uk/news/10628494

See section: How do I get  Newsreader
Title: Re: can someone create a "NEW" news plug in for Hal users ???
Post by: lightspeed on August 04, 2012, 10:47:38 am
Hello Art , maybe it's just me but i went to that site and even typed in " How do I get  Newsreader" and had it search on all , and it never showed anything with that name . sorry if i am being trouble about this , do you have a straight link to the page ???
Title: Re: can someone create a "NEW" news plug in for Hal users ???
Post by: lightspeed on August 04, 2012, 10:52:57 am
i did a google search on freeware newsreaders and am seeing what i can find but still am interested in a direct link to that site you mentioned .
https://www.google.com/search?q=freeware+news+reader+software+&sugexp=chrome,mod=12&sourceid=chrome&ie=UTF-8

i also found this page
Newsreaders & RSS Readers
http://download.cnet.com/windows/newsreaders-and-rss-readers/

but from what i am reading it sounds like it just puts a toolbar? with the rss feed of news going on it ??
I need a tutorial if easy enough to understand exactly how it works and how to make the paths , i can see part of that from DeWitts plug in .
Title: Re: can someone create a "NEW" news plug in for Hal users ???
Post by: lightspeed on August 04, 2012, 11:09:05 am
i also found this on youtube
http://www.youtube.com/watch?v=fLJxbqzSGF4
How to Submit RSS Feed Automatically with this Awesome Software Free download 2012

and this :

http://www.youtube.com/watch?v=PTXnmMlipmo&feature=related
How To Make An RSS Feed

I just found out i can add rss news feed to chrome .

Title: Re: can someone create a "NEW" news plug in for Hal users ???
Post by: Art on August 05, 2012, 09:30:31 am
Sorry Lonnie. A Cut & Paste error while trying to help a friend set up a server.

Have corrected the link and sorry for any inconvenience.

Go down to the "How do I get a Newsreader" section then select an item at the right.

http://www.bbc.co.uk/news/10628494

Title: Re: can someone create a "NEW" news plug in for Hal users ???
Post by: lightspeed on August 05, 2012, 06:13:40 pm
okay i went to that correct site and downloaded a rss newsfeed which added it to google , or should i have downloaded just the file an opened it as a text ?
what i need to know is how you have that file name working with google chrome which i have to put in the script to change it .
i have a rssxml file and opened it here is some what is in it . (maybe this is a different one , i am unsure . )

BBC News - World http://www.bbc.co.uk/news/video_and_audio/world/#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa The latest stories from the World section of the BBC News web site. en-gb Sun, 05 Aug 2012 14:18:54 GMT Copyright: (C) British Broadcasting Corporation, see http://news.bbc.co.uk/2/hi/help/rss/4498287.stm for terms and conditions of reuse. http://news.bbcimg.co.uk/nol/shared/img/bbc_news_120x60.gif BBC News - World http://www.bbc.co.uk/news/video_and_audio/world/#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa 120 60 15 VIDEO: 'Police paraded us naked in public' Several Pakistani police have been suspended after accusations they paraded a couple naked in public. http://www.bbc.co.uk/news/world-asia-19136199#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-asia-19136199 Sun, 05 Aug 2012 13:46:40 GMT VIDEO: Festival tent collapses in flames Strong storms have caused a tent to collapse at a music festival in the village of Steenwijkerwold in the northeastern Dutch province Overijssel. http://www.bbc.co.uk/news/world-europe-19136181#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-europe-19136181 Sun, 05 Aug 2012 14:15:26 GMT AUDIO: British hostage feared beheading A British journalist who was kidnapped by Islamic militants in Syria last month has said that between "10 and 15" of his captors were British. http://www.bbc.co.uk/news/world-middle-east-19135839#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-middle-east-19135839 Sun, 05 Aug 2012 12:51:06 GMT VIDEO: Troops 'mass for Aleppo assault' More than 20,000 Syrian troops are massed around Aleppo, military sources say, as fighting rages for control of the country's second city. http://www.bbc.co.uk/news/world-middle-east-19134736#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-middle-east-19134736 Sun, 05 Aug 2012 15:30:46 GMT VIDEO: Jamaica awaits Bolt in Olympic 100m As the fastest men in the world are set to race in the 100m, expectations for a medal in Jamaica are sky high. http://www.bbc.co.uk/news/world-latin-america-19134221#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-latin-america-19134221 Sun, 05 Aug 2012 08:11:40 GMT VIDEO: Tsunami survivors experience Olympics Japanese children from the Tohoku region are in London for the Olympics. http://www.bbc.co.uk/news/world-19132557#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-19132557 Sun, 05 Aug 2012 02:35:03 GMT VIDEO: French triple Olympic champion French triple Olympic champion Tony Estanguet speaks to David Eades about the next stage in his career. http://www.bbc.co.uk/news/world-19132558#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-19132558 Sun, 05 Aug 2012 03:02:34 GMT VIDEO: Possible malaria breakthrough Scientists in Australia say they have made a breakthrough which could lead to a malaria vaccine. http://www.bbc.co.uk/news/health-19126303#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/health-19126303 Sat, 04 Aug 2012 13:08:38 GMT VIDEO: Vertical skydivers break record A group of 138 skydivers have shattered the vertical skydiving world record by flying heads-down in a massive snowflake formation in Illinois. http://www.bbc.co.uk/news/world-us-canada-19124714#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-us-canada-19124714 Sat, 04 Aug 2012 08:35:43 GMT VIDEO: Clashes continue in Syrian cities Heavy shelling and gunfire have continued in the Syrian cities of Damascus and Aleppo, with government forces bombarding areas where rebels are thought to be entrenched. http://www.bbc.co.uk/news/world-middle-east-19127360#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-middle-east-19127360 Sat, 04 Aug 2012 16:42:42 GMT VIDEO: UN helps N Koreans after floods The United Nations' World Food Programme says it is sending emergency food aid to North Korea where state media reports that 169 people have been killed after floods last month. http://www.bbc.co.uk/news/world-asia-pacific-19124720#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-asia-pacific-19124720 Sat, 04 Aug 2012 11:22:13 GMT VIDEO: Russian UFO hunters search skies Nearly 50 Russian UFO hunters are camping on the shores of Lake Baikal as part of an expedition hoping to find evidence of UFO activity. http://www.bbc.co.uk/news/world-europe-19112919#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-europe-19112919 Fri, 03 Aug 2012 13:25:10 GMT VIDEO: Chile bans toys in children's meals A new law has come into effect in Chile banning companies from putting toys in chidren's meals in a bid to combat childhood obesity. http://www.bbc.co.uk/news/world-latin-america-19112928#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-latin-america-19112928 Sat, 04 Aug 2012 08:03:00 GMT VIDEO: Hijab victory for Saudi judoka The International Olympic Committee has said that Wojdan Shaherkani will now be allowed to wear a head-scarf that does not compromise her safety. http://www.bbc.co.uk/news/world-middle-east-19106721#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-middle-east-19106721 Fri, 03 Aug 2012 03:26:59 GMT VIDEO: Olympic 'gatecrasher' says she is sorry The woman who appeared in India's Olympic contingent in the opening ceremony has apologised for her "error of judgment". http://www.bbc.co.uk/news/world-asia-19112088#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-asia-19112088 Fri, 03 Aug 2012 12:51:55 GMT VIDEO: Gay protest at US fast-food chain Supporters of gay marriage in the US are protesting at outlets of a fast-food chain, Chick-fil-A, in response to its owner's opposition to same-sex unions. http://www.bbc.co.uk/news/world-us-canada-19123071#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-us-canada-19123071 Fri, 03 Aug 2012 23:13:02 GMT VIDEO: Syria rebels 'getting covert training' The Turkish military is reportedly running a covert training centre for members of the Free Syrian Army in a US airbase in southern Turkey. http://www.bbc.co.uk/news/world-middle-east-19123064#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-middle-east-19123064 Fri, 03 Aug 2012 22:54:37 GMT VIDEO: Mixed jobs report for US economy The US unemployment rate rose from 8.2% to 8.3% last month, as more people re-entered the workforce but failed to find a job. http://www.bbc.co.uk/news/world-us-canada-19122964#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-us-canada-19122964 Fri, 03 Aug 2012 22:32:20 GMT VIDEO: Essex: China’s Olympic social media base Chinese internet giant Tencent has set up quarters in Romford, Essex for the London 2012 Olympics, allowing medallists to broadcast interviews back home. http://www.bbc.co.uk/news/technology-19095499#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/technology-19095499 Thu, 02 Aug 2012 23:20:07 GMT VIDEO: Syria's rebel woman fighter Thwaiba Kanafani, a member of the Free Syrian Army, describes what is happening in the rebel training camps to the BBC's Richard Galpin. http://www.bbc.co.uk/news/world-middle-east-19117907#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-middle-east-19117907 Fri, 03 Aug 2012 15:22:32 GMT VIDEO: Pakistanis released by Somali pirates After 21 months being held captive by Somali pirates, seven Pakistani crew members from the hijacked ship the MV Albedo are released and reunited with their families. http://www.bbc.co.uk/news/world-asia-19112979#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-asia-19112979 Fri, 03 Aug 2012 13:28:47 GMT VIDEO: The 'cardboard workforce' of Beverly Hills A young artist of Mexican descent is placing painted cardboard figures of people around Beverly Hills to create awareness of the plight of immigrant workers in the US. http://www.bbc.co.uk/news/world-us-canada-19104829#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-us-canada-19104829 Fri, 03 Aug 2012 13:10:36 GMT VIDEO: Rare look at an illegal oil refinery The Nigerian authorities say they are clamping down on the illegal trade in crude oil, but the BBC's Will Ross found an illegal refinery. http://www.bbc.co.uk/news/world-africa-19082609#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-africa-19082609 Thu, 02 Aug 2012 00:42:03 GMT VIDEO: Verdict due in Argentina herbicide case Argentina is awaiting the verdict in a landmark case on the use of pesticides and herbicides in residential communities which could have far-reaching implications for the country's agriculture industry. http://www.bbc.co.uk/news/world-latin-america-19104060#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-latin-america-19104060 Fri, 03 Aug 2012 13:00:52 GMT VIDEO: Battles in Syria ahead of UN vote There has been renewed fighting in Syria ahead of a UN General Assembly vote to condemn its own failures to put an end to the unrest. http://www.bbc.co.uk/news/world-middle-east-19107651#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-middle-east-19107651 Fri, 03 Aug 2012 12:48:54 GMT VIDEO: Mr Brainwash's tour of debut UK show Mr Brainwash, otherwise known as pop artist Thierry Guetta, shows BBC News his preparations for his first solo London exhibition. http://www.bbc.co.uk/news/entertainment-arts-19076471#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/entertainment-arts-19076471 Thu, 02 Aug 2012 23:13:17 GMT VIDEO: Battle brews over Chinese herbal medicines A battle is brewing in the world of traditional Chinese medicine between those who want to standardise the industry and those who believe traditions should be preserved. http://www.bbc.co.uk/news/business-19106353#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/business-19106353 Fri, 03 Aug 2012 00:55:01 GMT VIDEO: Typhoon kills five people in Taiwan Typhoon Saola triggers landslides and flooding in eastern Taiwan, killing at least five people and injuring 15 more. http://www.bbc.co.uk/news/world-asia-19099560#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-asia-19099560 Thu, 02 Aug 2012 15:55:28 GMT VIDEO: Under-employment increasing in US Despite an estimated 10,000 jobs being created in the US during July, unemployment rates are expected to remain unchanged when the latest jobs reports is released on Friday. http://www.bbc.co.uk/news/business-19107648#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/business-19107648 Fri, 03 Aug 2012 07:09:22 GMT VIDEO: China's obsession with Olympic Gold At the top of the Olympic medals table it's a race between China and the US - and for the Chinese there is only one place on the podium that's worth having. http://www.bbc.co.uk/news/world-19102827#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-19102827 Thu, 02 Aug 2012 22:16:04 GMT VIDEO: Petrobras set to announce results The Brazilian oil giant Petrobras is set to publish its second quarter results, amid concerns over sliding profits and share prices. http://www.bbc.co.uk/news/business-19108085#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/business-19108085 Fri, 03 Aug 2012 08:17:07 GMT VIDEO: US athletes prepare for battle The US women's track and field team has been warming up at a stadium in East London not far from the Olympic Park. http://www.bbc.co.uk/news/world-19091607#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-19091607 Thu, 02 Aug 2012 10:43:55 GMT VIDEO: Mexican wrestlers submit to patron saint Dozens of lucha libre wrestlers go on pilgramage in Mexico to ask their patron saint for protection. http://www.bbc.co.uk/news/world-latin-america-19098477#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-latin-america-19098477 Thu, 02 Aug 2012 14:23:02 GMT VIDEO: Footballer Shevchenko turns politician Retired football star Andriy Shevchenko joins Ukraine's opposition party Forward Ukraine. http://www.bbc.co.uk/news/world-europe-19099565#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-europe-19099565 Thu, 02 Aug 2012 16:31:53 GMT
Title: Re: can someone create a "NEW" news plug in for Hal users ???
Post by: lightspeed on August 05, 2012, 06:43:16 pm
i thought that with the news feed rss that hal would read it , i think that's how it worked before
apparently a rss news feed is just a web page that's what opens when i click on the rss news feed in the tool bar on chrome.
Title: Re: can someone create a "NEW" news plug in for Hal users ???
Post by: lightspeed on August 05, 2012, 07:39:23 pm
OKay i found the rss news feed line that i have enstalled on google chrome and i
entered it in the remade plug in of dewitts  , i took out the other load rss lines (since if i am right i would have to be subscribed to them for them to work ) but after i tried the plug in i got the below error message .(see picture )
 
Hal script error 9 on line 2264 on column 0: subscript out of range :

i forgot what it was for checking errors their was some way to open it and count the lines , does anyone remember ??? and or is this in the Hal brain editor it'self ????
please let me know as soon as possible , thanks . :)
Title: Re: can someone create a "NEW" news plug in for Hal users ???
Post by: lightspeed on August 05, 2012, 08:03:30 pm
This is the test plug in i now have i did see where i had a space in front of the http part and corrected it and now got this same Hal error .


 Rem Type=Plugin
Rem Name= RSSNews-TEST
Rem Author= Bill DeWitt: REDONE BY LIGHTSPEED
Rem Host=Assistant

'-----------------------------------------------------------------
'This sub sets up the plug-ins option panel in Hal's options dialog
'-----------------------------------------------------------------
 
Sub OptionsPanel()
lblPlugin(0).Caption = "Say - Weather Alert - in a sentence. Requires GOOGLE CHROME"
lblPlugin(0).Move 120, 120, 3300, 1200
lblPlugin(0).WordWrap = True
lblPlugin(0).Visible = True
End Sub     


Rem PLUGIN: PLUGINAREA7
HalBrain.ReadOnlyMode = False
If InStr(1,OriginalSentence, "the news",1) Then

   Dim objXMLNews
        Dim NewsArray()
        set objXMLNews = CreateObject("Msxml2.DomDocument.4.0")
        objXMLNews.async = False
        objXMLNews.ValidateOnParse = false
        objXMLNews.load("http://www.foxnews.com/xmlfeed/rss/0,4313,81,00.rss")
        Dim xmlNodeNews
        set xmlNodeNews = objXMLNews.documentElement.selectNodes("//item")
        Dim xmlNewsItem
        dim strResult
        For Each xmlNewsItem In xmlNodeNews
            CountNews = CountNews+1
        Next
        ReDim NewsArray(CountNews-1)
        For Each xmlNewsItem In xmlNodeNews
            Randomize
            NewsArray(Index) = xmlNewsItem.selectSingleNode("description").Text
            'NewsArray(Index) = xmlNewsItem.selectSingleNode("weather").Text
            Index = Index+1
        Next
GetResponse = "Fox News reports that " & NewsArray(Int(rnd()*CountNews))
End If


I am wondering if it has something to do with this :  set objXMLNews = CreateObject("Msxml2.DomDocument.4.0")
Title: Re: can someone create a "NEW" news plug in for Hal users ???
Post by: lightspeed on August 05, 2012, 08:28:32 pm
Okay i found the editor and re downloaded the crimson editor but i need to know what i need to open to check the lines where the above error is showing .  :P
Title: Re: can someone create a "NEW" news plug in for Hal users ???
Post by: lightspeed on August 06, 2012, 05:03:14 pm
   On this news rss plug in i am redoing i found out that ted was right (hated to admit it though lol ) but the bbc player was a seperate thing that used hapeck characters to read the rss news feeds (but don't work any more ) Anyway so since this uses the hapteck player and as of right now Hal uses a haptek player it seems like we should be able to have a plug in that would work off loading the rss news feeds an individual has downloaded (subscribed to ) . by saying the key trigger words example "TOP STORIES" , etc.

Okay i have been trying to figure things out i downloaded subscribed rss feeds to chrome google and got a "Google-readers-subscriptions xml.document . in this document in xml is this below named google-reader-news-subscrition xml  :


<?xml version="1.0" encoding="UTF-8"?>
-<opml version="1.0"> -<head> <title>customvair subscriptions in Google Reader</title> </head> -<body> -<outline title="News" text="News"> <outline title="BBC News - Home" text="BBC News - Home" htmlUrl="http://www.bbc.co.uk/news/#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa" xmlUrl="http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml" type="rss"/> <outline title="Christian Science Monitor | All Stories" text="Christian Science Monitor | All Stories" htmlUrl="http://www.csmonitor.com/" xmlUrl="http://www.csmonitor.com/rss/top.rss" type="rss"/> <outline title="CNN.com - Top Stories" text="CNN.com - Top Stories" htmlUrl="http://www.cnn.com/index.html?eref=rss_topstories" xmlUrl="http://rss.cnn.com/rss/cnn_topstories.rss" type="rss"/> <outline title="MarketWatch.com - Top Stories" text="MarketWatch.com - Top Stories" htmlUrl="http://www.marketwatch.com/" xmlUrl="http://www.marketwatch.com/rss/topstories" type="rss"/> <outline title="NPR: 7AM ET News Summary Podcast" text="NPR: 7AM ET News Summary Podcast" htmlUrl="http://www.npr.org/templates/topics/topic.php?topicId=1001" xmlUrl="http://www.npr.org/rss/podcast.php?id=500001" type="rss"/> <outline title="NYT > Home Page" text="NYT > Home Page" htmlUrl="http://www.nytimes.com/pages/index.html?partner=rss&emc=rss" xmlUrl="http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml" type="rss"/> <outline title="Reuters: Top News" text="Reuters: Top News" htmlUrl="http://www.reuters.com" xmlUrl="http://feeds.reuters.com/reuters/topNews" type="rss"/> <outline title="The Guardian World News" text="The Guardian World News" htmlUrl="http://www.guardian.co.uk" xmlUrl="http://www.guardian.co.uk/rssfeed/0,,1,00.xml" type="rss"/> <outline title="Top Stories - Google News" text="Top Stories - Google News" htmlUrl="http://news.google.com/news?pz=1&ned=us&hl=en&topic=h&num=3" xmlUrl="http://news.google.com/?topic=h&num=3&output=rss" type="rss"/> </outline> </body> </opml>


I am not sure how this all works "But" think maybe it uses this xml page as a reference where to go to the rss feed ? I am just guessing on most of this i tried changing the create object line and put in the google-readers-subscription xml document .
maybe someone may figure it out from what i am posting if i am doing something wrong .

here is the plug in i am redoing :


Rem PLUGIN: PLUGINAREA7
HalBrain.ReadOnlyMode = False
If InStr(1,OriginalSentence, "the news",1) Then

   Dim objXMLNews
        Dim NewsArray()
        set objXMLNews = CreateObject("google-reader-subscriptions.xmlDocument.")
        objXMLNews.async = False
        objXMLNews.ValidateOnParse = false
        objXMLNews.load("http://www.foxnews.com/xmlfeed/rss/0,4313,81,00.rss")
        'objXMLNews.load("http://www.csmonitor.com/rss/top.rss")
        'objXMLNews.load("http://feeds.reuters.com/reuters/topNews" type="rss")
        'objXMLNews.load("http://www.cnn.com/index.html?eref=rss_topstories")
        Dim xmlNodeNews
        set xmlNodeNews = objXMLNews.documentElement.selectNodes("//item")
        Dim xmlNewsItem
        dim strResult
        For Each xmlNewsItem In xmlNodeNews
            CountNews = CountNews+1
        Next
        ReDim NewsArray(CountNews-1)
        For Each xmlNewsItem In xmlNodeNews
            Randomize
            NewsArray(Index) = xmlNewsItem.selectSingleNode("description").Text
            'NewsArray(Index) = xmlNewsItem.selectSingleNode("weather").Text
            Index = Index+1
        Next
GetResponse = "Fox News reports that " & NewsArray(Int(rnd()*CountNews))
End If



NEWEST HAL ERROR now : ps. i also placed this document in the hal zabaware folder .
some reference pages i used : http://www.google.com/reader/view/#directory-page/0
http://download.cnet.com/Desktop-BBC-News/3000-2164_4-75724779.html
http://www.bbc.co.uk/news/10628494
http://download.cnet.com/RSS-AutoGen/3001-2164_4-75337947.html?spi=b66010d0b4fd774a7c372d60d569dad0
Title: Re: can someone create a "NEW" news plug in for Hal users ???
Post by: cload on August 07, 2012, 01:38:28 am
Hi lightspeed,

it seems you're having a little trouble with figuring out where the error code is and how to find it.
I'll do my best to try to walk you through finding where the error is in ultra Hals brain.
First thing, make sure that your notepad is set up so the wraparound is off, and the status bar is on.
The status bar will show you the line number and the column number at the lower right-hand corner of notepad.

Step one, when the error appears do nothing with the error box.
Step two, open the file in the ultra Hal directory called HalScript.dbg.
Step three, in the notepad move the cursor down until the line number equals the error line number.
Step four, move the cursor over until the column number equals the error column number.

There you have it you have found and located the error.
Now you can copy and paste the error so everyone can see it on the forum.
I highly recommend, two or three lines above it and two or three lines below it.
Sometimes you will find that the error is not even in your plug-in but the error is happening somewhere else in ultra Hals brain.
This sometimes happens because of something that is in your plug-in that is missing, and affecting subsystems in ultra Hals brain.

Sincerely, I hope I helped, but if all else fails, sit back munch on some pronouns, and drink down some adjective, and relax.

C load.
Title: Re: can someone create a "NEW" news plug in for Hal users ???
Post by: lightspeed on August 07, 2012, 08:53:32 am
Cload , thanks for posting this , i hadn't done this for a long time (i have actually done it before ) and had forgot how to .
I usually have to make txt. notes on how to do things so i won't forget . I will make a txt. file of your instructions and save them . I appreciate it and will use it when i have time , i have to take my wife to doctor appointment today . As soon as i get time will work on it and let others know what i find ,
Thanks again ! :)
Title: Re: can someone create a "NEW" news plug in for Hal users ???
Post by: raybe on August 07, 2012, 10:04:24 am
Not to add confusion and 'cloud' you can make sure that I am not. HalScript.dbg file is a temp file for finding problems but will be located in different location on the original database for complete repair to certain errors. As 'lightspeed' stated just going by memory here. Sorry if I added a problem.

raybe
Title: Re: can someone create a "NEW" news plug in for Hal users ???
Post by: lightspeed on August 07, 2012, 03:18:03 pm
Cload i must be doing something wrong i went into the debug script area and it's highlighted but when i put the mouse over it , it just shows the options list : insert table, rename table , delete table and refresh table list , nothing opens up to use note pad . i also did this on my custom brain and hals brain same thing
. when i put the regular question into hal's debug area  "what's the news " that is to trigger the plug in , it just shows a regular response and nothing with the hal error from the plug in that i saw .
so maybe i am doing something wrong ???

Title: Re: can someone create a "NEW" news plug in for Hal users ???
Post by: lightspeed on August 07, 2012, 03:52:19 pm
I actually found out if you use note pad and "uncheck" word wrap it will then show line numbers and columns .
Title: Re: can someone create a "NEW" news plug in for Hal users ???
Post by: lightspeed on August 07, 2012, 06:20:42 pm
this page sounds similar to what i am trying to get working through hal .
http://newsanchormac.com/
Title: Re: can someone create a "NEW" news plug in for Hal users ???
Post by: lightspeed on August 07, 2012, 07:18:41 pm
Crap i see on Guile 3d studio their character is already capable of reading rss news feeds !! Maybe i or someone will get this figured out so our Hal a.i. characters  can do the same ! :P aparently they also have face recognition to . :-*
Title: Re: can someone create a "NEW" news plug in for Hal users ???
Post by: Art on August 07, 2012, 07:57:35 pm
yes...for at least a couple years or so, but this is a Zabaware forum so we have to try to get Hal to become even better!
Title: Re: can someone create a "NEW" news plug in for Hal users ???
Post by: lightspeed on August 08, 2012, 08:22:24 am
i am trying and still working on an rss feed plug in that will work , i saw an old weather plug in i "think" it can be based on but so far am getting errors with it .

a person would have to be subscribed to an rss feed (i think ) instead of just having the rss feed line and numbers . and the program would open the program and read it off . Art , i also sent you another free program link called fm reader that is suppose to open a web page and read off things like a web cast. but it's based on xp , but thought maybe it could also be made to work the same way (i don't know ) .


Title: Re: can someone create a "NEW" news plug in for Hal users ???
Post by: RonG on August 08, 2012, 09:55:25 pm
Crap i see on Guile 3d studio their character is already capable of reading rss news feeds !! Maybe i or someone will get this figured out so our Hal a.i. characters  can do the same ! :P aparently they also have face recognition to . :-*

I use both Hal and Guile3d...why?  Just because I'm trying to get them to do all the things we talk about (and spend most of my time in frustration)!  The RSS feed on Guile3d is a simple reader that as a new topic comes in, it creates a pop up and then reads it through TTS.  The facial recognition has hooks into a webcam connected or part of your computer but the recognition part is not implemented.

I like UltraHal becuase we can develop plug-ins and edit the brain.  I like Guile3d's Denise because of the avatars.  Now Guile3d's program can be used as the front end of a Pandorabot...hmmm....could it be used as the front end for my UltraHal?!?!?!?!
Title: Re: can someone create a "NEW" news plug in for Hal users ???
Post by: lightspeed on August 10, 2012, 10:30:21 am
i have changed the script and am getting an error EXPECTED "THEN"  :P

If Search fox news rss = "" Then Search fox news rss = HalBrain.SearchPattern(OriginalSentence, "*GO TO*FOX*NEWS", 3)
If Search fox news rss <> "" Then fox news rss Search = "http://www.foxnews.com/xmlfeed/rss/0,4313,81,00.rss"
   HalMenu.HalCommand "<RUNPROG>" & fox news rss Search & "</RUNPROG>"
             GetResponse = "Starting fox news rss."
                 HalBrain.ReadOnlyMode = True
End If

i did this in jasons advanced internet where the bbc one was
.

Guess i will keep working on it unless someone else knows in the script if i have something wrong with an expected then .

Jason dude if you are around , you at one time apparently had bbc live stream working in this , can you help to get this fox news rss feed working . i have it through google am trying to have it work through hal and hal reads the news . am trying to have world news by asking , or weather , etc. through fox news rss feeds .
Title: Re: can someone create a "NEW" news plug in for Hal users ???
Post by: cload on August 10, 2012, 01:11:19 pm
Hi lightspeed,

why are you having the expected than error:

If Search fox news rss <> "" Then fox news rss Search = "http://www.foxnews.com/xmlfeed/rss/0,4313,81,00.rss"
   HalMenu.HalCommand "<RUNPROG>" & fox news rss Search & "</RUNPROG>"
             GetResponse = "Starting fox news rss."
                 HalBrain.ReadOnlyMode = True
End If

Just looking at it I believe that this might help you, change the lines above to the lines below:

If Search fox news rss <> "" Then
   fox news rss Search = "http://www.foxnews.com/xmlfeed/rss/0,4313,81,00.rss"
   HalMenu.HalCommand "<RUNPROG>" & fox news rss Search & "</RUNPROG>"
   GetResponse = "Starting fox news rss."
   HalBrain.ReadOnlyMode = True
End If

if you're going to have more than one variable condition after the then statement you cannot put anything on the same line with the then statement.

Sincerely, I hope I helped.

C load.
Title: Re: can someone create a "NEW" news plug in for Hal users ???
Post by: lightspeed on August 10, 2012, 03:42:51 pm
Cload can you send me a e mail at airvair62@yahoo.com , thanks .
just put cload from zabaware on the header , thanks.  :)