I'm trying to get InitialState.com graphs working using my HS3 Zee S2 (which is linux and thus doesn't have vb) plus it would seem that C# is much faster on linux anyway.
So I have a simple Immediate script event triggered every time the temperature of a device changes.
But I can't get the script to work.
I get the following error:
I removed my keys from the script for privacy.
The problem is that the "FRTemp="&fhs.DeviceValueEx(403) isn't being recognized as a function call within the call to the URLAction.
Is there a trick or some quoting or something I need to wrap around it?
So I have a simple Immediate script event triggered every time the temperature of a device changes.
But I can't get the script to work.
I get the following error:
Code:
Dec-31 10:06:04 Error Running C# script statement: {interactive}(10,145): error CS0103: The name `fhs' does not exist in the current context {interactive}(10,149): error CS0023: The `.' operator cannot be applied to operand of type `' {interactive}(10,7): error CS1502: The best overloaded method match for `Scheduler.hsapplication.URLAction(string, string, string, string)' has some invalid arguments {interactive}(5,17): warning CS0414: The private field `Script.hs' is assigned but its value is never used Dec-31 10:06:04 SCRIPT hs.URLAction("https://groker.initialstate.com/api/events?accessKey=removed&bucketKey=removed","POST","FRTemp="&fhs.DeviceValueEx(403),""); Dec-31 10:06:04 Event Running script statement immediately: &shs.URLAction("https://groker.initialstate.com/api/events?accessKey=removed&bucketKey=removed","POST","FRTemp="&fhs.DeviceValueEx(403),"");
The problem is that the "FRTemp="&fhs.DeviceValueEx(403) isn't being recognized as a function call within the call to the URLAction.
Is there a trick or some quoting or something I need to wrap around it?
Comment