-
-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Websocket support * Fix tests * bump gui
- Loading branch information
1 parent
0fe2ec0
commit 10ad07b
Showing
21 changed files
with
692 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
src/App/NetDaemon.App/Common/Configuration/HomeAssistantSettings.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
namespace NetDaemon.Common.Configuration | ||
{ | ||
/// <summary> | ||
/// Home Assistant related settings | ||
/// </summary> | ||
public class HomeAssistantSettings | ||
{ | ||
/// <summary> | ||
/// Home Assistant address | ||
/// </summary> | ||
public string Host { get; set; } = "localhost"; | ||
/// <summary> | ||
/// Home Assistant port | ||
/// </summary> | ||
public short Port { get; set; } = 8123; | ||
/// <summary> | ||
/// Connect using ssl | ||
/// </summary> | ||
public bool Ssl { get; set; } = false; | ||
/// <summary> | ||
/// Token to authorize | ||
/// </summary> | ||
public string Token { get; set; } = string.Empty; | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
src/App/NetDaemon.App/Common/Configuration/NetDaemonSettings.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
namespace NetDaemon.Common.Configuration | ||
{ | ||
/// <summary> | ||
/// Settings related to NetDaemon instance | ||
/// </summary> | ||
public class NetDaemonSettings | ||
{ | ||
/// <summary> | ||
/// Set true to generate entieies from Home Assistant | ||
/// </summary> | ||
public bool? GenerateEntities { get; set; } = false; | ||
/// <summary> | ||
/// If Admin gui would be used | ||
/// </summary> | ||
public bool? Admin { get; set; } = false; | ||
/// <summary> | ||
/// Where the apps are found | ||
/// </summary> | ||
public string? SourceFolder { get; set; } = null; | ||
/// <summary> | ||
/// Points to non default csproj file | ||
/// </summary> | ||
public string? ProjectFolder { get; set; } = string.Empty; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
using NetDaemon.Common.Configuration; | ||
|
||
namespace NetDaemon.Common | ||
{ | ||
|
||
/// <summary> | ||
/// Base class for all external events | ||
/// </summary> | ||
public class ExternalEventBase | ||
{ | ||
|
||
} | ||
|
||
/// <summary> | ||
/// Sent when app information are changed in the netdaemon | ||
/// </summary> | ||
public class AppsInformationEvent : ExternalEventBase | ||
{ | ||
|
||
} | ||
|
||
|
||
/// <summary> | ||
/// Information about the application | ||
/// </summary> | ||
public class ApplicationInfo | ||
{ | ||
/// <summary> | ||
/// Unique id | ||
/// </summary> | ||
public string? Id { get; set; } | ||
/// <summary> | ||
/// All application dependencies | ||
/// </summary> | ||
public IEnumerable<string>? Dependencies { get; set; } | ||
|
||
/// <summary> | ||
/// If app is enabled or disabled | ||
/// </summary> | ||
public bool IsEnabled { get; set; } | ||
|
||
/// <summary> | ||
/// Application description | ||
/// </summary> | ||
public string? Description { get; set; } | ||
|
||
/// <summary> | ||
/// Next scheduled event | ||
/// </summary> | ||
public DateTime? NextScheduledEvent { get; set; } | ||
|
||
/// <summary> | ||
/// Last known error message | ||
/// </summary> | ||
public string? LastErrorMessage { get; set; } | ||
|
||
} | ||
|
||
/// <summary> | ||
/// All config information | ||
/// </summary> | ||
public class ConfigInfo | ||
{ | ||
/// <summary> | ||
/// Settings for NetDaemon | ||
/// </summary> | ||
public NetDaemonSettings? DaemonSettings { get; set; } | ||
/// <summary> | ||
/// Settings Home Assistant related | ||
/// </summary> | ||
public HomeAssistantSettings? HomeAssistantSettings { get; set; } | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
93 changes: 0 additions & 93 deletions
93
src/DaemonRunner/DaemonRunner/Service/API/ApiController.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.