Announcement

Collapse
No announcement yet.

C# Not compiling on HS3-Pi (HomeTroller Zee S2)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • C# Not compiling on HS3-Pi (HomeTroller Zee S2)

    Is anyone else seeing this issue?

    When I run any .cs file I get compile errors in the log stating multiple references have been made to libraries.

    Code:
    public void AdjustTime(object[] parm) {
        string controlfunction = Convert.ToString(parm[0]);
        //char[] controlfunctions = controlfunction.ToCharArray();
        //if (controlfunctions.Length == 2) {
         //    if ((controlfunctions[0].Equals('-') ||  controlfunctions[0].Equals('+')) &&  (controlfunctions[1].Equals('m') || controlfunctions[1].Equals('h'))) {
        //        DateTime new_alarm_time = Convert.ToDateTime(hs.DeviceString(ALARM_TIME));
    
        //        hs.WriteLog("Speaker Light", "Original end service time is " + new_alarm_time.ToString("h:mm tt"));
                
        //        if (controlfunctions[1].Equals('h')) {
        //            new_alarm_time = new_alarm_time.AddHours((controlfunctions[0].Equals('+'))? 1 : -1);
        //        }
        //        else {
        //            new_alarm_time = new_alarm_time.AddMinutes((controlfunctions[0].Equals('+'))? 5 : -5);
        //        }
            
        //        hs.WriteLog("Speaker Light", "New end service time is " + new_alarm_time.ToString("h:mm tt"));
            
        //        hs.SetDeviceString(ALARM_TIME, new_alarm_time.ToString("h:mm tt"), true);
        //        hs.WriteLog("Speaker Light", " Completed");
        //   }
    
        //}
        hs.WriteLog("SpeakerLight", " THIS IS A TEST");
    }
    I've gone so far as to isolate just the line hs.writeLog(""); and it wont compile

    This is on the Homeseer Zee S2 with HS3-Pi 3.0.0.293

  • #2
    What are you seeing in the logs?

    Comment

    Working...
    X