May 13 2018 edit: Solution for a Zee-S2 involves adding "New Object()" in the text string. For example with Device 126, 2 days line graph:
<img src='http://192.168.1.200/[$SCRIPT=&nhs.PluginFunction("Device History","","CreateChartByDays", New Object() {"126", "2", "", "", "2", "false", "320", "240"})]' />
- - - - - - - - - - - - - - -
Hopefully this is a simple edit... I tried following the HSTouch example from the Device History help file, but always get the same error in HomeSeer:
Compiling script /tmp/K2.vb: Visual Basic.Net Compiler version 0.0.0.5943 Copyright (C) 2004-2010 Rolf Bjarne Kvinge. All rights reserved. /tmp/19070578/6304ec00.0.vb (2,16) : Warning VBNC40056: The import 'System.Core' could not be found. /tmp/19070578/6304ec00.0.vb (19,9) : Warning VBNC42024: Function without an 'As' clause; Object return type assumed. /tmp/19070578/6304ec00.0.vb (21,42) : Error VBNC99999: Internal compiler error close to this location Error : VBNC99999: Unexpected error: Object reference not set to an instance of an object at vbnc.Argument.ResolveCode (vbnc.ResolveInfo Info) [0x00000] in :0 at vbnc.BaseObjects`1[vbnc.Argument].ResolveCode (vbnc.ResolveInfo Info) [0x00000] in :0 at vbnc.ArgumentList.ResolveCode (vbnc.ResolveInfo Info) [0x00000] in :0 at vbnc.InvocationOrIndexExpression.ResolveExpressionInternal (vbnc.ResolveInfo Info) [0x00000] in :0 at vbnc.Expression.ResolveExpression (vbnc.ResolveInfo ResolveInfo) [0x00000] in :0 Compilation took 00:00:04.3367470
This happens when I use any of the following as the text for an isHTML field in HSTouch:
<img src='http://192.168.1.200/[$SCRIPT=&nhs.PluginFunction("Device History","","CreateChartByDays",{"126", "1", "", "", "2", "false", "170", "120"})]' />
<img src='http://192.168.1.200/[$SCRIPT=&nhs.PluginFunction("Device History","","CreateChartByDays",{"126", "1"})]' />
Where 192.168.1.200 is my local Zee-S2, and 126 is the device I want to graph (which is configured under Device History).
System Info:
Current Date/Time: 3/31/2018 12:15:03 PM
HomeSeer Version: HS3 ZEE S2 Edition 3.0.0.422
Linux version: Linux HomeTrollerZeeS2 4.1.19-v7+ #858 SMP Tue Mar 15 15:56:00 GMT 2016 armv7l GNU/Linux System Uptime: 0 Days 14 Hours 37 Minutes 48 Seconds
IP Address: 192.168.1.200
Number of Devices: 92
Number of Events: 17
Available Threads: 399
HSTouch Enabled: True
Event Threads: 0
Event Trigger Eval Queue: 0
Event Trigger Priority Eval Queue: 0
Device Exec Queue: 0
HSTouch Event Queue: 0
Email Send Queue: 0
Anti Virus Installed:
License: Registered
Web Server Port: 80
Enabled Plug-Ins
1.2.2.0: Device History
3.0.0.31: Nest
3.0.1.190: Z-Wave
PS: Viewing a graph from the Device History page in HomeSeer works fine
<img src='http://192.168.1.200/[$SCRIPT=&nhs.PluginFunction("Device History","","CreateChartByDays", New Object() {"126", "2", "", "", "2", "false", "320", "240"})]' />
- - - - - - - - - - - - - - -
Hopefully this is a simple edit... I tried following the HSTouch example from the Device History help file, but always get the same error in HomeSeer:
Compiling script /tmp/K2.vb: Visual Basic.Net Compiler version 0.0.0.5943 Copyright (C) 2004-2010 Rolf Bjarne Kvinge. All rights reserved. /tmp/19070578/6304ec00.0.vb (2,16) : Warning VBNC40056: The import 'System.Core' could not be found. /tmp/19070578/6304ec00.0.vb (19,9) : Warning VBNC42024: Function without an 'As' clause; Object return type assumed. /tmp/19070578/6304ec00.0.vb (21,42) : Error VBNC99999: Internal compiler error close to this location Error : VBNC99999: Unexpected error: Object reference not set to an instance of an object at vbnc.Argument.ResolveCode (vbnc.ResolveInfo Info) [0x00000] in :0 at vbnc.BaseObjects`1[vbnc.Argument].ResolveCode (vbnc.ResolveInfo Info) [0x00000] in :0 at vbnc.ArgumentList.ResolveCode (vbnc.ResolveInfo Info) [0x00000] in :0 at vbnc.InvocationOrIndexExpression.ResolveExpressionInternal (vbnc.ResolveInfo Info) [0x00000] in :0 at vbnc.Expression.ResolveExpression (vbnc.ResolveInfo ResolveInfo) [0x00000] in :0 Compilation took 00:00:04.3367470
This happens when I use any of the following as the text for an isHTML field in HSTouch:
<img src='http://192.168.1.200/[$SCRIPT=&nhs.PluginFunction("Device History","","CreateChartByDays",{"126", "1", "", "", "2", "false", "170", "120"})]' />
<img src='http://192.168.1.200/[$SCRIPT=&nhs.PluginFunction("Device History","","CreateChartByDays",{"126", "1"})]' />
Where 192.168.1.200 is my local Zee-S2, and 126 is the device I want to graph (which is configured under Device History).
System Info:
Current Date/Time: 3/31/2018 12:15:03 PM
HomeSeer Version: HS3 ZEE S2 Edition 3.0.0.422
Linux version: Linux HomeTrollerZeeS2 4.1.19-v7+ #858 SMP Tue Mar 15 15:56:00 GMT 2016 armv7l GNU/Linux System Uptime: 0 Days 14 Hours 37 Minutes 48 Seconds
IP Address: 192.168.1.200
Number of Devices: 92
Number of Events: 17
Available Threads: 399
HSTouch Enabled: True
Event Threads: 0
Event Trigger Eval Queue: 0
Event Trigger Priority Eval Queue: 0
Device Exec Queue: 0
HSTouch Event Queue: 0
Email Send Queue: 0
Anti Virus Installed:
License: Registered
Web Server Port: 80
Enabled Plug-Ins
1.2.2.0: Device History
3.0.0.31: Nest
3.0.1.190: Z-Wave
PS: Viewing a graph from the Device History page in HomeSeer works fine
Comment