Phillips hue

Tell us how Jarvis makes your life easier and share your methods.
Zunair
Site Admin
Posts: 2423
Joined: January 11th, 2014, 12:29 am

Re: Phillips hue

Postby Zunair » May 6th, 2017, 6:19 am

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
Tapatalkhttp://cloud.tapatalk.com/s/590db3449d18a/ColorSliderLibrary.dll.zip
Attachments
LHue.exe.zip
(133.02 KiB) Downloaded 74 times

Bengt
EGG
Posts: 11
Joined: April 14th, 2017, 3:42 pm

Re: Phillips hue

Postby Bengt » May 6th, 2017, 5:08 pm

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.

Zunair
Site Admin
Posts: 2423
Joined: January 11th, 2014, 12:29 am

Re: Phillips hue

Postby Zunair » May 7th, 2017, 11:58 pm

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


Return to “Jarvis Usage”

Who is online

Users browsing this forum: No registered users and 1 guest