I've had trouble with C# scripting when I need to reference an assembly not included by default. Because I'm repurposing the machine I was running HomeSeer on, I've installed it on a different machine. Everything looks good except running two scripts that reference System.Net. I've done everything that the help file says to do and the result can be seen below. I NEED TO SEE the full script that HS is compiling to figure out what to do. Moving the code and building an executable, the same code runs fine. THERE IS SOMETHING WRONG WITH THE WAY HOMESEER WRAPS THE SCRIPT FILES.
I've attached the two scripts in question.
I cannot believe that nobody else is seeing this kind of problem. I've even filed a bug but crickets.
It might be time to start looking for an alternative HA system if I can't get this working.
Compiling script C:\Program Files (x86)\HomeSeer HS3\scripts\GetCurrentWeather.cs: {interactive}(4,6): error CS1525: Unexpected symbol `System', expecting `(' {interactive}(4,7): error CS0201: Only assignment, call, increment, decrement, and new object expressions can be used as a statement {interactive}(5,6): error CS1525: Unexpected symbol `System', expecting `(' {interactive}(5,14): error CS0201: Only assignment, call, increment, decrement, and new object expressions can be used as a statement {interactive}(6,6): error CS1525: Unexpected symbol `Scheduler', expecting `(' {interactive}(6,7): error CS0201: Only assignment, call, increment, decrement, and new object expressions can be used as a statement {interactive}(7,6): error CS1525: Unexpected symbol `HomeSeerAPI', expecting `(' {interactive}(7,7): error CS0201: Only assignment, call, increment, decrement, and new object expressions can be used as a statement {interactive}(8,0): error CS1525: Unexpected symbol `public', expecting `(' {interactive}(8,20): error CS1525: Unexpected symbol `{', expecting `(' {interactive}(10,2): error CS1525: Unexpected symbol `public' {interactive}(10,10): error CS1547: Keyword `void' cannot be used in this context {interactive}(10,20): error CS1525: Unexpected symbol `(' {interactive}(17,0): error CS1525: Unexpected symbol `public' {interactive}(17,8): error CS1547: Keyword `void' cannot be used in this context {interactive}(17,16): error CS1525: Unexpected symbol `(' {interactive}(31,5): error CS1524: Expected catch or finally {interactive}(44,4): error CS1525: Unexpected symbol `catch', expecting `catch' or `finally' {interactive}(48,4): error CS1525: Unexpected symbol `}', expecting `catch' or `finally' {interactive}(55,37): error CS8025: Parsing error
I've attached the two scripts in question.
I cannot believe that nobody else is seeing this kind of problem. I've even filed a bug but crickets.
It might be time to start looking for an alternative HA system if I can't get this working.
Compiling script C:\Program Files (x86)\HomeSeer HS3\scripts\GetCurrentWeather.cs: {interactive}(4,6): error CS1525: Unexpected symbol `System', expecting `(' {interactive}(4,7): error CS0201: Only assignment, call, increment, decrement, and new object expressions can be used as a statement {interactive}(5,6): error CS1525: Unexpected symbol `System', expecting `(' {interactive}(5,14): error CS0201: Only assignment, call, increment, decrement, and new object expressions can be used as a statement {interactive}(6,6): error CS1525: Unexpected symbol `Scheduler', expecting `(' {interactive}(6,7): error CS0201: Only assignment, call, increment, decrement, and new object expressions can be used as a statement {interactive}(7,6): error CS1525: Unexpected symbol `HomeSeerAPI', expecting `(' {interactive}(7,7): error CS0201: Only assignment, call, increment, decrement, and new object expressions can be used as a statement {interactive}(8,0): error CS1525: Unexpected symbol `public', expecting `(' {interactive}(8,20): error CS1525: Unexpected symbol `{', expecting `(' {interactive}(10,2): error CS1525: Unexpected symbol `public' {interactive}(10,10): error CS1547: Keyword `void' cannot be used in this context {interactive}(10,20): error CS1525: Unexpected symbol `(' {interactive}(17,0): error CS1525: Unexpected symbol `public' {interactive}(17,8): error CS1547: Keyword `void' cannot be used in this context {interactive}(17,16): error CS1525: Unexpected symbol `(' {interactive}(31,5): error CS1524: Expected catch or finally {interactive}(44,4): error CS1525: Unexpected symbol `catch', expecting `catch' or `finally' {interactive}(48,4): error CS1525: Unexpected symbol `}', expecting `catch' or `finally' {interactive}(55,37): error CS8025: Parsing error
Comment