-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Debug Marker Fixes And Test Enviroment
- Loading branch information
1 parent
ba8c82b
commit f97dbf6
Showing
7 changed files
with
203 additions
and
23 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
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,13 @@ | ||
| ||
|
||
using HADC_REBORN.Class.Helpers; | ||
|
||
YamlLoader yaml = new YamlLoader("./configuration.yaml"); | ||
|
||
|
||
|
||
|
||
// See https://aka.ms/new-console-template for more information | ||
Console.WriteLine("Hello, World!"); | ||
|
||
Console.WriteLine(Newtonsoft.Json.JsonConvert.SerializeObject(yaml.getConfigurationData())); |
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,20 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFramework>net8.0-windows10.0.17763.0</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\HADC_REBORN\HADC_REBORN.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<None Update="configuration.yaml"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
</None> | ||
</ItemGroup> | ||
|
||
</Project> |
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,120 @@ | ||
|
||
websocket: true | ||
# ip_location: false | ||
debug: true | ||
# keys: false | ||
|
||
sensor: | ||
- platform: wmic | ||
wmic_class: Win32_LogicalDisk | ||
wmic_selector: FreeSpace | ||
wmic_namespace: root\CIMV2 | ||
name: "C Free Disk space" | ||
unique_id: disk_0_space | ||
icon: "mdi:tape-drive" | ||
unit_of_measurement: "GB" | ||
entity_category: "diagnostic" | ||
update_interval: 10 | ||
filters: | ||
- divide: 1073741824 | ||
accuracy_decimals: 1 | ||
- platform: wmic | ||
wmic_class: Win32_Battery | ||
wmic_selector: EstimatedChargeRemaining | ||
wmic_namespace: root\CIMV2 | ||
name: Battery Level | ||
unique_id: battery_level | ||
icon: "mdi:battery" | ||
unit_of_measurement: "%" | ||
device_class: battery | ||
entity_category: "diagnostic" | ||
update_interval: 16 | ||
accuracy_decimals: 0 | ||
- platform: wmic | ||
wmic_class: Win32_Battery | ||
wmic_selector: BatteryStatus | ||
wmic_namespace: root\CIMV2 | ||
name: Battery State | ||
unique_id: battery_state | ||
icon: "mdi:battery-minus" | ||
entity_category: "diagnostic" | ||
value_map: "Unknown|Discharging|On AC|Fully Charged|Low|Critical|Charging|Charging and High|Charging and Low|Charging and Critical|Undefined|Partially Charged" | ||
- platform: wmic | ||
wmic_class: Win32_OperatingSystem | ||
wmic_selector: FreePhysicalMemory | ||
wmic_namespace: root\CIMV2 | ||
name: Free Ram | ||
unique_id: free_ram | ||
unit_of_measurement: "GB" | ||
icon: "mdi:clock" | ||
entity_category: "diagnostic" | ||
update_interval: 10 | ||
filters: | ||
- divide: 1000000 | ||
accuracy_decimals: 1 | ||
- platform: wmic | ||
wmic_class: Win32_Processor | ||
wmic_selector: LoadPercentage | ||
wmic_namespace: root\CIMV2 | ||
name: CPU Usage | ||
unique_id: cpu_usage | ||
unit_of_measurement: "%" | ||
icon: "mdi:cpu-64-bit" | ||
entity_category: "diagnostic" | ||
accuracy_decimals: 0 | ||
update_interval: 10 | ||
- platform: network_interface | ||
selector: "State" | ||
name: Wifi State | ||
unique_id: wifi_state | ||
icon: "mdi:wifi" | ||
update_interval: 10 | ||
- platform: network_interface | ||
selector: "SSID" | ||
deselector: "BSSID" | ||
name: Wifi SSID | ||
unique_id: wifi_ssid | ||
icon: "mdi:wifi" | ||
update_interval: 10 | ||
- platform: current_window | ||
name: Currently Active Window | ||
unique_id: currently_active_window | ||
icon: "mdi:application" | ||
update_interval: 20 | ||
- platform: uptime | ||
name: Uptime | ||
unique_id: uptime | ||
icon: "mdi:timer-outline" | ||
unit_of_measurement: "h" | ||
entity_category: "diagnostic" | ||
accuracy_decimals: 0 | ||
|
||
binary_sensor: | ||
- platform: consent_store | ||
consent_category: webcam | ||
name: Camera in use | ||
unique_id: camera_in_use | ||
icon: "mdi:camera" | ||
- platform: consent_store | ||
consent_category: microphone | ||
name: Microphone in use | ||
unique_id: microphone_in_use | ||
icon: "mdi:microphone" | ||
- platform: consent_store | ||
consent_category: location | ||
name: Location in use | ||
unique_id: location_in_use | ||
icon: "mdi:crosshairs-gps" | ||
- platform: wmic | ||
wmic_class: BatteryStatus | ||
wmic_selector: PowerOnline | ||
wmic_namespace: root\wmi | ||
name: Is Charging | ||
unique_id: is_charging | ||
icon: "mdi:power-plug-off" | ||
device_class: plug | ||
- platform: restart_pending | ||
name: Restart required | ||
unique_id: restart_pending | ||
icon: "mdi:restart" | ||
entity_category: "diagnostic" |