Commit Graph

38 Commits

Author SHA1 Message Date
ig 5484aea6cb ToStringRounded => ToDisplayString, introduce scientific notation (mW, kW,...) for units 2023-06-27 17:02:56 +02:00
ig 7f97ab8e14 make use of "required" with "init" (.net 7) 2023-06-27 13:14:17 +02:00
atef b5f025dc69 Add toStringRounded 2023-06-23 10:40:11 +02:00
ig 0582b26ec7 do not use common Null device (new for every use), it's ugly but it broke .ToCsv's cycle detector 2023-06-22 10:13:21 +02:00
atef 3e2e3e7190 comment out code generation for units 2023-06-20 15:11:26 +02:00
ig 5aad1c6ddf Add DcPower.Null 2023-06-20 10:23:44 +02:00
ig 4cdfb37e96 Add +- operators to AcPower 2023-06-20 10:23:44 +02:00
ig d701620d34 Units V2 2023-06-20 10:23:44 +02:00
ig 4c76475eac generated Units 2023-06-20 10:23:43 +02:00
ig 249d4e7c31 units v2 2023-06-20 10:23:43 +02:00
ig 36af277559 use Double for Units. DecimalEx lib had too many bugs 2023-06-20 10:23:42 +02:00
Kim fa9d06192d added Grafana 2023-05-11 10:20:47 +02:00
atef d8911a2a3a Add EocReached in the batteries and add percent to the Units 2023-04-20 13:22:41 +02:00
ig a6252895bb Update StatusApi & Units 2023-04-04 10:24:47 +02:00
ig 249254e2e5 add GeneratedCode attribute 2023-03-20 13:27:15 +01:00
ig c3b1484e99 simplify units, give up on idea of automatic aggregation 2023-03-20 13:22:57 +01:00
ig 9d753a8471 Introduce State<T> for Enums 2023-03-09 14:02:02 +01:00
ig 1b9353b1db support UnixTime in Units 2023-03-08 14:17:39 +01:00
ig 7e58b78572 add new Unit: Energy (kWh) 2023-03-08 14:06:39 +01:00
ig 270d78b75f \ => / in *.csproj 2023-03-07 11:18:35 +01:00
ig 5fb3f23799 use JsonConverterAttribute for Json serialization 2023-03-06 09:52:27 +01:00
ig 94e5496872 implement ToJson() for DeviceStatus 2023-03-02 18:03:10 +01:00
ig 8ae9119858 Round Units to 3 significant digits by default (ToString). Add JsonConverters to generator 2023-03-02 17:15:10 +01:00
atef 19188fa430 Implement IReadOnlyList for State 2023-03-02 15:26:27 +01:00
atef 8c3caa06d5 Introduce number type 2023-03-02 15:22:00 +01:00
atef a3ccd2a537 Add more implicit conversions for State 2023-03-02 15:14:22 +01:00
ig b983614cfc Phase => Bus 2023-03-01 10:52:21 +01:00
ig f5ff1d70a5 remove 'require' again (sigh). It only *seems* to build, but doesnt. we need net7.0 2023-03-01 10:40:25 +01:00
ig 4cb8e9ecfa add more operators to Percent 2023-03-01 10:38:51 +01:00
ig d91a4654cd add implicit op for booleans on State 2023-03-01 08:29:36 +01:00
ig 08c747f2ea implement ToString for State 2023-03-01 08:25:23 +01:00
ig 9bf23f3ec8 add Percent % to Units 2023-03-01 08:14:08 +01:00
ig 2070fce4ec implement | (parallel) operator for all Units 2023-03-01 08:05:57 +01:00
ig d5c5239744 implement operator + for all Units 2023-02-26 19:19:16 +01:00
ig d2bef311c0 Add missing .generated.cs files. 2023-02-26 15:59:55 +01:00
ig e74d94e268 Add missing .generated.cs files. 2023-02-26 15:43:53 +01:00
ig 53737a8e1c Completely rewrite Units.csproj 2023-02-26 15:39:55 +01:00
ig fd1b479783 move Phases from StatusApi.csproj to Units.csproj 2023-02-26 10:38:28 +01:00