Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: Get Weather Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: November 11 2014 at 10:20 | IP Logged Quote dhoward

Ken,

The "error occurred while loading Plugin" message can return these possible values:

-1 Invalid Call: the argument is the Object property of a control

-2 Class name not found

-3 Object could not be created

-4 Could not connect to object

-9 Other error

-15 COM+ is not loaded on this computer

-16 Invalid Call: this function not applicable

In your case, it would appear that you need to run regsvr32 on your ph_urlscraper.ocx file.

Based upon your last post though, it would seem that you ended up getting it working.

Concerning the debug capability, that would be mostly up to how the plugin was written. I could modify it so that it uses an extra parameter in the INI file to trigger some kind of debugging mode with messageboxes or send info to the eventlog or even modify the plugin to have callable functions from within PowerHome to retrieve scrapes directly (looking at the code, I have something along these lines that I'll have to document).

Dave.
Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
GadgetGuy
Super User
Super User
Avatar

Joined: June 01 2008
Location: United States
Online Status: Offline
Posts: 942
Posted: November 11 2014 at 10:33 | IP Logged Quote GadgetGuy

Actually I do not have anything working yet.

My "debugging" post was a complementary thought to find out if there was a way to see if I am even extracting any useful data.

I'll try the regsvr32 approach to see what happens. I hadn't thought of that.

__________________
Ken B - Live every day like it's your last. Eventually, you'll get it right!
Back to Top View GadgetGuy's Profile Search for other posts by GadgetGuy
 
GadgetGuy
Super User
Super User
Avatar

Joined: June 01 2008
Location: United States
Online Status: Offline
Posts: 942
Posted: November 11 2014 at 10:51 | IP Logged Quote GadgetGuy

The ph_urlscraper.ocx file Registered OK, but I still get a "-2" error on re-initialization.

I even rebooted the computer, but it was not effective.

Any other thoughts?

__________________
Ken B - Live every day like it's your last. Eventually, you'll get it right!
Back to Top View GadgetGuy's Profile Search for other posts by GadgetGuy
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: November 11 2014 at 14:36 | IP Logged Quote dhoward

Ken,

Hmmm...what OS are you running? Its possible that one of the scraper subcomponents also needs registering.

Try running regsvr32 on cshtpax8.ocx. It'll be system32 if you're running a 32 bit OS otherwise it will be syswow64. Make sure you're running the regsvr32 function as an administrator (I like to right click the cmd prompt and select "Run as administrator" and then execute the regsvr32 function from there).

Dave.
Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
GadgetGuy
Super User
Super User
Avatar

Joined: June 01 2008
Location: United States
Online Status: Offline
Posts: 942
Posted: November 11 2014 at 15:14 | IP Logged Quote GadgetGuy

Dave-

I'm running a 64-bit Windows 7 Professional system and attempting to Register cshtpax8.ocx results in the following error message...



Got any more ideas?


__________________
Ken B - Live every day like it's your last. Eventually, you'll get it right!
Back to Top View GadgetGuy's Profile Search for other posts by GadgetGuy
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: November 11 2014 at 16:36 | IP Logged Quote dhoward

Ken,

It should look like this:

regsvr32 "c:\windows\syswow64\cshtpax8.ocx"

Dave.
Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
GadgetGuy
Super User
Super User
Avatar

Joined: June 01 2008
Location: United States
Online Status: Offline
Posts: 942
Posted: November 12 2014 at 18:31 | IP Logged Quote GadgetGuy

dhoward wrote:

It should look like this:

regsvr32 "c:\windows\syswow64\cshtpax8.ocx"



That worked! I no longer have a Plugin Load Failure, but that said I am not getting any Triggers either, so clearly my attempts to find a string aren't working. Is there anything obviously wrong in the code I posted above?   


__________________
Ken B - Live every day like it's your last. Eventually, you'll get it right!
Back to Top View GadgetGuy's Profile Search for other posts by GadgetGuy
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: November 15 2014 at 00:16 | IP Logged Quote dhoward

Ken,

It looks like it should work but I would need to test. Can you email me your urlscraper.ini file and the html for the page you're trying to scrape? I'll setup a system here and see what might be wrong.

Dave.
Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
GadgetGuy
Super User
Super User
Avatar

Joined: June 01 2008
Location: United States
Online Status: Offline
Posts: 942
Posted: November 26 2014 at 16:56 | IP Logged Quote GadgetGuy

Got 'er going with your wonderful assistance Dave.

More thanks can I can express in mere words.

Have written up a Help file to document the "Care & Feeding" of this process for you to include in the next PH release.   

Hopefully it will be helpful to others, as this is a truly great option.


__________________
Ken B - Live every day like it's your last. Eventually, you'll get it right!
Back to Top View GadgetGuy's Profile Search for other posts by GadgetGuy
 
GadgetGuy
Super User
Super User
Avatar

Joined: June 01 2008
Location: United States
Online Status: Offline
Posts: 942
Posted: December 14 2014 at 19:39 | IP Logged Quote GadgetGuy

Inspired by Syonker's Awesome Get Weather Data approach (using the Weather Underground API) and the new PH URLscraper Plugin, I have written a How-To document that describes the shortest, cleanest, easiest to use weather grabber I have ever tried.

Its writeup can be found here...
http://www.power-home.com/forum/forum_posts.asp?TID=4453&PN= 1&TPN=1

Thanks Syonker and Dave for creating the strong foundations that made this all possible.



__________________
Ken B - Live every day like it's your last. Eventually, you'll get it right!
Back to Top View GadgetGuy's Profile Search for other posts by GadgetGuy
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

<< Prev Page of 3
  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum