7 Commits

Author SHA1 Message Date
GT610
3c592baf2c fix: Use latest dartssh2 and add a switch for temperature between celsius and millicelsius (#1095)
* refactor(sftp): Optimize file download logic and SSH command execution handling

Replace manual chunked downloads with a more concise `sftp.download` method
Consistently use `utf8.decode` to process SSH command output

Remove redundant code and comments, and simplify the logic

* chore: Update `dartssh2` submodule

* feat (Temperature Display): Added an option to switch between degrees Celsius and millicelsius

Allows users to switch temperature units in server settings, resolving the issue of incorrect temperature display on some devices

* chore: Add a participnt

* fix(sftp): Fixed a resource leak issue during file downloads and SSH command execution

Ensured that remote and local file handles are properly closed during file downloads to prevent resource leaks. Additionally, improved error handling during SSH command execution to ensure that all streams are either successfully completed or properly handled in the event of an error.
2026-04-01 11:27:58 +08:00
lollipopkit
a0ea95b1c3 fix & opt.: prefer temperature dev 2024-04-21 01:04:43 +08:00
lollipopkit
602ef60bf0 opt.: replace first with firstOrNull 2024-03-06 15:33:00 +08:00
lollipopkit
2137bfbcd0 new: prefer temperature device (#285) 2024-02-26 09:57:59 +08:00
lollipopkit
3cce2c1e1b opt.: temperature parse 2023-10-13 13:12:21 +08:00
lollipopkit
b55b8bf831 opt.: performance 2023-09-07 18:41:18 +08:00
lollipopkit
46350b7522 #48 display all support devices temperature 2023-05-25 16:44:26 +08:00