Moskus / hspi_CsharpSample

C# sample for HomeSeer 3 plugins
6 stars 1 forks source link

New images to the readme #2

Closed oesolberg closed 5 years ago

oesolberg commented 5 years ago

As of now I have only copied the images from Moskus post https://forums.homeseer.com/forum/developer-support/programming-plug-in-development/plug-in-development/90775-hspi_moskussample-an-easier-plugin-sample-vb-net We should have images that show the how it will appear when running this plugin.

oesolberg commented 5 years ago

Also add some "translation" of

Q: "Where do I start?"

A: 1. Copy "HomeSeerAPI.dll", "HSCF.dll" and "Scheduler.dll" from your HS3 dir to into the dir of this project (extract the zip file first, of course).

  1. Just start HS3 if its not running, and hit Debug in Visual Studio. Then youll see whats going on
  2. Do some customization, I suggest start by naming your plugin. this is done several places: a. In "utils.vb", see variables "IFACE_NAME" and "INIFILE". b. See in "My Project" in the Solution, and change both c. If you, like me, dont want the solution and project named "MoskusSample" you can edit the .vbproj and .sln files in notepad (but close Visual Studio first).
  3. Then look into the "Plugin.vb" file. A good place like any other is to start by finding the sub "InitIO", whats where the plugin is initialized.
  4. However, if you REALLY want to dive right in to it, find the "UpdateTimerTrigger" sub and read to the end.
oesolberg commented 5 years ago

Can not be done until #3 is done.

oesolberg commented 5 years ago

Done