I have run the installer and all three of the HS3 dlls are referenced:
HomeSeerAPI.dll 2/17/14 1.0.2.1
HSCF.dll 2/17/14 1.0.0.2
Scheduler.dll 2/17/14 3.0.0.0
Announcement
Collapse
No announcement yet.
HS3 Plugin Samples
Collapse
This is a sticky topic.
X
X
-
Make sure you run the HS3 installer on the remote PC as the plugin needs access to many of the HS3 DLL files.
Originally posted by Kirby View PostWhen HSPI_Sample is run on a remote PC an exception is raised (Object Reference not set to instance of the object) when the call to hs.GetDeviceEnumerator () is made. It works fine when the same plugin is run on the local HS3 server with 3.0.0.68 installed.
The server is a hometroller and the remote PC is running Windows 8.1 64bit.
Any help would be appreciated.
Leave a comment:
-
Exception Raised when GetDeviceEnumerator() is Called from Remote Plugin
When HSPI_Sample is run on a remote PC an exception is raised (Object Reference not set to instance of the object) when the call to hs.GetDeviceEnumerator () is made. It works fine when the same plugin is run on the local HS3 server with 3.0.0.68 installed.
The server is a hometroller and the remote PC is running Windows 8.1 64bit.
Any help would be appreciated.
Leave a comment:
-
Error message for sample plugin is:
**FATAL**: Failed getting InterfaceStatus from Sample Plugin - the interface was not found in the list of active interfaces.
For sample-basic MI
**FATAL**: Failed getting InterfaceStatus from Sample-BasicMI - the interface was not found in the list of active interfaces.
Thanx
Leave a comment:
-
Originally posted by fabiopascolo View PostIf I try to compile the plugins I get a lot of errors like
-Error 35 'AddAjaxHandlerPost' is not a member of 'HSPI_SAMPLE.WebTestPage'. C:\Users\Fabio.Pascolo.BO-DI\Documents\Visual Studio 2010\Projects\HSPI_SAMPLE\WebTestPage.vb 93 24 HSPI_SAMPLE
-Error 80 'clsJQuery' is not declared. It may be inaccessible due to its protection level. C:\Users\Fabio.Pascolo.BO-DI\Documents\Visual Studio 2010\Projects\HSPI_SAMPLE\WebTestPage.vb 311 24 HSPI_SAMPLE
-Error 32 'divToUpdate' is not a member of 'HSPI_SAMPLE.WebTestPage'. C:\Users\Fabio.Pascolo.BO-DI\Documents\Visual Studio 2010\Projects\HSPI_SAMPLE\WebTestPage.vb 54 17 HSPI_SAMPLE
Something wrong?
Thank you
Leave a comment:
-
Originally posted by pawnies20 View PostHi
I can only test in hs3 "hspi sample basic", after compilation.
The hspi_sample and hspi_sample_basicMI, in hs3 generates an error "com port..."
How can i use them ?
Thanx
Leave a comment:
-
Guest repliednot compilable
Originally posted by rjh View Post[UPDATED 2/19/14]
Here are 3 plug-in samples that show the 3 ways to configure a plugin. One is a standard sample, one is a more basic sample that has simple actions/triggers, and the third shows how to create a multi-instance plugin.
http://homeseer.com/updates3/hs3_plugin_samples.zip
10/19/13 Changes:
* Modified multi-instance sample so it supports both single and multiple EXE modes properly
-Error 35 'AddAjaxHandlerPost' is not a member of 'HSPI_SAMPLE.WebTestPage'. C:\Users\Fabio.Pascolo.BO-DI\Documents\Visual Studio 2010\Projects\HSPI_SAMPLE\WebTestPage.vb 93 24 HSPI_SAMPLE
-Error 80 'clsJQuery' is not declared. It may be inaccessible due to its protection level. C:\Users\Fabio.Pascolo.BO-DI\Documents\Visual Studio 2010\Projects\HSPI_SAMPLE\WebTestPage.vb 311 24 HSPI_SAMPLE
-Error 32 'divToUpdate' is not a member of 'HSPI_SAMPLE.WebTestPage'. C:\Users\Fabio.Pascolo.BO-DI\Documents\Visual Studio 2010\Projects\HSPI_SAMPLE\WebTestPage.vb 54 17 HSPI_SAMPLE
Something wrong?
Thank you
Leave a comment:
-
Originally posted by Kevin Lo View PostDear All ,
I download the plug-in sample.
I am using VB.Net 2010 Express.
HSPI_SAMPLE\HSPI_SAMPLE.vbproj , I can compile it and save the output EXE to the HS3 directory , start the HS3, in the startup log , I can see the HS3 can search this plugin. No problem at all.
HSPI_SAMPLE\HSPI_SAMPLE DLL.vbproj , I can compile it without error. But it save HSPI_SAMPLE.dll to the HS3 directory , start the HS3 , it cannot find this plug-in.
Any idea ? I stuck on it for a few days already...
Thanks
Different than HS2 plugins which just go to the HS2 folder.
Leave a comment:
-
HSPI_SAMPLE.dll problem
Dear All ,
I download the plug-in sample.
I am using VB.Net 2010 Express.
HSPI_SAMPLE\HSPI_SAMPLE.vbproj , I can compile it and save the output EXE to the HS3 directory , start the HS3, in the startup log , I can see the HS3 can search this plugin. No problem at all.
HSPI_SAMPLE\HSPI_SAMPLE DLL.vbproj , I can compile it without error. But it save HSPI_SAMPLE.dll to the HS3 directory , start the HS3 , it cannot find this plug-in.
Any idea ? I stuck on it for a few days already...
Thanks
Leave a comment:
-
Yup, I musta' had Dyslexia that day.
The keys collection part is zero based, whereas the object collection part is one based. (a combination of dictionary and collection objects rolled into one.)
You could switch that all to a sorted list I think, but I think you would also want to add some error checking to that as well for adding actions and triggers from the events page.
I made the changes in the project and checked them in.
I'll let Rich know so he can put out a new source code file.
Leave a comment:
-
I believe there are a couple off-by-1 errors in the HSPI_SAMPLE_BASIC that had me scratching my head for a bit. Thought I'd post for any other new plugin developers.
plugin.vb line 194 in SubTriggerCount()
Code:trigger = triggers(TriggerNumber - 1)
Code:trigger = triggers(TriggerNumber)
Code:Return IFACE_NAME & ": " & trigger.Keys(SubTriggerNumber)
Code:Return IFACE_NAME & ": " & trigger.Keys(SubTriggerNumber - 1)
Leave a comment:
Leave a comment: