HomeGenie Forum
Automation Program Plugins and Wizard Scripting => Help => Topic started by: maxflax on December 18, 2015, 02:15:22 AM
-
Hi Gene,
Im in the first phase of developing a plugin with functionality I need for my HG program. So my question is how I can connect to the functions in the plugin from my HG program. I have made a skeleton project based on the MQTT service plugin so the pure plugin is working now Im going to add the functions. I can tell that it has an interface for networking api calls but wondering if it's loaded into HG so I can access the dll directly with code?
And do you have any example code of interfacing with a plugin from a HG app?
Couldn't find any doc of the plugins so thats the reason for the inquery.
-
Anyone?
Is making a call like this the only option or is there a better way?
Net.WebService("192.168.1.2/api/MIGService.Interfaces/HomeAutomation.MyService/dosomething")
.AddHeader("Content-Type", "application/json")
.Post(data)
.Call();
-
There must be a more conform way that I can't find in any docs or in the programs.
It really baffles me that this seems to be unknown to all, what am I missing?
Been battling this for a while now so if I sound harsh it's not intended.
-
There aren't that many people who have posted custom plugins so that might be part of it. It's similar to widgets in that only a couple have been posted so the knowledge base may be small. I have no experience with either so you'll have to wait for someone that has constructed a plugin to see the thread.
-
Can you join you src code of program and widget ?
-
I did my best problem solving technique on it, "went to sleep", and solved it.. It never fails me this sleeping thingy :)