Hmm I'll have to test that...
For now test this... After loading lhue.exe as plugin
social sample:
command: turn on the living room light
response: [LHue.Switch("on","Living Room Light","living room light is now {state}","living room is already {on}")]
this is not tested.
Verify the exact command from tray menu...
You can also look up curl.exe and send put requests thru that
Sent from my XT1039 using
Also put this with the exe
Tapatalk//cloud.tapatalk.com/s/590db3449d1 ... ry.dll.zip
Phillips hue
Re: Phillips hue
- Attachments
-
- LHue.exe.zip
- (133.02 KiB) Downloaded 112 times
Re: Phillips hue
Added the command and response just like you wrote it, but Jarvis just reads (speaks) the response.
ColorSliderLibrary.dll is loaded and enabled ok
LHue is added to the tray menu but not enabled.
When I try to enable it I get an error message:
************** Exception Text **************
System.Exception: Could not load file or assembly 'Q42.HueApi, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
at jarvisWPF.Classes.Plugins.PluginController.LoadPlugin(String FullPathOrName)
at jarvisWPF.MainWindow.PluginSubMenu_DropDownItemClicked(Object sender, ToolStripItemClickedEventArgs e)
at System.Windows.Forms.ToolStripDropDownItem.OnDropDownItemClicked(ToolStripItemClickedEventArgs e)
at System.Windows.Forms.ToolStripDropDownItem.DropDown_ItemClicked(Object sender, ToolStripItemClickedEventArgs e)
at System.Windows.Forms.ToolStrip.OnItemClicked(ToolStripItemClickedEventArgs e)
at System.Windows.Forms.ToolStripDropDown.OnItemClicked(ToolStripItemClickedEventArgs e)
at System.Windows.Forms.ToolStrip.HandleItemClick(ToolStripItem dismissingItem)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
--------------------------------------------------------------------------------------------------------------------------------
Then there are a lot of lines that seems to be ok.
at the end list, this comes (not sure if it has something to say regarding ehe errormessage) :
--------------------------------------------------------------------------------------------------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
ColorSliderLibrary.dll is loaded and enabled ok
LHue is added to the tray menu but not enabled.
When I try to enable it I get an error message:
************** Exception Text **************
System.Exception: Could not load file or assembly 'Q42.HueApi, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
at jarvisWPF.Classes.Plugins.PluginController.LoadPlugin(String FullPathOrName)
at jarvisWPF.MainWindow.PluginSubMenu_DropDownItemClicked(Object sender, ToolStripItemClickedEventArgs e)
at System.Windows.Forms.ToolStripDropDownItem.OnDropDownItemClicked(ToolStripItemClickedEventArgs e)
at System.Windows.Forms.ToolStripDropDownItem.DropDown_ItemClicked(Object sender, ToolStripItemClickedEventArgs e)
at System.Windows.Forms.ToolStrip.OnItemClicked(ToolStripItemClickedEventArgs e)
at System.Windows.Forms.ToolStripDropDown.OnItemClicked(ToolStripItemClickedEventArgs e)
at System.Windows.Forms.ToolStrip.HandleItemClick(ToolStripItem dismissingItem)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
--------------------------------------------------------------------------------------------------------------------------------
Then there are a lot of lines that seems to be ok.
at the end list, this comes (not sure if it has something to say regarding ehe errormessage) :
--------------------------------------------------------------------------------------------------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
Re: Phillips hue
Unload color slider... Only load lhue may need another DLL ... Hmm....
Get Newtonsoft.Json DLL from here
https://github.com/JamesNK/Newtonsoft.Json/releases
Sent from my XT1039 using Tapatalk
Get Newtonsoft.Json DLL from here
https://github.com/JamesNK/Newtonsoft.Json/releases
Sent from my XT1039 using Tapatalk