Commit Graph

56 Commits

Author SHA1 Message Date
Odd Stråbø dd7c43f7e7 Add support for the load switch
Rework mqtt structure
2023-04-10 03:39:19 +02:00
Odd Stråbø 140acba1f5 Update connector doc 2023-04-08 00:33:02 +02:00
Odd Stråbø 3a8fd634c5 Fix interface import 2023-04-08 00:22:14 +02:00
Odd Stråbø 80bfd414ec Implement get_interface 2023-04-07 23:57:37 +02:00
Odd Stråbø 1ccea2bf9c Move files 2023-04-07 23:26:55 +02:00
Odd Stråbø 7ab0b1ce62 Add serial test scripts 2023-04-07 21:13:32 +02:00
Odd Stråbø fa9d5d73c4 WIP: Initial work on configurable source device 2023-01-10 03:09:56 +01:00
Odd Stråbø 82ee08a1d7 Refactor 2023-01-07 22:18:30 +01:00
Odd Stråbø 59fc5e4fa9 Move main executable code to __main__ 2023-01-07 19:02:34 +01:00
Odd Stråbø f7386d31d2 Fix module relative importing of consumer 2023-01-07 19:01:03 +01:00
Odd Stråbø ad51e0debe Add StdoutConsumer 2023-01-07 18:59:36 +01:00
Odd Stråbø 4d96174cfa Refactor 2023-01-07 18:24:41 +01:00
Odd Stråbø 853ee3db4a Rename 2023-01-04 18:20:43 +01:00
Odd Stråbø 114908de85 Rename 2023-01-04 18:20:37 +01:00
Odd Stråbø 83d26c9acf Rename 2023-01-04 18:16:22 +01:00
Odd Stråbø 441e820ac4 Start organizing file structure 2023-01-04 18:05:09 +01:00
Odd Stråbø 0b3a38276a Add reference links to readme 2023-01-04 17:58:42 +01:00
Odd Stråbø ea37cdd31a Update deploy script 2023-01-04 17:58:19 +01:00
Odd Stråbø 61c186afce Add documentation on the physical connector 2022-12-31 03:51:47 +01:00
Odd Stråbø f030b460c8 Retry mqtt connection on unreachable network 2022-03-09 23:59:00 +01:00
Odd Stråbø 1e41bdd2dc Add deployment script 2022-01-26 21:04:48 +01:00
Odd Stråbø efddfd60cb Handle CRC too short in readMemory 2022-01-26 21:01:55 +01:00
Odd Stråbø 00fb5f1dee Add mqtt reconnect handling 2022-01-26 20:41:59 +01:00
Odd Stråbø b5740d78c8 Make sure calculations are done using Decimal 2021-11-29 20:42:54 +01:00
Odd Stråbø 0cd5872fb6 Avoid float calculation artifacts 2021-11-20 10:11:32 +01:00
Odd Stråbø b2f29ec263 Add calculated power values
for Battery, Panel and Load.
Should give better resolution than the integer panel and load numbers.
2021-11-20 09:12:21 +01:00
Odd Stråbø f7e359af6d Improve read reliability 2021-11-20 09:00:28 +01:00
Odd Stråbø b008f524bf Retry on read error 2021-11-18 23:38:52 +01:00
Odd Stråbø 57709242fa Move types to separate file, start using enum 2021-11-18 23:09:46 +01:00
Odd Stråbø 50978111c5 Hook MQTT up to the live data feed 2021-11-14 04:46:17 +01:00
Odd Stråbø a5eb518b8b Fix requirements 2021-11-14 04:45:28 +01:00
Odd Stråbø 4fdb36efc0 More mqtt 2021-11-14 03:32:30 +01:00
Odd Stråbø 71680e9976 Start implementing MQTT client 2021-11-14 01:55:43 +01:00
Odd Stråbø 9b4f424de1 Render RRD graphs 2021-11-14 01:54:00 +01:00
Odd Stråbø 6e28343a08 Add function to humanize numbers 2021-11-08 22:41:17 +01:00
Odd Stråbø 4266893111 Refractor data parsing functions 2021-11-08 21:41:47 +01:00
Odd Stråbø b168b5120f Flush read buffer on decode error 2021-11-08 21:40:12 +01:00
Odd Stråbø 9fc8db577a Improved periodical to forgive skipped beats 2021-11-08 21:39:21 +01:00
Odd Stråbø 7a61f60ecc Identified internal_temperature and charge_max_current 2021-11-08 11:33:47 +01:00
Odd Stråbø 6cbf480307 Catch struct unpack error 2021-11-08 04:32:49 +01:00
Odd Stråbø 5e87e3edd6 Refractor some. Add parsing of historical data. 2021-11-08 04:29:43 +01:00
Odd Stråbø 2cef664c7f Fix temperature parsing when below zero 2021-11-06 19:54:50 +01:00
Odd Stråbø 985f63d237 Fix construct_request 2021-11-05 06:58:12 +01:00
Odd Stråbø c91c819a42 Refractor to use feasycom_ble 2021-11-05 06:51:35 +01:00
Odd Stråbø 30246b9355 Split out BTLEUart to separate module 2021-11-05 06:21:01 +01:00
Odd Stråbø f652613ecc flake8 and isort don't quite agree on sorting order 2021-11-05 06:06:29 +01:00
Odd Stråbø cf294d18d6 Add timeout to read function
Fix __exit__
2021-11-05 03:01:43 +01:00
Odd Stråbø d60a07dfcc Implement wrapper class for the BTLE UART 2021-11-04 01:52:48 +01:00
Odd Stråbø 7e95fd4074 Render memory map from dump log 2021-11-03 22:25:39 +01:00
Odd Stråbø 0ee53a73ea Make sure to flush stdout + some refractoring 2021-11-03 04:35:49 +01:00