Commit Graph

271 Commits

Author SHA1 Message Date
ig 526dd2a47f Add GraphTraversal.cs 2023-10-02 15:10:01 +02:00
ig d93a066b36 introduce S3Utils, WIP 2023-10-02 15:09:40 +02:00
ig bd18082e8b use EmptyIfNull 2023-10-02 15:08:41 +02:00
ig f2c110dad0 Replace UnixTime dependency 2023-10-02 15:08:41 +02:00
ig 3728ae747f Introduce Result<T,E>, an either monad 2023-10-02 15:08:41 +02:00
ig fc77a752b4 add EnsureEndsWith 2023-10-02 15:08:41 +02:00
ig d9c8d3e19a Split NullableUtils.cs into Class and Struct submodules 2023-10-02 15:08:41 +02:00
ig 8d4eadc540 Add SelectMany for IAsyncEnumerable + IEnumerable 2023-10-02 15:08:41 +02:00
ig 3ce40b936a Remove UnixTime.csproj, use DateTimeUtils instead 2023-10-02 15:08:40 +02:00
atef b1d553870e Change from control special error to Detect Alarm States
Add loginfo to toCsv()
2023-10-02 14:49:24 +02:00
Kim 315fab8463 Merge remote-tracking branch 'origin/main' 2023-09-18 13:21:44 +02:00
Kim b727ef765a Checking for loops in foldertree, getting only unique children now.
Small Stability changes to VrmGrabber
2023-09-18 13:21:39 +02:00
atef 9928e732ff Change TimeSinceTOC from Uint16 to TimeSpan 2023-09-18 11:15:18 +02:00
Kim 40535cf0f1 Small changes cleanup for release 2023-09-15 16:59:59 +02:00
Kim 13a2f22e36 Refactored Mailer out of backend into lib. 2023-09-15 16:30:41 +02:00
atef c51250a380 One try catch instead of two for DcDcDeviceRecord Read() 2023-09-12 19:31:39 +02:00
ig 3a61b1e80b Add Zero 2023-09-11 11:33:12 +02:00
Kim 47c8d438d1 Added keys to S3Cmd.cs 2023-09-08 11:52:49 +02:00
atef 80e2f349a7 Clear space 2023-09-07 17:24:13 +02:00
atef c150793c70 Create a StringActive from the limpBitMap
Create SerialNumber and the FW version
2023-09-07 16:39:27 +02:00
atef 993d344918 Change From double to UInt16 2023-09-07 16:38:26 +02:00
atef 1d116a5b33 Delete no needed comments 2023-09-07 13:28:13 +02:00
ig 7ecb6e4607 Introduce VoltageRms and CurrentRms and use them where appropriate 2023-09-01 14:52:09 +02:00
ig 7fc5f80e8c make BatteryStatus nullable 2023-09-01 14:36:50 +02:00
atef 8a0407f538 Use Math.Abs for the signed currents 2023-09-01 14:15:06 +02:00
atef 26422284dd Change from falg to requested 2023-09-01 14:14:34 +02:00
atef 9bbccfd34b Add a Calibration Charge Flag based on the Time Since TOC. 2023-09-01 10:48:44 +02:00
ig 20c3e95666 clean up powers 2023-09-01 10:03:29 +02:00
ig 05f0a7e9f9 convert composite units to records 2023-09-01 09:18:44 +02:00
ig be452d190c "normalize" DcBus 2023-09-01 09:18:43 +02:00
atef 6c2360f0ad Add time to TOC request 2023-08-31 15:16:27 +02:00
ig c955b97c2b remove private constructor, no longer needed bcs of "required" 2023-08-31 13:19:48 +02:00
atef a462ee0610 Change Active Power to DcPower in DcBus 2023-08-31 10:11:02 +02:00
ig 64b64cc1e0 some QOL improvements 2023-08-30 16:50:38 +02:00
ig 005a5460db do not use nullable in operators, .net cannot deal with it yet 2023-08-30 16:49:44 +02:00
ig d09c53ad92 use "required" 2023-08-30 16:47:28 +02:00
ig 71ba569085 remove leftover HeatingCurrent 2023-08-30 15:13:10 +02:00
ig 8596fddb04 if a battery is not reachable, Battery48TlDevices now does not give up and reports the remaining ones instead 2023-08-30 14:50:12 +02:00
atef 72b781a223 Dc Power inherit from Power instead from Ac Power 2023-08-30 13:40:04 +02:00
atef 57c5faf1e6 Add heating power to the average battery. 2023-08-30 13:38:58 +02:00
ig db6fe5ecbf make collector aware of "secret" limp string alarms/warnings (too many broken cells) 2023-08-29 13:57:59 +02:00
ig 728cb7aefb make AmptStatus implement IMppt 2023-08-25 17:15:46 +02:00
ig 418bac6a6a use ToDisplayString() for ToString() as well 2023-08-25 17:12:20 +02:00
ig f8b1d70f79 Add unary - operator for nullable powers 2023-08-25 17:11:41 +02:00
ig 2ace3fad51 "Notify" the Watchdog 2023-08-24 10:03:20 +02:00
ig 664290c44b reorder Topology generation code 2023-08-23 09:23:50 +02:00
ig d731c12f64 add minor error handling in Texblock 2023-08-18 15:57:00 +02:00
ig ed39b8e847 Fix Index out of range in .ToDisplayString() 2023-08-17 08:01:16 +02:00
ig 829732a7ba Introduce AsReadOnlyList extension to cast arrays 2023-08-16 15:14:35 +02:00
ig ea7a13da06 Introduce TextBlock.Empty 2023-08-16 15:13:46 +02:00
ig 2bd20ce4eb Units: create extensions methods for Int32's 2023-08-16 15:12:23 +02:00
ig 0b8aa5a96e move Watchdog related code into its own class 2023-08-16 09:45:34 +02:00
ig 31c725520f minor edit in AllStates.graphml 2023-08-15 15:06:57 +02:00
ig 970ae10799 fix bug in UnixTimeSpanExtensions.cs 2023-08-15 15:06:15 +02:00
atef b47081204d Update Alarm and Warning of FZ Battery 2023-08-10 12:58:05 +02:00
atef 6990bda8ff Change naming to corresponding name on the Web 2023-08-02 11:07:16 +02:00
atef 07e198c284 Add MaxBatteryDischargingCurrent to the DcDc Record
Add MaxBatteryChargingCurrent to the DcDc Record
2023-08-02 11:06:49 +02:00
atef d7212dd37a Add set and get to Precharge Config 2023-08-02 11:06:18 +02:00
atef 43fb714a2a Add MaxBattery Charging and Discharging current in Current Control 2023-08-02 11:05:56 +02:00
atef 91c979cca2 add roundto to unixTime 2023-07-24 10:55:58 +02:00
atef f8cdcb420d add CurrentMinSoc 2023-07-24 10:48:23 +02:00
atef 12b0c94d78 Update Config file and Inverter state 2023-07-13 09:53:44 +02:00
atef 486abbdf56 Switch few function from public to private 2023-07-13 09:53:13 +02:00
atef dafef572ab Add try Catch over SystemControl write function 2023-07-13 09:50:40 +02:00
ig ba8bce65bd Add Iem3KGridMeter project stub 2023-07-11 14:06:53 +02:00
ig 48fe29ef88 add 500ms Timeout to TcpChannel 2023-07-10 10:39:03 +02:00
ig 2a1e7cce93 fix DynamicallyAccessedMembers warnings (Trimming) 2023-07-10 10:39:03 +02:00
atef b37fd90098 Add battery heating Current 2023-07-10 10:35:29 +02:00
atef bd24a725c6 Add display fail reading error 2023-07-10 10:34:51 +02:00
atef e9c2e16b5a Add percent in Units 2023-07-10 10:07:00 +02:00
atef 48c2cdcbc6 Add root name space property for the rest of the projects 2023-07-06 15:19:16 +02:00
ig 56e3ca3cea readd Units reference to AMPT project 2023-07-04 11:21:01 +02:00
ig b0e44d5cce remove Program.cs'es leftover from testing 2023-07-04 11:18:16 +02:00
ig 9a2ea39317 remove experimental SrcGen project from solution 2023-07-04 09:59:00 +02:00
ig 27ecf12ce2 remove stale TruConvert.csproj 2023-07-04 09:16:56 +02:00
ig e80cc2fbd0 remove spurious propertygroup from projects 2023-07-04 09:09:50 +02:00
ig 9049b3e4d5 Improve Ip4Address class 2023-07-03 17:30:01 +02:00
ig cc8621d632 Introduce Ip4Address class, standard IpAddress class is unwieldy... 2023-07-03 17:30:01 +02:00
ig 83cd63d390 Better Error Messages for failing devices 2023-07-03 17:30:01 +02:00
ig 6648d318ca Minor improvements for TextBlocks 2023-07-03 17:30:01 +02:00
atef e31c40b659 Add Rootnamespace property in project files 2023-07-03 14:59:59 +02:00
atef 7d0dd25696 add heating and total current value to battery records 2023-07-03 14:21:00 +02:00
atef 7a77982bd2 Delete project refrence SrcGen 2023-06-30 10:31:13 +02:00
atef c087af96c0 Create an overload of CenterHorizantal 2023-06-30 10:30:50 +02:00
atef 1d017ba6ba Add the hack to compile Net6 from Net7 2023-06-30 10:24:38 +02:00
atef 3fab366362 Change the import as lib.props 2023-06-30 10:23:55 +02:00
ig 5484aea6cb ToStringRounded => ToDisplayString, introduce scientific notation (mW, kW,...) for units 2023-06-27 17:02:56 +02:00
ig a761e46686 fix bugs introduced by 'required' changes 2023-06-27 17:01:40 +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 a2d9017326 remove stray .sln files 2023-06-22 10:18:26 +02:00
ig d1d9575052 Trumpf DcDc does not support changing sign convention (producer/consumer), so we have to manually flip the sign of currents in our code 2023-06-22 10:15:57 +02:00
ig 12731a90e9 fix some modbus values that were unsigned but should be signed 2023-06-22 10:14:31 +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 98bdec1a36 Add temperature average to battery record 2023-06-22 09:50:24 +02:00
atef 8feee5db43 Introduce ClampMin and ClampMax 2023-06-20 15:34:04 +02:00
atef 789780791f throw exception if min is bigger than max in Clamp 2023-06-20 15:27:53 +02:00
atef 3e2e3e7190 comment out code generation for units 2023-06-20 15:11:26 +02:00
ig c78451d4cf new implementation of TextBlock 2023-06-20 14:26:48 +02:00
ig 5aad1c6ddf Add DcPower.Null 2023-06-20 10:23:44 +02:00