tie namespace and assembly names to directory structure
This commit is contained in:
parent
599b23da2c
commit
955b0e7118
|
@ -3,13 +3,14 @@
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Company>InnovEnergy</Company>
|
<Company>InnovEnergy</Company>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<LangVersion>default</LangVersion>
|
<LangVersion>preview</LangVersion>
|
||||||
<IsTrimmable>true</IsTrimmable>
|
<IsTrimmable>true</IsTrimmable>
|
||||||
<RootNamespace>InnovEnergy</RootNamespace>
|
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<TargetFramework>net6.0</TargetFramework>
|
<TargetFramework>net6.0</TargetFramework>
|
||||||
<InvariantGlobalization>true</InvariantGlobalization>
|
<InvariantGlobalization>true</InvariantGlobalization>
|
||||||
<SuppressTrimAnalysisWarnings>false</SuppressTrimAnalysisWarnings>
|
<SuppressTrimAnalysisWarnings>false</SuppressTrimAnalysisWarnings>
|
||||||
|
<RootNamespace>$(Company).$(MSBuildProjectDirectory.Replace($(SolutionDir), "").Replace("lib/", "Lib/").Replace("app/", "App/").Replace("src/", "").Replace("/","."))</RootNamespace>
|
||||||
|
<Authors>$(Company) Team</Authors>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
@ -65,7 +65,7 @@ EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Backend", "app/Backend/Backend.csproj", "{A56F58C2-B265-435B-A985-53B4D6F49B1A}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Backend", "app/Backend/Backend.csproj", "{A56F58C2-B265-435B-A985-53B4D6F49B1A}"
|
||||||
EndProject
|
EndProject
|
||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Units", "lib/Units/Units.csproj", "{C04FB6DA-23C6-46BB-9B21-8F4FBA32FFF7}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StatusData", "lib\StatusData\StatusData.csproj", "{C04FB6DA-23C6-46BB-9B21-8F4FBA32FFF7}"
|
||||||
EndProject
|
EndProject
|
||||||
|
|
||||||
Global
|
Global
|
||||||
|
|
|
@ -1,12 +1,5 @@
|
||||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||||
|
<Import Project="../InnovEnergy.app.props" />
|
||||||
<PropertyGroup>
|
|
||||||
<TargetFramework>net6.0</TargetFramework>
|
|
||||||
<Nullable>enable</Nullable>
|
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
|
||||||
<LangVersion>preview</LangVersion>
|
|
||||||
<RootNamespace>Innovenergy.Backend</RootNamespace>
|
|
||||||
</PropertyGroup>
|
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Flurl.Http" Version="3.2.4" />
|
<PackageReference Include="Flurl.Http" Version="3.2.4" />
|
||||||
|
@ -28,17 +21,10 @@
|
||||||
<PackageReference Include="Swashbuckle.AspNetCore.Filters.Abstractions" Version="7.0.6" />
|
<PackageReference Include="Swashbuckle.AspNetCore.Filters.Abstractions" Version="7.0.6" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
|
||||||
<Reference Include="AWSSDK.Core">
|
|
||||||
<HintPath>..\..\..\..\..\..\.nuget\packages\awssdk.core\3.7.8.10\lib\netcoreapp3.1\AWSSDK.Core.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="SQLite-net">
|
|
||||||
<HintPath>..\..\..\..\..\.nuget\packages\sqlite-net-pcl\1.8.116\lib\netstandard2.0\SQLite-net.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
</ItemGroup>
|
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\..\lib\WebServer\WebServer.csproj" />
|
<ProjectReference Include="..\..\lib\Utils\Utils.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
using CliWrap;
|
using CliWrap;
|
||||||
using CliWrap.Buffered;
|
using CliWrap.Buffered;
|
||||||
using InnovEnergy.Lib.Utils;
|
using InnovEnergy.Lib.Utils;
|
||||||
using static InnovEnergy.BmsTunnel.CliPrograms;
|
using static InnovEnergy.App.BmsTunnel.CliPrograms;
|
||||||
|
|
||||||
namespace InnovEnergy.BmsTunnel;
|
namespace InnovEnergy.App.BmsTunnel;
|
||||||
|
|
||||||
using Nodes = IReadOnlyList<Byte>;
|
using Nodes = IReadOnlyList<Byte>;
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ using System.Text;
|
||||||
using CliWrap.Buffered;
|
using CliWrap.Buffered;
|
||||||
using InnovEnergy.Lib.Utils;
|
using InnovEnergy.Lib.Utils;
|
||||||
|
|
||||||
namespace InnovEnergy.BmsTunnel;
|
namespace InnovEnergy.App.BmsTunnel;
|
||||||
|
|
||||||
|
|
||||||
public class BmsTunnel : IDisposable
|
public class BmsTunnel : IDisposable
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<Import Project="../InnovEnergy.app.props" />
|
<Import Project="../InnovEnergy.app.props" />
|
||||||
|
|
||||||
<PropertyGroup>
|
|
||||||
<RootNamespace>InnovEnergy.BmsTunnel</RootNamespace>
|
|
||||||
</PropertyGroup>
|
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="CliWrap" Version="3.6.0" />
|
<PackageReference Include="CliWrap" Version="3.6.0" />
|
||||||
<PackageReference Include="System.IO.Ports" Version="7.0.0" />
|
<PackageReference Include="System.IO.Ports" Version="7.0.0" />
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
using CliWrap;
|
using CliWrap;
|
||||||
|
|
||||||
namespace InnovEnergy.BmsTunnel;
|
namespace InnovEnergy.App.BmsTunnel;
|
||||||
|
|
||||||
public static class CliPrograms
|
public static class CliPrograms
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
using InnovEnergy.Lib.Utils;
|
using InnovEnergy.Lib.Utils;
|
||||||
using static System.String;
|
using static System.String;
|
||||||
|
|
||||||
namespace InnovEnergy.BmsTunnel;
|
namespace InnovEnergy.App.BmsTunnel;
|
||||||
|
|
||||||
public static class Program
|
public static class Program
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<Import Project="../InnovEnergy.app.props" />
|
<Import Project="../InnovEnergy.app.props" />
|
||||||
|
|
||||||
<PropertyGroup>
|
|
||||||
<RootNamespace>InnovEnergy.Collector</RootNamespace>
|
|
||||||
</PropertyGroup>
|
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="../../lib/Utils/Utils.csproj" />
|
<ProjectReference Include="../../lib/Utils/Utils.csproj" />
|
||||||
<ProjectReference Include="../../lib/WebServer/WebServer.csproj" />
|
<ProjectReference Include="../../lib/WebServer/WebServer.csproj" />
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
using System.Net;
|
using System.Net;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using InnovEnergy.Collector.Influx;
|
using InnovEnergy.App.Collector.Influx;
|
||||||
using InnovEnergy.Collector.Records;
|
using InnovEnergy.App.Collector.Records;
|
||||||
using InnovEnergy.Collector.Utils;
|
using InnovEnergy.App.Collector.Utils;
|
||||||
using InnovEnergy.Lib.Utils;
|
using InnovEnergy.Lib.Utils;
|
||||||
using InnovEnergy.Lib.Utils.Net;
|
using InnovEnergy.Lib.Utils.Net;
|
||||||
using Convert = System.Convert;
|
using Convert = System.Convert;
|
||||||
|
|
||||||
|
|
||||||
namespace InnovEnergy.Collector;
|
namespace InnovEnergy.App.Collector;
|
||||||
|
|
||||||
using Data = IReadOnlyList<String>;
|
using Data = IReadOnlyList<String>;
|
||||||
|
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
using System.Net;
|
using System.Net;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using InnovEnergy.Collector.Influx;
|
using InnovEnergy.App.Collector.Influx;
|
||||||
using InnovEnergy.Collector.Records;
|
using InnovEnergy.App.Collector.Records;
|
||||||
using InnovEnergy.Collector.Utils;
|
using InnovEnergy.App.Collector.Utils;
|
||||||
using InnovEnergy.Lib.Utils;
|
using InnovEnergy.Lib.Utils;
|
||||||
using Convert = System.Convert;
|
using Convert = System.Convert;
|
||||||
|
|
||||||
|
|
||||||
// NOT (YET) USED
|
// NOT (YET) USED
|
||||||
|
|
||||||
namespace InnovEnergy.Collector;
|
namespace InnovEnergy.App.Collector;
|
||||||
|
|
||||||
using Data = IReadOnlyList<String>;
|
using Data = IReadOnlyList<String>;
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ using static System.AttributeTargets;
|
||||||
|
|
||||||
#nullable disable
|
#nullable disable
|
||||||
|
|
||||||
namespace InnovEnergy.Collector.Influx;
|
namespace InnovEnergy.App.Collector.Influx;
|
||||||
|
|
||||||
[AttributeUsage(Property)]
|
[AttributeUsage(Property)]
|
||||||
public class FieldAttribute : Attribute
|
public class FieldAttribute : Attribute
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using InnovEnergy.Collector.Utils;
|
using InnovEnergy.App.Collector.Utils;
|
||||||
using InnovEnergy.Lib.Utils;
|
using InnovEnergy.Lib.Utils;
|
||||||
using static System.Globalization.CultureInfo;
|
using static System.Globalization.CultureInfo;
|
||||||
using static InnovEnergy.Collector.Influx.LineProtocolSyntax;
|
using static InnovEnergy.App.Collector.Influx.LineProtocolSyntax;
|
||||||
|
|
||||||
namespace InnovEnergy.Collector.Influx;
|
namespace InnovEnergy.App.Collector.Influx;
|
||||||
|
|
||||||
public static class InfluxRecord
|
public static class InfluxRecord
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
using System.Diagnostics.CodeAnalysis;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
using static System.Globalization.CultureInfo;
|
using static System.Globalization.CultureInfo;
|
||||||
|
|
||||||
namespace InnovEnergy.Collector.Influx;
|
namespace InnovEnergy.App.Collector.Influx;
|
||||||
|
|
||||||
internal static class LineProtocolSyntax
|
internal static class LineProtocolSyntax
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
using static System.AttributeTargets;
|
using static System.AttributeTargets;
|
||||||
|
|
||||||
namespace InnovEnergy.Collector.Influx;
|
namespace InnovEnergy.App.Collector.Influx;
|
||||||
|
|
||||||
[AttributeUsage(Property)]
|
[AttributeUsage(Property)]
|
||||||
public class TagAttribute : Attribute
|
public class TagAttribute : Attribute
|
||||||
|
|
|
@ -2,17 +2,17 @@
|
||||||
using System.Reactive.Concurrency;
|
using System.Reactive.Concurrency;
|
||||||
using System.Reactive.Linq;
|
using System.Reactive.Linq;
|
||||||
using System.Reactive.Subjects;
|
using System.Reactive.Subjects;
|
||||||
using InnovEnergy.Collector.Influx;
|
|
||||||
using InnovEnergy.Collector.Records;
|
|
||||||
using InnovEnergy.Lib.Utils;
|
|
||||||
using static System.Text.Encoding;
|
|
||||||
using static InnovEnergy.Lib.Utils.ExceptionHandling;
|
|
||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
|
using InnovEnergy.App.Collector.Influx;
|
||||||
|
using InnovEnergy.App.Collector.Records;
|
||||||
|
using InnovEnergy.Lib.Utils;
|
||||||
using InnovEnergy.Lib.Utils.Net;
|
using InnovEnergy.Lib.Utils.Net;
|
||||||
using InnovEnergy.Lib.WebServer;
|
using InnovEnergy.Lib.WebServer;
|
||||||
|
using static System.Text.Encoding;
|
||||||
|
using static InnovEnergy.Lib.Utils.ExceptionHandling;
|
||||||
|
|
||||||
|
|
||||||
namespace InnovEnergy.Collector;
|
namespace InnovEnergy.App.Collector;
|
||||||
|
|
||||||
// TODO: net6
|
// TODO: net6
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
using InnovEnergy.Collector.Influx;
|
using InnovEnergy.App.Collector.Influx;
|
||||||
|
|
||||||
// ReSharper disable IdentifierTypo
|
// ReSharper disable IdentifierTypo
|
||||||
// ReSharper disable UnusedAutoPropertyAccessor.Global
|
// ReSharper disable UnusedAutoPropertyAccessor.Global
|
||||||
// ReSharper disable InconsistentNaming
|
// ReSharper disable InconsistentNaming
|
||||||
|
|
||||||
namespace InnovEnergy.Collector.Records;
|
namespace InnovEnergy.App.Collector.Records;
|
||||||
|
|
||||||
public class Alarms : BatteryRecord
|
public class Alarms : BatteryRecord
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
namespace InnovEnergy.Collector.Records;
|
namespace InnovEnergy.App.Collector.Records;
|
||||||
|
|
||||||
public abstract class BatteryRecord
|
public abstract class BatteryRecord
|
||||||
{}
|
{}
|
|
@ -1,9 +1,9 @@
|
||||||
using InnovEnergy.Collector.Influx;
|
using InnovEnergy.App.Collector.Influx;
|
||||||
|
|
||||||
// ReSharper disable UnusedAutoPropertyAccessor.Global
|
// ReSharper disable UnusedAutoPropertyAccessor.Global
|
||||||
// ReSharper disable MemberCanBePrivate.Global
|
// ReSharper disable MemberCanBePrivate.Global
|
||||||
|
|
||||||
namespace InnovEnergy.Collector.Records;
|
namespace InnovEnergy.App.Collector.Records;
|
||||||
|
|
||||||
public class BatteryStatus : BatteryRecord
|
public class BatteryStatus : BatteryRecord
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
using InnovEnergy.Collector.Influx;
|
using InnovEnergy.App.Collector.Influx;
|
||||||
|
|
||||||
// ReSharper disable UnusedAutoPropertyAccessor.Global
|
// ReSharper disable UnusedAutoPropertyAccessor.Global
|
||||||
|
|
||||||
namespace InnovEnergy.Collector.Records;
|
namespace InnovEnergy.App.Collector.Records;
|
||||||
|
|
||||||
public class Error : BatteryRecord
|
public class Error : BatteryRecord
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
using InnovEnergy.Collector.Influx;
|
using InnovEnergy.App.Collector.Influx;
|
||||||
|
|
||||||
namespace InnovEnergy.Collector.Records;
|
namespace InnovEnergy.App.Collector.Records;
|
||||||
|
|
||||||
public class InstallationStatus : BatteryRecord
|
public class InstallationStatus : BatteryRecord
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
using InnovEnergy.Collector.Influx;
|
using InnovEnergy.App.Collector.Influx;
|
||||||
|
|
||||||
// ReSharper disable UnusedAutoPropertyAccessor.Global
|
// ReSharper disable UnusedAutoPropertyAccessor.Global
|
||||||
|
|
||||||
namespace InnovEnergy.Collector.Records;
|
namespace InnovEnergy.App.Collector.Records;
|
||||||
|
|
||||||
public class IoStatus : BatteryRecord
|
public class IoStatus : BatteryRecord
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
using InnovEnergy.Collector.Influx;
|
using InnovEnergy.App.Collector.Influx;
|
||||||
|
|
||||||
// ReSharper disable UnusedAutoPropertyAccessor.Global
|
// ReSharper disable UnusedAutoPropertyAccessor.Global
|
||||||
// ReSharper disable UnusedMember.Global
|
// ReSharper disable UnusedMember.Global
|
||||||
|
|
||||||
namespace InnovEnergy.Collector.Records;
|
namespace InnovEnergy.App.Collector.Records;
|
||||||
|
|
||||||
public class Leds : BatteryRecord
|
public class Leds : BatteryRecord
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
using InnovEnergy.Collector.Influx;
|
using InnovEnergy.App.Collector.Influx;
|
||||||
|
|
||||||
|
namespace InnovEnergy.App.Collector.Records;
|
||||||
namespace InnovEnergy.Collector.Records;
|
|
||||||
|
|
||||||
|
|
||||||
#pragma warning disable CS8618
|
#pragma warning disable CS8618
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
using InnovEnergy.Collector.Influx;
|
using InnovEnergy.App.Collector.Influx;
|
||||||
|
|
||||||
|
namespace InnovEnergy.App.Collector.Records;
|
||||||
namespace InnovEnergy.Collector.Records;
|
|
||||||
|
|
||||||
#pragma warning disable CS8618
|
#pragma warning disable CS8618
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
using System.Net;
|
using System.Net;
|
||||||
|
|
||||||
namespace InnovEnergy.Collector;
|
namespace InnovEnergy.App.Collector;
|
||||||
|
|
||||||
public static class Settings
|
public static class Settings
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
|
|
||||||
namespace InnovEnergy.Collector.Utils;
|
namespace InnovEnergy.App.Collector.Utils;
|
||||||
|
|
||||||
public static class Extensions
|
public static class Extensions
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
namespace InnovEnergy.Collector.Utils;
|
namespace InnovEnergy.App.Collector.Utils;
|
||||||
|
|
||||||
internal static class Log
|
internal static class Log
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using InnovEnergy.Lib.Utils;
|
using InnovEnergy.Lib.Utils;
|
||||||
|
|
||||||
namespace InnovEnergy.Collector.Utils;
|
namespace InnovEnergy.App.Collector.Utils;
|
||||||
|
|
||||||
public readonly struct Property
|
public readonly struct Property
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
namespace InnovEnergy.Collector.Utils;
|
namespace InnovEnergy.App.Collector.Utils;
|
||||||
|
|
||||||
public static class ReadOnlyListExtensions
|
public static class ReadOnlyListExtensions
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
namespace InnovEnergy.Collector.Utils;
|
namespace InnovEnergy.App.Collector.Utils;
|
||||||
|
|
||||||
public static class Utils
|
public static class Utils
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using InnovEnergy.Lib.Victron.VeDBus;
|
using InnovEnergy.Lib.Victron.VeDBus;
|
||||||
|
|
||||||
namespace InnovEnergy.EmuMeter;
|
namespace InnovEnergy.App.EmuMeterDriver;
|
||||||
|
|
||||||
public static class Config
|
public static class Config
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,8 +5,7 @@ using InnovEnergy.Lib.Protocols.Modbus.Clients;
|
||||||
using InnovEnergy.Lib.Utils;
|
using InnovEnergy.Lib.Utils;
|
||||||
using InnovEnergy.Lib.Victron.VeDBus;
|
using InnovEnergy.Lib.Victron.VeDBus;
|
||||||
|
|
||||||
|
namespace InnovEnergy.App.EmuMeterDriver;
|
||||||
namespace InnovEnergy.EmuMeter;
|
|
||||||
|
|
||||||
public static class EmuMeterDriver
|
public static class EmuMeterDriver
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<Import Project="../InnovEnergy.app.props" />
|
<Import Project="../InnovEnergy.app.props" />
|
||||||
|
|
||||||
<PropertyGroup>
|
|
||||||
<RootNamespace>InnovEnergy.EmuMeter</RootNamespace>
|
|
||||||
</PropertyGroup>
|
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\..\lib\Devices\EmuMeter\EmuMeter.csproj" />
|
<ProjectReference Include="..\..\lib\Devices\EmuMeter\EmuMeter.csproj" />
|
||||||
<ProjectReference Include="..\..\lib\Protocols\DBus\DBus.csproj" />
|
<ProjectReference Include="..\..\lib\Protocols\DBus\DBus.csproj" />
|
||||||
|
|
|
@ -2,7 +2,7 @@ using System.Text.Json.Nodes;
|
||||||
using CliWrap;
|
using CliWrap;
|
||||||
using CliWrap.Buffered;
|
using CliWrap.Buffered;
|
||||||
|
|
||||||
namespace InnovEnergy.EmuMeter;
|
namespace InnovEnergy.App.EmuMeterDriver;
|
||||||
|
|
||||||
public readonly struct Nic
|
public readonly struct Nic
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
using InnovEnergy.EmuMeter;
|
using InnovEnergy.App.EmuMeterDriver;
|
||||||
using InnovEnergy.Lib.Protocols.DBus;
|
using InnovEnergy.Lib.Protocols.DBus;
|
||||||
using InnovEnergy.Lib.Utils;
|
using InnovEnergy.Lib.Utils;
|
||||||
using InnovEnergy.Lib.Utils.Net;
|
using InnovEnergy.Lib.Utils.Net;
|
||||||
|
|
|
@ -2,7 +2,7 @@ using InnovEnergy.Lib.Devices.EmuMeter;
|
||||||
using InnovEnergy.Lib.Protocols.DBus.Protocol.DataTypes;
|
using InnovEnergy.Lib.Protocols.DBus.Protocol.DataTypes;
|
||||||
using InnovEnergy.Lib.Victron.VeDBus;
|
using InnovEnergy.Lib.Victron.VeDBus;
|
||||||
|
|
||||||
namespace InnovEnergy.EmuMeter;
|
namespace InnovEnergy.App.EmuMeterDriver;
|
||||||
|
|
||||||
public record Signal(Func<EmuMeterStatus, Object> Source, ObjectPath Path, String Format = "")
|
public record Signal(Func<EmuMeterStatus, Object> Source, ObjectPath Path, String Format = "")
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
namespace InnovEnergy.EmuMeter;
|
namespace InnovEnergy.App.EmuMeterDriver;
|
||||||
|
|
||||||
public static class Utils
|
public static class Utils
|
||||||
{
|
{
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
<PublishSingleFile>true</PublishSingleFile>
|
<PublishSingleFile>true</PublishSingleFile>
|
||||||
<PublishReadyToRun>true</PublishReadyToRun>
|
<PublishReadyToRun>true</PublishReadyToRun>
|
||||||
<TrimmerRemoveSymbols>true</TrimmerRemoveSymbols>
|
<TrimmerRemoveSymbols>true</TrimmerRemoveSymbols>
|
||||||
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
|
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
|
||||||
|
@ -20,6 +19,7 @@
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
|
<RootNamespace>InnovEnergy.App.$(AssemblyName)</RootNamespace>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
namespace InnovEnergy.OpenVpnCertificatesServer;
|
namespace InnovEnergy.App.OpenVpnCertificatesServer;
|
||||||
|
|
||||||
using System;
|
|
||||||
|
|
||||||
public static class Files
|
public static class Files
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
namespace InnovEnergy.OpenVpnCertificatesServer;
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Net;
|
using System.Net;
|
||||||
using Flurl;
|
using Flurl;
|
||||||
|
|
||||||
|
namespace InnovEnergy.App.OpenVpnCertificatesServer;
|
||||||
|
|
||||||
public static class Http
|
public static class Http
|
||||||
{
|
{
|
||||||
// TODO: use worker thread
|
// TODO: use worker thread
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<Import Project="../InnovEnergy.app.props" />
|
<Import Project="../InnovEnergy.app.props" />
|
||||||
|
|
||||||
<PropertyGroup>
|
|
||||||
<RootNamespace>InnovEnergy.OpenVpnCertificatesServer</RootNamespace>
|
|
||||||
</PropertyGroup>
|
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="BouncyCastle" Version="1.8.9" />
|
<PackageReference Include="BouncyCastle" Version="1.8.9" />
|
||||||
<PackageReference Include="Flurl.Http" Version="3.2.2" />
|
<PackageReference Include="Flurl.Http" Version="3.2.2" />
|
||||||
|
|
|
@ -7,7 +7,7 @@ using Org.BouncyCastle.Math;
|
||||||
using Org.BouncyCastle.Security;
|
using Org.BouncyCastle.Security;
|
||||||
using Org.BouncyCastle.X509;
|
using Org.BouncyCastle.X509;
|
||||||
|
|
||||||
namespace InnovEnergy.OpenVpnCertificatesServer.PKI;
|
namespace InnovEnergy.App.OpenVpnCertificatesServer.PKI;
|
||||||
|
|
||||||
public static class CertificateAuthority
|
public static class CertificateAuthority
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
using Org.BouncyCastle.OpenSsl;
|
using Org.BouncyCastle.OpenSsl;
|
||||||
|
|
||||||
namespace InnovEnergy.OpenVpnCertificatesServer.PKI;
|
namespace InnovEnergy.App.OpenVpnCertificatesServer.PKI;
|
||||||
|
|
||||||
public static class Pem
|
public static class Pem
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
using Org.BouncyCastle.OpenSsl;
|
using Org.BouncyCastle.OpenSsl;
|
||||||
|
|
||||||
namespace InnovEnergy.OpenVpnCertificatesServer.PKI;
|
namespace InnovEnergy.App.OpenVpnCertificatesServer.PKI;
|
||||||
|
|
||||||
public class PwdFinder : IPasswordFinder
|
public class PwdFinder : IPasswordFinder
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,15 +1,14 @@
|
||||||
using InnovEnergy.Lib.Utils;
|
using System.Diagnostics;
|
||||||
using InnovEnergy.Lib.Victron.VictronVRM;
|
|
||||||
using InnovEnergy.OpenVpnCertificatesServer.PKI;
|
|
||||||
using System.Diagnostics;
|
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using Flurl;
|
using Flurl;
|
||||||
using ICSharpCode.SharpZipLib.Tar;
|
using ICSharpCode.SharpZipLib.Tar;
|
||||||
|
using InnovEnergy.App.OpenVpnCertificatesServer.PKI;
|
||||||
|
using InnovEnergy.Lib.Utils;
|
||||||
|
using InnovEnergy.Lib.Victron.VictronVRM;
|
||||||
using Org.BouncyCastle.Crypto;
|
using Org.BouncyCastle.Crypto;
|
||||||
|
using static InnovEnergy.App.OpenVpnCertificatesServer.PKI.CertificateAuthority;
|
||||||
|
|
||||||
using static InnovEnergy.OpenVpnCertificatesServer.PKI.CertificateAuthority;
|
namespace InnovEnergy.App.OpenVpnCertificatesServer;
|
||||||
|
|
||||||
namespace InnovEnergy.OpenVpnCertificatesServer;
|
|
||||||
|
|
||||||
// dotnet publish OpenVpnCertificatesServer.csproj -c Release -r linux-x64 -p:PublishSingleFile=true --self-contained true && scp bin/Release/net6.0/linux-x64/publish/OpenVpnCertificatesServer ig@salidomo.innovenergy.ch:~/get_cert/get_cert
|
// dotnet publish OpenVpnCertificatesServer.csproj -c Release -r linux-x64 -p:PublishSingleFile=true --self-contained true && scp bin/Release/net6.0/linux-x64/publish/OpenVpnCertificatesServer ig@salidomo.innovenergy.ch:~/get_cert/get_cert
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
namespace InnovEnergy.OpenVpnCertificatesServer;
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using ICSharpCode.SharpZipLib.Tar;
|
using ICSharpCode.SharpZipLib.Tar;
|
||||||
|
|
||||||
|
namespace InnovEnergy.App.OpenVpnCertificatesServer;
|
||||||
|
|
||||||
public static class Utils
|
public static class Utils
|
||||||
{
|
{
|
||||||
public static void WriteFile(this TarOutputStream tar, String fileName, Byte[] contents, Boolean executable = false)
|
public static void WriteFile(this TarOutputStream tar, String fileName, Byte[] contents, Boolean executable = false)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
namespace InnovEnergy.RemoteSupportConsole;
|
namespace InnovEnergy.App.RemoteSupportConsole;
|
||||||
|
|
||||||
public static class Login
|
public static class Login
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,7 +2,7 @@ using System.Reactive.Linq;
|
||||||
using System.Reactive.Threading.Tasks;
|
using System.Reactive.Threading.Tasks;
|
||||||
using CliWrap;
|
using CliWrap;
|
||||||
|
|
||||||
namespace InnovEnergy.RemoteSupportConsole;
|
namespace InnovEnergy.App.RemoteSupportConsole;
|
||||||
|
|
||||||
public static class ObservablePipeSource
|
public static class ObservablePipeSource
|
||||||
{
|
{
|
||||||
|
|
|
@ -4,7 +4,7 @@ using InnovEnergy.Lib.Utils;
|
||||||
using InnovEnergy.Lib.Victron.VictronVRM;
|
using InnovEnergy.Lib.Victron.VictronVRM;
|
||||||
using static System.Globalization.CompareOptions;
|
using static System.Globalization.CompareOptions;
|
||||||
|
|
||||||
namespace InnovEnergy.RemoteSupportConsole;
|
namespace InnovEnergy.App.RemoteSupportConsole;
|
||||||
|
|
||||||
// dotnet publish -c release -r ubuntu-x64
|
// dotnet publish -c release -r ubuntu-x64
|
||||||
// dotnet publish RemoteSupportConsole.csproj -c Release -r linux-x64 -p:PublishSingleFile=true --self-contained true
|
// dotnet publish RemoteSupportConsole.csproj -c Release -r linux-x64 -p:PublishSingleFile=true --self-contained true
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<Import Project="../InnovEnergy.app.props" />
|
<Import Project="../InnovEnergy.app.props" />
|
||||||
|
|
||||||
<PropertyGroup>
|
|
||||||
<RootNamespace>InnovEnergy.RemoteSupportConsole</RootNamespace>
|
|
||||||
</PropertyGroup>
|
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="../../lib/Utils/Utils.csproj" />
|
<ProjectReference Include="../../lib/Utils/Utils.csproj" />
|
||||||
<ProjectReference Include="../../lib/Victron/VictronVRM/VictronVRM.csproj" />
|
<ProjectReference Include="../../lib/Victron/VictronVRM/VictronVRM.csproj" />
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
using CliWrap;
|
using CliWrap;
|
||||||
using InnovEnergy.Lib.Utils;
|
using InnovEnergy.Lib.Utils;
|
||||||
|
|
||||||
namespace InnovEnergy.RemoteSupportConsole;
|
namespace InnovEnergy.App.RemoteSupportConsole;
|
||||||
|
|
||||||
public static class Ssh
|
public static class Ssh
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,7 +2,7 @@ using InnovEnergy.Lib.Utils;
|
||||||
using InnovEnergy.Lib.Victron.VictronVRM;
|
using InnovEnergy.Lib.Victron.VictronVRM;
|
||||||
using static System.ConsoleColor;
|
using static System.ConsoleColor;
|
||||||
|
|
||||||
namespace InnovEnergy.RemoteSupportConsole;
|
namespace InnovEnergy.App.RemoteSupportConsole;
|
||||||
|
|
||||||
public static class VpnConnection
|
public static class VpnConnection
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,7 +2,7 @@ using Flurl;
|
||||||
using Flurl.Http;
|
using Flurl.Http;
|
||||||
using InnovEnergy.Lib.Utils;
|
using InnovEnergy.Lib.Utils;
|
||||||
|
|
||||||
namespace InnovEnergy.RemoteSupportConsole;
|
namespace InnovEnergy.App.RemoteSupportConsole;
|
||||||
|
|
||||||
public static class VpnInfo
|
public static class VpnInfo
|
||||||
{
|
{
|
||||||
|
|
|
@ -7,7 +7,7 @@ using InnovEnergy.Lib.Victron.VictronVRM;
|
||||||
using static System.ConsoleColor;
|
using static System.ConsoleColor;
|
||||||
using static System.StringSplitOptions;
|
using static System.StringSplitOptions;
|
||||||
|
|
||||||
namespace InnovEnergy.RemoteSupportConsole;
|
namespace InnovEnergy.App.RemoteSupportConsole;
|
||||||
|
|
||||||
public static class VrmConnection
|
public static class VrmConnection
|
||||||
{
|
{
|
||||||
|
|
|
@ -3,7 +3,7 @@ using InnovEnergy.Lib.Utils;
|
||||||
using InnovEnergy.Lib.Victron.VictronVRM;
|
using InnovEnergy.Lib.Victron.VictronVRM;
|
||||||
using static System.ConsoleColor;
|
using static System.ConsoleColor;
|
||||||
|
|
||||||
namespace InnovEnergy.RemoteSupportConsole;
|
namespace InnovEnergy.App.RemoteSupportConsole;
|
||||||
|
|
||||||
|
|
||||||
public static class VrmInfo
|
public static class VrmInfo
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
namespace InnovEnergy.RemoteSupportConsole;
|
namespace InnovEnergy.App.RemoteSupportConsole;
|
||||||
|
|
||||||
public readonly record struct VrmProxy(IDisposable Connection, String User, String Host, String Port) : IDisposable
|
public readonly record struct VrmProxy(IDisposable Connection, String User, String Host, String Port) : IDisposable
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<Import Project="../InnovEnergy.app.props" />
|
<Import Project="../InnovEnergy.app.props" />
|
||||||
|
|
||||||
<PropertyGroup>
|
|
||||||
<RootNamespace>InnovEnergy.SaliMax</RootNamespace>
|
|
||||||
</PropertyGroup>
|
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="../../lib/Devices/Adam6060/Adam6060.csproj"/>
|
<ProjectReference Include="../../lib/Devices/Adam6060/Adam6060.csproj"/>
|
||||||
<ProjectReference Include="../../lib/Devices/AMPT/Ampt.csproj"/>
|
<ProjectReference Include="../../lib/Devices/AMPT/Ampt.csproj"/>
|
||||||
|
@ -15,11 +11,14 @@
|
||||||
<ProjectReference Include="../../lib/Devices/Trumpf/TruConvert/TruConvert.csproj"/>
|
<ProjectReference Include="../../lib/Devices/Trumpf/TruConvert/TruConvert.csproj"/>
|
||||||
<ProjectReference Include="../../lib/StatusApi/StatusApi.csproj"/>
|
<ProjectReference Include="../../lib/StatusApi/StatusApi.csproj"/>
|
||||||
<ProjectReference Include="../../lib/Utils/Utils.csproj"/>
|
<ProjectReference Include="../../lib/Utils/Utils.csproj"/>
|
||||||
|
<ProjectReference Include="../../lib/Time/Time.csproj"/>
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
<PackageReference Include="CliWrap" Version="3.6.0"/>
|
<PackageReference Include="CliWrap" Version="3.6.0"/>
|
||||||
<PackageReference Include="DecimalMath.DecimalEx" Version="1.0.2" />
|
|
||||||
<PackageReference Include="Flurl.Http" Version="3.2.4"/>
|
<PackageReference Include="Flurl.Http" Version="3.2.4"/>
|
||||||
<PackageReference Include="System.IO.Ports" Version="7.0.0"/>
|
<PackageReference Include="System.IO.Ports" Version="7.0.0"/>
|
||||||
<ProjectReference Include="..\..\lib\Time\Time.csproj" />
|
<PackageReference Include="DecimalMath.DecimalEx" Version="1.0.2"/>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
using InnovEnergy.Lib.Utils;
|
using InnovEnergy.Lib.Utils;
|
||||||
|
|
||||||
namespace InnovEnergy.SaliMax;
|
namespace InnovEnergy.App.SaliMax;
|
||||||
|
|
||||||
public static class AsciiArt
|
public static class AsciiArt
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
namespace InnovEnergy.SaliMax;
|
namespace InnovEnergy.App.SaliMax;
|
||||||
|
|
||||||
public enum BusPort
|
public enum BusPort
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
using InnovEnergy.Lib.Devices.Battery48TL;
|
using InnovEnergy.Lib.Devices.Battery48TL;
|
||||||
|
|
||||||
namespace InnovEnergy.SaliMax.Controller;
|
namespace InnovEnergy.App.SaliMax.Controller;
|
||||||
|
|
||||||
public class AvgBatteriesStatus
|
public class AvgBatteriesStatus
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
using static InnovEnergy.SaliMax.SystemConfig.SalimaxConfig;
|
namespace InnovEnergy.App.SaliMax.Controller;
|
||||||
|
|
||||||
namespace InnovEnergy.SaliMax.Controller;
|
|
||||||
|
|
||||||
public static class Control
|
public static class Control
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
|
using InnovEnergy.App.SaliMax.SaliMaxRelays;
|
||||||
|
using InnovEnergy.App.SaliMax.SystemConfig;
|
||||||
using InnovEnergy.Lib.Devices.Trumpf.TruConvertAc;
|
using InnovEnergy.Lib.Devices.Trumpf.TruConvertAc;
|
||||||
using InnovEnergy.Lib.Devices.Trumpf.TruConvertDc;
|
using InnovEnergy.Lib.Devices.Trumpf.TruConvertDc;
|
||||||
using InnovEnergy.SaliMax.SaliMaxRelays;
|
|
||||||
using InnovEnergy.SaliMax.SystemConfig;
|
|
||||||
|
|
||||||
namespace InnovEnergy.SaliMax.Controller;
|
namespace InnovEnergy.App.SaliMax.Controller;
|
||||||
|
|
||||||
public class ControlRecord
|
public class ControlRecord
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
namespace InnovEnergy.SaliMax.Controller;
|
namespace InnovEnergy.App.SaliMax.Controller;
|
||||||
|
|
||||||
public enum ControlTarget // TODO to delete
|
public enum ControlTarget // TODO to delete
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
|
using InnovEnergy.App.SaliMax.SaliMaxRelays;
|
||||||
|
using InnovEnergy.App.SaliMax.SystemConfig;
|
||||||
using InnovEnergy.Lib.Devices.Trumpf.TruConvert;
|
using InnovEnergy.Lib.Devices.Trumpf.TruConvert;
|
||||||
using InnovEnergy.Lib.Devices.Trumpf.TruConvertAc;
|
using InnovEnergy.Lib.Devices.Trumpf.TruConvertAc;
|
||||||
using InnovEnergy.Lib.Devices.Trumpf.TruConvertDc;
|
using InnovEnergy.Lib.Devices.Trumpf.TruConvertDc;
|
||||||
|
using InnovEnergy.Lib.Time.Unix;
|
||||||
using InnovEnergy.Lib.Utils;
|
using InnovEnergy.Lib.Utils;
|
||||||
using InnovEnergy.SaliMax.SaliMaxRelays;
|
using static InnovEnergy.App.SaliMax.SaliMaxRelays.RelayState;
|
||||||
using InnovEnergy.SaliMax.SystemConfig;
|
|
||||||
using InnovEnergy.Time.Unix;
|
|
||||||
using static InnovEnergy.SaliMax.SaliMaxRelays.RelayState;
|
|
||||||
|
|
||||||
|
|
||||||
namespace InnovEnergy.SaliMax.Controller;
|
namespace InnovEnergy.App.SaliMax.Controller;
|
||||||
|
|
||||||
public static class Controller
|
public static class Controller
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
namespace InnovEnergy.SaliMax.Controller;
|
namespace InnovEnergy.App.SaliMax.Controller;
|
||||||
|
|
||||||
public struct SaliMaxState
|
public struct SaliMaxState
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
namespace InnovEnergy.SaliMax.Controller;
|
namespace InnovEnergy.App.SaliMax.Controller;
|
||||||
|
|
||||||
public enum State : Int16
|
public enum State : Int16
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
namespace InnovEnergy.SaliMax.Controller;
|
namespace InnovEnergy.App.SaliMax.Controller;
|
||||||
|
|
||||||
public static class StateConfig
|
public static class StateConfig
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
using InnovEnergy.Lib.Devices.Ampt;
|
using InnovEnergy.App.SaliMax.SaliMaxRelays;
|
||||||
|
using InnovEnergy.App.SaliMax.SystemConfig;
|
||||||
|
using InnovEnergy.Lib.Devices.AMPT;
|
||||||
using InnovEnergy.Lib.Devices.Battery48TL;
|
using InnovEnergy.Lib.Devices.Battery48TL;
|
||||||
using InnovEnergy.Lib.Devices.EmuMeter;
|
using InnovEnergy.Lib.Devices.EmuMeter;
|
||||||
using InnovEnergy.Lib.Devices.Trumpf.TruConvertAc;
|
using InnovEnergy.Lib.Devices.Trumpf.TruConvertAc;
|
||||||
using InnovEnergy.Lib.Devices.Trumpf.TruConvertDc;
|
using InnovEnergy.Lib.Devices.Trumpf.TruConvertDc;
|
||||||
using InnovEnergy.SaliMax.SaliMaxRelays;
|
|
||||||
using InnovEnergy.SaliMax.SystemConfig;
|
|
||||||
|
|
||||||
namespace InnovEnergy.SaliMax.Controller;
|
namespace InnovEnergy.App.SaliMax.Controller;
|
||||||
|
|
||||||
public record StatusRecord
|
public record StatusRecord
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
using System.Text.Json.Nodes;
|
using System.Text.Json.Nodes;
|
||||||
using InnovEnergy.Lib.Devices.Ampt;
|
using InnovEnergy.Lib.Devices.AMPT;
|
||||||
using InnovEnergy.Lib.StatusApi;
|
using InnovEnergy.Lib.StatusApi;
|
||||||
|
|
||||||
namespace InnovEnergy.SaliMax.Log;
|
namespace InnovEnergy.App.SaliMax.Log;
|
||||||
|
|
||||||
public static class Ampt
|
public static class Ampt
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,7 +2,7 @@ using System.Text.Json.Nodes;
|
||||||
using InnovEnergy.Lib.Devices.Battery48TL;
|
using InnovEnergy.Lib.Devices.Battery48TL;
|
||||||
using InnovEnergy.Lib.StatusApi;
|
using InnovEnergy.Lib.StatusApi;
|
||||||
|
|
||||||
namespace InnovEnergy.SaliMax.Log;
|
namespace InnovEnergy.App.SaliMax.Log;
|
||||||
|
|
||||||
public static class Battery48Tl
|
public static class Battery48Tl
|
||||||
{
|
{
|
||||||
|
|
|
@ -3,9 +3,9 @@ using InnovEnergy.Lib.Devices.EmuMeter;
|
||||||
using InnovEnergy.Lib.StatusApi;
|
using InnovEnergy.Lib.StatusApi;
|
||||||
using InnovEnergy.Lib.Utils;
|
using InnovEnergy.Lib.Utils;
|
||||||
using static DecimalMath.DecimalEx;
|
using static DecimalMath.DecimalEx;
|
||||||
using static InnovEnergy.SaliMax.Log.JsonUtil;
|
using static InnovEnergy.App.SaliMax.Log.JsonUtil;
|
||||||
|
|
||||||
namespace InnovEnergy.SaliMax.Log;
|
namespace InnovEnergy.App.SaliMax.Log;
|
||||||
|
|
||||||
public static class EmuMeter
|
public static class EmuMeter
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
using System.Text.Json.Nodes;
|
using System.Text.Json.Nodes;
|
||||||
using InnovEnergy.Lib.StatusApi;
|
using InnovEnergy.Lib.StatusApi;
|
||||||
|
|
||||||
namespace InnovEnergy.SaliMax.Log;
|
namespace InnovEnergy.App.SaliMax.Log;
|
||||||
|
|
||||||
public static class JsonUtil
|
public static class JsonUtil
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
using System.Text.Json.Nodes;
|
using System.Text.Json.Nodes;
|
||||||
|
using InnovEnergy.App.SaliMax.Controller;
|
||||||
using InnovEnergy.Lib.StatusApi;
|
using InnovEnergy.Lib.StatusApi;
|
||||||
using InnovEnergy.SaliMax.Controller;
|
using InnovEnergy.Lib.Time.Unix;
|
||||||
using InnovEnergy.Time.Unix;
|
|
||||||
|
|
||||||
namespace InnovEnergy.SaliMax.Log;
|
namespace InnovEnergy.App.SaliMax.Log;
|
||||||
|
|
||||||
public static class Salimax
|
public static class Salimax
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,9 +2,9 @@ using System.Text.Json.Nodes;
|
||||||
using InnovEnergy.Lib.Devices.Trumpf.TruConvertAc;
|
using InnovEnergy.Lib.Devices.Trumpf.TruConvertAc;
|
||||||
using InnovEnergy.Lib.Utils;
|
using InnovEnergy.Lib.Utils;
|
||||||
using static DecimalMath.DecimalEx;
|
using static DecimalMath.DecimalEx;
|
||||||
using static InnovEnergy.SaliMax.Log.JsonUtil;
|
using static InnovEnergy.App.SaliMax.Log.JsonUtil;
|
||||||
|
|
||||||
namespace InnovEnergy.SaliMax.Log;
|
namespace InnovEnergy.App.SaliMax.Log;
|
||||||
|
|
||||||
public static class TruConvertAc
|
public static class TruConvertAc
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
using System.Text.Json.Nodes;
|
using System.Text.Json.Nodes;
|
||||||
using InnovEnergy.Lib.Devices.Trumpf.TruConvertDc;
|
using InnovEnergy.Lib.Devices.Trumpf.TruConvertDc;
|
||||||
using static InnovEnergy.SaliMax.Log.JsonUtil;
|
using static InnovEnergy.App.SaliMax.Log.JsonUtil;
|
||||||
|
|
||||||
namespace InnovEnergy.SaliMax.Log;
|
namespace InnovEnergy.App.SaliMax.Log;
|
||||||
|
|
||||||
using JO = JsonObject;
|
using JO = JsonObject;
|
||||||
|
|
||||||
|
|
|
@ -1,27 +1,23 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using System.Text.Json.Nodes;
|
using System.Text.Json.Nodes;
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
using Flurl.Http;
|
using Flurl.Http;
|
||||||
|
using InnovEnergy.App.SaliMax.Controller;
|
||||||
|
using InnovEnergy.App.SaliMax.Log;
|
||||||
|
using InnovEnergy.App.SaliMax.SaliMaxRelays;
|
||||||
|
using InnovEnergy.App.SaliMax.SystemConfig;
|
||||||
|
using InnovEnergy.Lib.Devices.AMPT;
|
||||||
|
using InnovEnergy.Lib.Devices.Battery48TL;
|
||||||
using InnovEnergy.Lib.Devices.EmuMeter;
|
using InnovEnergy.Lib.Devices.EmuMeter;
|
||||||
using InnovEnergy.Lib.Devices.Trumpf.TruConvertAc;
|
using InnovEnergy.Lib.Devices.Trumpf.TruConvertAc;
|
||||||
using InnovEnergy.Lib.Devices.Trumpf.TruConvertDc;
|
using InnovEnergy.Lib.Devices.Trumpf.TruConvertDc;
|
||||||
using InnovEnergy.Lib.Devices.Ampt;
|
using InnovEnergy.Lib.Time.Unix;
|
||||||
using InnovEnergy.Lib.Devices.Battery48TL;
|
|
||||||
using InnovEnergy.SaliMax.Controller;
|
|
||||||
using InnovEnergy.SaliMax.Log;
|
|
||||||
using InnovEnergy.SaliMax.SaliMaxRelays;
|
|
||||||
using InnovEnergy.SaliMax.SystemConfig;
|
|
||||||
using InnovEnergy.Time.Unix;
|
|
||||||
|
|
||||||
|
|
||||||
#pragma warning disable IL2026
|
#pragma warning disable IL2026
|
||||||
|
|
||||||
|
|
||||||
namespace InnovEnergy.SaliMax;
|
namespace InnovEnergy.App.SaliMax;
|
||||||
|
|
||||||
internal static class Program
|
internal static class Program
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,7 +5,7 @@ using InnovEnergy.Lib.Utils;
|
||||||
using static System.Text.Encoding;
|
using static System.Text.Encoding;
|
||||||
using Convert = System.Convert;
|
using Convert = System.Convert;
|
||||||
|
|
||||||
namespace InnovEnergy.SaliMax;
|
namespace InnovEnergy.App.SaliMax;
|
||||||
|
|
||||||
public record S3Config
|
public record S3Config
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
namespace InnovEnergy.SaliMax.SaliMaxRelays;
|
namespace InnovEnergy.App.SaliMax.SaliMaxRelays;
|
||||||
|
|
||||||
public enum RelayState
|
public enum RelayState
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
using InnovEnergy.Lib.Devices.Adam6060;
|
using InnovEnergy.Lib.Devices.Adam6060;
|
||||||
using InnovEnergy.Lib.Utils;
|
using InnovEnergy.Lib.Utils;
|
||||||
|
|
||||||
namespace InnovEnergy.SaliMax.SaliMaxRelays;
|
namespace InnovEnergy.App.SaliMax.SaliMaxRelays;
|
||||||
|
|
||||||
public class SaliMaxRelaysDevice
|
public class SaliMaxRelaysDevice
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
namespace InnovEnergy.SaliMax.SaliMaxRelays;
|
namespace InnovEnergy.App.SaliMax.SaliMaxRelays;
|
||||||
|
|
||||||
public record SaliMaxRelayStatus
|
public record SaliMaxRelayStatus
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
namespace InnovEnergy.SaliMax.SystemConfig;
|
namespace InnovEnergy.App.SaliMax.SystemConfig;
|
||||||
|
|
||||||
public static class Config
|
public static class Config
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
using InnovEnergy.Lib.Devices.Trumpf.TruConvertAc;
|
using InnovEnergy.Lib.Devices.Trumpf.TruConvertAc;
|
||||||
using InnovEnergy.Lib.Devices.Trumpf.TruConvertDc;
|
using InnovEnergy.Lib.Devices.Trumpf.TruConvertDc;
|
||||||
|
|
||||||
namespace InnovEnergy.SaliMax.SystemConfig;
|
namespace InnovEnergy.App.SaliMax.SystemConfig;
|
||||||
|
|
||||||
public static class Defaults
|
public static class Defaults
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
|
using InnovEnergy.Lib.Time.Unix;
|
||||||
using InnovEnergy.Lib.Utils;
|
using InnovEnergy.Lib.Utils;
|
||||||
using InnovEnergy.Time.Unix;
|
|
||||||
using static System.Text.Json.JsonSerializer;
|
using static System.Text.Json.JsonSerializer;
|
||||||
|
|
||||||
namespace InnovEnergy.SaliMax.SystemConfig;
|
namespace InnovEnergy.App.SaliMax.SystemConfig;
|
||||||
|
|
||||||
// shut up trim warnings
|
// shut up trim warnings
|
||||||
#pragma warning disable IL2026
|
#pragma warning disable IL2026
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
#undef BatteriesAllowed
|
#undef BatteriesAllowed
|
||||||
|
|
||||||
|
using InnovEnergy.App.SaliMax.Controller;
|
||||||
|
using InnovEnergy.App.SaliMax.Log;
|
||||||
using InnovEnergy.Lib.Utils;
|
using InnovEnergy.Lib.Utils;
|
||||||
using InnovEnergy.SaliMax.Controller;
|
|
||||||
using InnovEnergy.SaliMax.Log;
|
|
||||||
|
|
||||||
namespace InnovEnergy.SaliMax;
|
namespace InnovEnergy.App.SaliMax;
|
||||||
|
|
||||||
public static class Topology
|
public static class Topology
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
using InnovEnergy.Lib.Utils;
|
using InnovEnergy.Lib.Utils;
|
||||||
|
|
||||||
namespace InnovEnergy.SaliMax;
|
namespace InnovEnergy.App.SaliMax;
|
||||||
|
|
||||||
public static class Utils
|
public static class Utils
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,10 +2,6 @@
|
||||||
|
|
||||||
<Import Project="../InnovEnergy.lib.props" />
|
<Import Project="../InnovEnergy.lib.props" />
|
||||||
|
|
||||||
<PropertyGroup>
|
|
||||||
<RootNamespace>InnovEnergy.Lib.Channels</RootNamespace>
|
|
||||||
</PropertyGroup>
|
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\Utils\Utils.csproj" />
|
<ProjectReference Include="..\Utils\Utils.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
namespace InnovEnergy.Lib.Channels.V2.Connections;
|
namespace InnovEnergy.Lib.Channels.V2.Bak.Connections;
|
||||||
|
|
||||||
public abstract class Connection<C> : IConnection<C> where C : IDisposable
|
public abstract class Connection<C> : IConnection<C> where C : IDisposable
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
using System.Net.Sockets;
|
using System.Net.Sockets;
|
||||||
|
|
||||||
namespace InnovEnergy.Lib.Channels.V2.Connections;
|
namespace InnovEnergy.Lib.Channels.V2.Bak.Connections;
|
||||||
|
|
||||||
public class TcpClientConnection : Connection<Socket>
|
public class TcpClientConnection : Connection<Socket>
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
namespace InnovEnergy.Lib.Channels.V2.Connections;
|
namespace InnovEnergy.Lib.Channels.V2.Bak.Connections;
|
||||||
|
|
||||||
public static class Connection
|
public static class Connection
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
namespace InnovEnergy.Lib.Channels.V2.Connections;
|
namespace InnovEnergy.Lib.Channels.V2.Bak.Connections;
|
||||||
|
|
||||||
public interface IConnection
|
public interface IConnection
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
using InnovEnergy.Lib.Channels.V2.Connections;
|
using InnovEnergy.Lib.Channels.V2.Bak.Connections;
|
||||||
|
|
||||||
namespace InnovEnergy.Lib.Channels.V2;
|
namespace InnovEnergy.Lib.Channels.V2.Bak;
|
||||||
|
|
||||||
public abstract class GenericChannel2<C, Rx, Tx> : IChannel<Rx, Tx>, IConnection
|
public abstract class GenericChannel2<C, Rx, Tx> : IChannel<Rx, Tx>, IConnection
|
||||||
{
|
{
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<AssemblyName>InnovEnergy.Lib.Devices.Ampt</AssemblyName>
|
<AssemblyName>InnovEnergy.Lib.Devices.Ampt</AssemblyName>
|
||||||
<RootNamespace>InnovEnergy.Lib.Devices.Ampt</RootNamespace>
|
|
||||||
<!-- <OutputType>Exe</OutputType> -->
|
<!-- <OutputType>Exe</OutputType> -->
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ using InnovEnergy.Lib.Protocols.Modbus.Clients;
|
||||||
using InnovEnergy.Lib.Protocols.Modbus.Connections;
|
using InnovEnergy.Lib.Protocols.Modbus.Connections;
|
||||||
using InnovEnergy.Lib.StatusApi.Connections;
|
using InnovEnergy.Lib.StatusApi.Connections;
|
||||||
|
|
||||||
namespace InnovEnergy.Lib.Devices.Ampt;
|
namespace InnovEnergy.Lib.Devices.AMPT;
|
||||||
|
|
||||||
public class AmptCommunicationUnit
|
public class AmptCommunicationUnit
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
using InnovEnergy.Lib.StatusApi.Connections;
|
using InnovEnergy.Lib.StatusApi.Connections;
|
||||||
using InnovEnergy.Lib.StatusApi.Devices;
|
using InnovEnergy.Lib.StatusApi.Devices;
|
||||||
|
|
||||||
namespace InnovEnergy.Lib.Devices.Ampt;
|
namespace InnovEnergy.Lib.Devices.AMPT;
|
||||||
|
|
||||||
public record AmptDeviceStatus
|
public record AmptDeviceStatus
|
||||||
(
|
(
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
using InnovEnergy.Lib.StatusApi.Connections;
|
namespace InnovEnergy.Lib.Devices.AMPT;
|
||||||
using InnovEnergy.Lib.StatusApi.Devices;
|
|
||||||
|
|
||||||
namespace InnovEnergy.Lib.Devices.Ampt;
|
|
||||||
|
|
||||||
public record AmptStatus
|
public record AmptStatus
|
||||||
(
|
(
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
namespace InnovEnergy.Lib.Devices.Ampt;
|
namespace InnovEnergy.Lib.Devices.AMPT;
|
||||||
|
|
||||||
public record AmptStringStatus
|
public record AmptStringStatus
|
||||||
{
|
{
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<AssemblyName>InnovEnergy.Lib.Devices.Adam6060</AssemblyName>
|
<AssemblyName>InnovEnergy.Lib.Devices.Adam6060</AssemblyName>
|
||||||
<RootNamespace>InnovEnergy.Lib.Devices.Adam6060</RootNamespace>
|
|
||||||
<!-- <OutputType>Exe</OutputType> -->
|
<!-- <OutputType>Exe</OutputType> -->
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<AssemblyName>InnovEnergy.Lib.Devices.Battery48TL</AssemblyName>
|
<AssemblyName>InnovEnergy.Lib.Devices.Battery48TL</AssemblyName>
|
||||||
<RootNamespace>InnovEnergy.Lib.Devices.Battery48TL</RootNamespace>
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<AssemblyName>InnovEnergy.Lib.Devices.EmuMeter</AssemblyName>
|
<AssemblyName>InnovEnergy.Lib.Devices.EmuMeter</AssemblyName>
|
||||||
<RootNamespace>InnovEnergy.Lib.Devices.EmuMeter</RootNamespace>
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue