-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from timia2109/feature/quartz-scheduler
Feature/quartz scheduler
- Loading branch information
Showing
80 changed files
with
501 additions
and
278 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 |
---|---|---|
|
@@ -483,4 +483,5 @@ $RECYCLE.BIN/ | |
# Vim temporary swap files | ||
*.swp | ||
appsettings.Local.json | ||
Resources/* | ||
Resources/* | ||
*.ttf |
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,17 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "build_webserver", | ||
"command": "dotnet", | ||
"type": "process", | ||
"args": [ | ||
"build", | ||
"${workspaceFolder}/DisplayUtil/DisplayUtil.csproj", | ||
"/property:GenerateFullPaths=true", | ||
"/consoleloggerparameters:NoSummary" | ||
], | ||
"problemMatcher": "$msCompile" | ||
} | ||
] | ||
} |
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 |
---|---|---|
@@ -1,29 +1,30 @@ | ||
<Project Sdk="Microsoft.NET.Sdk.Web"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<Nullable>enable</Nullable> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<InvariantGlobalization>false</InvariantGlobalization> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="8.0.0" /> | ||
<PackageReference Include="MQTTnet" Version="4.3.3.952" /> | ||
<PackageReference Include="NetDaemon.Client" Version="24.8.0" /> | ||
<PackageReference Include="NetDaemon.HassModel" Version="24.8.0" /> | ||
<PackageReference Include="Scriban" Version="5.9.1" /> | ||
<PackageReference Include="SkiaSharp" Version="2.88.7" /> | ||
<PackageReference Include="SkiaSharp.Extended" Version="1.60.0" /> | ||
<PackageReference Include="SkiaSharp.Svg" Version="1.60.0" /> | ||
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" /> | ||
<PackageReference Include="SkiaSharp.NativeAssets.Linux" Version="2.88.7" /> | ||
</ItemGroup> | ||
|
||
<!--<ItemGroup> | ||
<Content Include="Resources\**\*.*"> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</Content> | ||
</ItemGroup>--> | ||
|
||
<Project Sdk="Microsoft.NET.Sdk.Web"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<Nullable>enable</Nullable> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<InvariantGlobalization>false</InvariantGlobalization> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="8.0.0" /> | ||
<PackageReference Include="MQTTnet" Version="4.3.3.952" /> | ||
<PackageReference Include="NetDaemon.Client" Version="24.16.0" /> | ||
<PackageReference Include="NetDaemon.HassModel" Version="24.16.0" /> | ||
<PackageReference Include="Quartz.Extensions.Hosting" Version="3.8.1" /> | ||
<PackageReference Include="Scriban" Version="5.9.1" /> | ||
<PackageReference Include="SkiaSharp" Version="2.88.7" /> | ||
<PackageReference Include="SkiaSharp.Extended" Version="1.60.0" /> | ||
<PackageReference Include="SkiaSharp.Svg" Version="1.60.0" /> | ||
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" /> | ||
<PackageReference Include="SkiaSharp.NativeAssets.Linux" Version="2.88.7" /> | ||
</ItemGroup> | ||
|
||
<!--<ItemGroup> | ||
<Content Include="Resources\**\*.*"> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</Content> | ||
</ItemGroup>--> | ||
|
||
</Project> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,32 @@ | ||
using DisplayUtil.Template; | ||
using Scriban.Runtime; | ||
|
||
namespace DisplayUtil.MqttExport; | ||
|
||
/// <summary> | ||
/// Provides the publish_mqtt_template function to Jobs | ||
/// </summary> | ||
/// <param name="setter"></param> | ||
public class MqttTemplateExtender( | ||
MqttUrlRenderer setter | ||
) : ITemplateExtender | ||
{ | ||
public void Enrich( | ||
ScriptObject scriptObject, | ||
EnrichScope scope) | ||
{ | ||
if (scope != EnrichScope.Job) return; | ||
|
||
scriptObject.Import("publish_mqtt_template", SetMqttTemplate); | ||
} | ||
|
||
private void SetMqttTemplate(string templateId) | ||
{ | ||
_ = SetMqttTemplateAsync(templateId.Trim()); | ||
} | ||
|
||
private async Task SetMqttTemplateAsync(string templateId) | ||
{ | ||
await setter.GenerateUrlAndPublish(templateId); | ||
} | ||
} |
Oops, something went wrong.