Commit Graph

1088 Commits

Author SHA1 Message Date
Uwe Seimet
7bbcf59c76
scsictl shall accept generic key/value pairs for options that take parameters (#1240) (#1274)
* scsictl accepts generic key/value pairs for options that take parameters
2023-10-31 09:02:28 +01:00
Uwe Seimet
8bd06ea5cd
Improve how commands are internally executed (#1247)
* Improve how commands are internally executed
* Use const CommandContext for execution
* Update error handling
* Fix SonarQube issues
* Remove duplicate code
* Use mutex instead of atomic_bool
* Add hasher
* Add param_map
* Do not log unknown operations as an error for backward/foward compatibility
2023-10-30 13:57:46 +01:00
Uwe Seimet
b7cb23e391
Add statistics and make scsictl accept generic key/value parameters (#1237/#1238) (#1262)
* Add statistics and make scsictl accept generic key/value parameters
2023-10-30 13:32:45 +01:00
Uwe Seimet
8f45e4f491
Add options to only run INQUIRY and to scan the bus to scsidump (#1092) (#1261)
* Add options to only run INQUIRY and to scan the bus to scsidump
2023-10-30 11:34:07 +01:00
Uwe Seimet
c78ba80088
Move default device parameters from DeviceFactory to the respective devices #1257 (#1259)
* Move default parameter handling
2023-10-30 11:24:18 +01:00
Daniel Markstedt
2de0aa090a Stop supporting Python 3.7, start supporting 3.11 2023-10-30 08:46:06 +09:00
Daniel Markstedt
b5323d0cd3 Bump to Flask 3 / Werkzeug 3 2023-10-30 08:46:06 +09:00
Uwe Seimet
d6116bf5c2
Remove unused duplicate code dealing with MODE SELECT (#1268) (#1269)
* Remove unused code
2023-10-29 13:01:12 +01:00
Uwe Seimet
43088ab3bc
Remove non-working Banana Pi code (#1252)
* Remove non-working Banana Pi code

* Remove SonarQube suppressions which can be resolved by a code update

* Update device detection
2023-10-22 17:29:26 +02:00
Uwe Seimet
2acb742043
Fix output formatting (#1254) 2023-10-22 16:19:40 +02:00
Uwe Seimet
02d18b3359
Do not write data when executing VERIFY10/VERIFY16 (#1250) 2023-10-22 16:18:33 +02:00
dependabot[bot]
2ec44332d0
Bump postcss from 8.4.18 to 8.4.31 in /python/web (#1241)
* Bump postcss from 8.4.18 to 8.4.31 in /python/web

Bumps [postcss](https://github.com/postcss/postcss) from 8.4.18 to 8.4.31.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.18...8.4.31)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-22 19:06:48 +09:00
dependabot[bot]
8ae5455675
Bump pillow from 9.3.0 to 10.0.1 in /python/ctrlboard (#1236)
* Bump pillow from 9.3.0 to 10.0.1 in /python/ctrlboard

Bumps [pillow](https://github.com/python-pillow/Pillow) from 9.3.0 to 10.0.1.
- [Release notes](https://github.com/python-pillow/Pillow/releases)
- [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst)
- [Commits](https://github.com/python-pillow/Pillow/compare/9.3.0...10.0.1)

---
updated-dependencies:
- dependency-name: pillow
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-22 19:01:28 +09:00
dependabot[bot]
e276166632
Bump pillow from 9.3.0 to 10.0.1 in /python/oled (#1235)
* Bump pillow from 9.3.0 to 10.0.1 in /python/oled

Bumps [pillow](https://github.com/python-pillow/Pillow) from 9.3.0 to 10.0.1.
- [Release notes](https://github.com/python-pillow/Pillow/releases)
- [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst)
- [Commits](https://github.com/python-pillow/Pillow/compare/9.3.0...10.0.1)

---
updated-dependencies:
- dependency-name: pillow
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-22 19:00:25 +09:00
Uwe Seimet
aa927cb504
Move top-level .cpp files into their respective folders (#1249)
* Update Makefile, move top-level .cpp files

* Move top-level .cpp files into their respective folders
2023-10-16 18:27:18 +02:00
Uwe Seimet
41bdcd4aed
Issues 1179 and 1182 (#1232)
* Update logging

* Remove duplicate code

* Update unit tests

* Clean up includes

* Merge ProtobufSerializer into protobuf_util namespace

* Precompile regex

* Add const

* Add Split() convenience method, update log level/ID parsing

* Move log.h to legacy folder

* Elimininate gotos

* Fixes for gcc 13

* Update compiler flags

* Update default folder handling

* Use references instead of pointers

* Move code for better encapsulation

* Move code

* Remove unused method argument

* Move device logger

* Remove redundant to_string

* Rename for consistency

* Update handling of protobuf pointers

* Simplify protobuf usage

* Memory handling update

* Add hasher
2023-10-15 08:38:15 +02:00
Daniel Markstedt
c1f6f3ffea Explicit lock of werkzeug lib version 2023-10-14 07:08:12 +09:00
Tony Kuker
68e0c29d83
Disable the Timer Test #1227 (#1228)
The Timer test isn't reliable on all variants of the Raspberry Pi. This will temporarily comment it out.

When the RPi5 support is being added, this test should be made optional and only triggered when a CLI option is present.
2023-10-09 20:10:46 -05:00
Daniel Markstedt
ed2ff0ed73
Swedish translations (#1221) 2023-10-09 19:55:43 -05:00
Daniel Markstedt
2ced0d3515 Default compiler threads based on available RAM, but no more or less than available cores 2023-10-07 19:46:30 +09:00
Tony Kuker
10f59afbae
Update Sonar Project Key (#1230) 2023-10-02 09:06:51 +02:00
Uwe Seimet
bd9b776c47
Fix block size evaluation (#1212) (#1213)
* Fix block size evaluation (#1212)
2023-10-01 23:50:30 +02:00
Tony Kuker
84c20c4f29
Update Sonarcloud version (#1225) 2023-10-01 16:41:53 -05:00
Daniel Markstedt
65c1b194c5
Manage Samba and Netatalk with Webmin (#1217)
* Display status of Samba/Netatalk/vsftp in the footer, with links to Webmin module

* Add option to install Webmin and the netatalk2 module
2023-09-24 09:30:54 -07:00
Benjamin Krein
b514440957
Fix test failures in low-voltage PR (#1207)
* fix lint checks in web python

* fix lint checks in common python

* rework to pass tests in docker

* fix css style lint

* fix css style syntax
2023-09-04 08:08:42 -07:00
Tony Kuker
74eef6f9cc
Enable actions on pull request (#1209)
* Update revision for release

* Create sonarcloud.yml

* Update sonarcloud.yml

* Update sonarcloud.yml

* Update sonarcloud.yml

* Update sonarcloud.yml

* Delete sonarcloud.yml

* Update revision number for release

* Remove SonarCloud cache setup as it is now offered by default (#1135)

No need to configure the cache anymore, SonarCloud now has an automatic analysis caching. See https://docs.sonarcloud.io/advanced-setup/languages/c-c-objective-c/#analysis-cache.

* Revert "Remove SonarCloud cache setup as it is now offered by default (#1135)" (#1144)

This reverts commit 3ad668cfd1.

* Update web.yml

* Update cpp.yml

* Update web.yml

* Update build_code.yml

* Update build_code.yml

* Update cpp.yml

* Update web.yml

---------

Co-authored-by: Tony Kuker <akuker@gmail.com>
Co-authored-by: Massimo Paladin <massimo.paladin@gmail.com>
2023-09-02 18:36:45 -05:00
Benjamin Krein
b32027f8c0
Add web UI notification for under voltage/throttling events (#1203) 2023-08-31 23:23:12 -07:00
Daniel Markstedt
3b6822d7c8
easyinstall: Dynamically detect an available network i/f, and abort if none is found (#1193)
* Dynamically detect an available network i/f, and abort if none is found

* Network i/f fallback for headless mode

* Split piscsi installation and system service configuration
2023-07-31 12:13:23 -07:00
Daniel Markstedt
8089bb93f3
Launch python client services only after network-online target (#1197) 2023-07-31 12:12:53 -07:00
Daniel Markstedt
d3317e9702
Bump stylelint to 15.10.2 and remove deprecated module (#1189)
- Bump stylelint and stylelint-config-standard libs to the latest versions (security fixes)
- Remove deprecated stylelint-config-prettier module
- Scan the classic style sheet with stylelint and prettier in the github workflow
- Address stylelint and prettier issues in the classic stylesheet
- Bump prettier to 3.0.0
2023-07-28 22:53:12 -07:00
Daniel Markstedt
34478d1bea
Merge pull request #1192 from PiSCSI/rdmark-issue-1191
Check for predictable network interface names in bridge check
2023-07-28 21:01:44 -07:00
Daniel Markstedt
51f1e7eae7 Check for predictable network interface names in bridge check function, and always return a status message with the outcome of the check. Issue #1191 2023-07-26 18:19:22 -07:00
Daniel Markstedt
5a6d12c075
Swedish translation update 2023-07 (#1184) 2023-07-17 19:23:25 -05:00
Daniel Markstedt
fa2b02b222
Bump netatalk 2.x version to 230701 (#1185) 2023-07-17 19:23:10 -05:00
Daniel Markstedt
e60e523d0e
Merge pull request #1183 from n4al/spanish_translation
Spanish translation
2023-07-04 23:02:04 -07:00
Nemanja Lukic
c9209c3004 Spanish translation 2023-07-05 06:42:24 +02:00
Daniel Markstedt
ee658c359d
Clarify docs and error strings for scsimon (#1175)
* Better usage hints in scsimon man page

* In error message, clarify that piscsi needs to be shut down
2023-06-24 13:20:15 -07:00
dependabot[bot]
c08667a81d
Bump requests from 2.28.1 to 2.31.0 in /python/web (#1177) 2023-05-24 22:16:36 -07:00
dependabot[bot]
7ee45779e1
Bump requests from 2.26.0 to 2.31.0 in /python/common (#1176) 2023-05-24 22:15:56 -07:00
Daniel Markstedt
1ce6fd1d55
Improve invalid path error handling, and escape single quotes in JS (#1174) 2023-05-21 15:32:19 -07:00
Daniel Markstedt
fa475d8b12
Proper handling of custom image dirs, #1170 (#1171) 2023-05-21 15:27:50 -07:00
Daniel Markstedt
4580dd222e
PiSCSI name in OLED splash screen (#1169) 2023-05-16 23:09:12 -05:00
Daniel Markstedt
b28da7001d
Always assign locale in detect_locale() (#1163)
* Always assign locale in detect_locale()

* Bump version of Debian used in CI builds from from buster to bullseye

* Update code comment

---------

Co-authored-by: nucleogenic <nr@nucleogenic.com>
2023-05-16 12:19:40 -07:00
dependabot[bot]
1c52dba979
Bump flask from 2.2.2 to 2.3.2 in /python/web (#1160) 2023-05-01 19:33:53 -07:00
Daniel Markstedt
09d0598c2f
Remove use of deprecated before_first_request decorator (#1162) 2023-05-01 19:21:17 -07:00
GoodSpeed001
cfcfbc4301
Update requirements.txt (#1156)
Remove bogus pkg-resources==0.0.0 entry
2023-04-29 15:07:17 -07:00
Tony Kuker
9c5296a65b Update version for next development version 2023-04-22 19:46:26 -05:00
Tony Kuker
ba1d867ad5 Update revision number for release 2023-04-22 19:42:55 -05:00
Tony Kuker
dafb2a6677
Updated Chinese Translations (#1140)
* updated translations

* remove obsolete translations

---------

Co-authored-by: Tony Kuker <akuker@gmail.com>
2023-04-22 19:00:27 -05:00
Daniel Markstedt
3cceb515cd
For HD Product name, use GiB unit from 10,000 Mib and higher. (#1147)
* For HD Product name, use GiB unit from 10,000 Mib and higher.

* Update unit test
2023-04-20 08:38:31 -05:00