-
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
920a2c3
commit 3a4adfd
Showing
17 changed files
with
72 additions
and
197 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Developing NetDaemon | ||
These instructions are for developing NetDaemon. For apps please use [the docs](https://netdaemon.xyz). | ||
|
||
## Setup the environment vars | ||
Easiest is to setup environment varables for your Home Assistant instance | ||
|
||
| Environment variable | Description | | ||
| ------ | ------ | | ||
| HOMEASSISTANT__TOKEN | Token secret to access the HA instance | ||
| | ||
| HOMEASSISTANT__HOST | The ip or hostname of HA | ||
| HOMEASSISTANT__PORT | The port of home assistant (defaults to 8123 if not specified) | | ||
| NETDAEMON__GENERATEENTITIES | Generate entities, recommed set false unless debugging| | ||
| NETDAEMON__SOURCEFOLDER | The folder where it will find the source code. Set this to empty `""` to debug apps local. If needed to debug the dynamic source compilation, set to `/workspaces/netdaemon/Service/apps` | ||
|
||
Use `src/Service/apps` as starting point to debug your stuff! | ||
|
||
Good luck |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
2 changes: 1 addition & 1 deletion
2
...er/Service/Infrastructure/HassioConfig.cs → ...ner/Infrastructure/Config/HassioConfig.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
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
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System.Threading.Tasks; | ||
using System.Linq; | ||
using System; | ||
using System.Reactive.Linq; | ||
using System.Collections.Generic; | ||
using NetDaemon.Common.Reactive; | ||
using NetDaemon.Common; | ||
|
||
namespace Debug | ||
{ | ||
|
||
/// <summary> Use this class as startingpoint for debugging </summary> | ||
public class DebugApp : NetDaemonRxApp | ||
{ | ||
|
||
public override void Initialize() | ||
{ | ||
RunEvery(TimeSpan.FromSeconds(5), () => Log("Hello world!")); | ||
} | ||
|
||
[HomeAssistantServiceCall] | ||
public void CallMeFromHass(dynamic data) | ||
{ | ||
Log("A call from hass! {data}", data); | ||
} | ||
} | ||
|
||
} |
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,2 @@ | ||
debug_app: | ||
class: Debug.DebugApp |
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,4 @@ | ||
# Service project | ||
This is the startup project for NetDaemon service. You can use this as debugger of NetDaemon. Provided in `apps` folder there are apps that can be used as starting point for debugging. These are not moved to output folder or publish folder. | ||
|
||
See `Dev.md` for details how to setup debugging of this project |