Ian McEwen
9f286c9023
Merge pull request #721 from ianmcorvidae/shell-completion
...
Add very simple shell completion using argcomplete
2024-12-21 20:26:06 -07:00
Ian McEwen
0b1545393e
Make mypy happy with the optional import of argcomplete
2024-12-21 20:23:35 -07:00
Ian McEwen
245a9e40b1
Add very simple shell completion using argcomplete
2024-12-21 20:12:26 -07:00
Ian McEwen
749c6a70bc
Merge pull request #720 from ianmcorvidae/winserver-fix
...
Fix windows-11 detection for non-float platform.release() values
2024-12-21 14:22:55 -07:00
Ian McEwen
afd071c24e
Fix windows-11 detection for non-float platform.release() values ( fixes #639 )
2024-12-21 14:17:41 -07:00
Ian McEwen
29f355bd61
Merge pull request #719 from ianmcorvidae/ignore-nodes
...
Support setting nodes ignored in nodedb (with 2.5.13+ firmware)
2024-12-21 13:50:44 -07:00
Ian McEwen
4b6d7a8587
Support setting nodes ignored in nodedb (with 2.5.13+ firmware)
2024-12-21 13:46:17 -07:00
Ian McEwen
a765bccf4d
Merge pull request #718 from ianmcorvidae/show-unknown-more-nicely
...
Display unknown hop count as '?', and header as just 'Hops'
2024-12-20 23:08:19 -07:00
Ian McEwen
f950ecae2d
Display unknown hop count as '?', and header as just 'Hops'
2024-12-20 23:04:36 -07:00
Ian McEwen
7c7170a5dd
Merge pull request #706 from meshtastic/dependabot/pip/tornado-6.4.2
...
Bump tornado from 6.4.1 to 6.4.2
2024-12-20 22:50:01 -07:00
Ian McEwen
df191e149b
Merge pull request #713 from esev/favorite
...
Support setting/removing nodes as favorites
2024-12-20 22:36:23 -07:00
Ian McEwen
843abe587f
Back out release workflow changes from hotfix
2024-12-20 14:59:26 -07:00
Ian McEwen
ff7dcc3afb
Merge branch '2.5.6-hotfix'
2024-12-20 14:47:52 -07:00
Ian McEwen
d66b8fa9dd
fix import-related errors
2.5.6post1
2024-12-20 14:45:54 -07:00
Ian McEwen
f6f8ccfcbc
Fix message_to_json_shows_all test for added MyNodeInfo fields
2024-12-20 13:51:27 -07:00
Ian McEwen
cace959ca4
Update protobufs (to 2.5.17) and main python version (to 2.5.7)
2024-12-20 13:45:58 -07:00
github-actions
01ffd83d64
bump version to 2.5.6
2.5.6
2024-12-20 20:42:21 +00:00
Eric Severance
18ac0d6d5c
Support setting/removing nodes as favorites
2024-12-17 17:38:51 -08:00
Ian McEwen
7c89e231bd
Merge pull request #711 from ianmcorvidae/optionalize-deps
...
Make several dependencies optional (dotmap, print_color, and pyqrcode)
2024-12-12 21:19:15 -07:00
Ian McEwen
4673824236
Add the newly optional dependencies to an extras group
2024-12-12 21:14:58 -07:00
Ian McEwen
d87eddfd33
Make pyqrcode optional
2024-12-12 21:01:38 -07:00
Ian McEwen
31f322f1c2
Make dotmap (via meshtastic.test) and print_color optional
2024-12-12 20:59:22 -07:00
Ian McEwen
89b41c1a19
Remove pexpect too
2024-12-12 20:40:59 -07:00
Ian McEwen
1a5ca789c2
Remove pyparsing and webencodings dependencies, unsure why they're here at all
2024-12-12 19:48:29 -07:00
Ian McEwen
03ac322583
reset mypy-protobuf to non-optional, hopefully without breaking stuff
2024-11-26 14:35:48 -07:00
Ian McEwen
c63814358a
prep 2.5.6a0 & protobufs
2024-11-26 14:31:33 -07:00
github-actions
663fabce74
bump version to 2.5.5
2.5.5
2024-11-26 21:22:11 +00:00
Ian McEwen
6243965044
Merge pull request #707 from meshtastic/request-localstats
...
Allow request-telemetry to elicit LocalStats response
2024-11-24 11:31:01 -07:00
Ben Meadors
b180b6fb15
Allow request-telemetry to illicit LocalStats response
2024-11-24 08:19:40 -06:00
dependabot[bot]
7bb8e4e9dd
Bump tornado from 6.4.1 to 6.4.2
...
Bumps [tornado](https://github.com/tornadoweb/tornado ) from 6.4.1 to 6.4.2.
- [Changelog](https://github.com/tornadoweb/tornado/blob/v6.4.2/docs/releases.rst )
- [Commits](https://github.com/tornadoweb/tornado/compare/v6.4.1...v6.4.2 )
---
updated-dependencies:
- dependency-name: tornado
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-11-22 22:17:33 +00:00
Ian McEwen
4c7ac60be6
appease mypy too
2024-11-15 11:55:25 -07:00
Ian McEwen
0b086d10f8
appease pylint
2024-11-15 11:50:35 -07:00
Ian McEwen
426795fccd
semi-experimentally, add fallback code for message_to_json, allowing older protobuf library versions
2024-11-15 11:47:17 -07:00
Ian McEwen
fb88ee114c
bump protobufs to 2.5.5
2024-11-01 09:06:02 -07:00
github-actions
a4630b53eb
bump version to 2.5.4
2.5.4
2024-11-01 16:03:00 +00:00
Ian McEwen
646aa981d5
update readme to link to docs again
2024-10-29 14:22:09 -07:00
Ian McEwen
9381acd6ac
Merge pull request #681 from william-stearns/wls_add_types2
...
Wls add types2
2024-10-29 06:50:52 -07:00
Ian McEwen
384063db19
Fix some remaining mypy complaints
2024-10-29 06:47:16 -07:00
Ian McEwen
20d75d9023
Merge branch 'master' into wls_add_types2
2024-10-29 06:19:16 -07:00
Ian McEwen
0deb1d788f
Merge pull request #702 from meshtastic/dependabot/pip/werkzeug-3.0.6
...
Bump werkzeug from 3.0.4 to 3.0.6
2024-10-28 20:36:24 -07:00
Ian McEwen
1070d9202b
Merge pull request #698 from lachesis/lachesis/fix-remote-module-cfg-get
...
Add missing camel to snake conversion
2024-10-28 20:35:10 -07:00
Ian McEwen
b90de8b73b
Merge pull request #701 from fmoessbauer/master
...
A lot of fixes around setting / retrieving base64 encoded values
2024-10-28 20:29:05 -07:00
dependabot[bot]
2e79ecf759
Bump werkzeug from 3.0.4 to 3.0.6
...
Bumps [werkzeug](https://github.com/pallets/werkzeug ) from 3.0.4 to 3.0.6.
- [Release notes](https://github.com/pallets/werkzeug/releases )
- [Changelog](https://github.com/pallets/werkzeug/blob/main/CHANGES.rst )
- [Commits](https://github.com/pallets/werkzeug/compare/3.0.4...3.0.6 )
---
updated-dependencies:
- dependency-name: werkzeug
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-10-26 00:29:31 +00:00
Felix Moessbauer
578d3e4b24
do not double-print value when setting a repeated value
...
When clearning or appending to a repeated value, both the "Clearing..."
/ "Adding..." line and the "Set..." line were shown. However, this is
misleading as the only performed operation is the clearing / appending.
We fix this by directly returning from the function in case of clearing
/ appending.
2024-10-25 17:11:06 +02:00
Felix Moessbauer
4ca13bcede
fix setting of list item on configure
...
When setting the whole configuration via --configure, list types like
adminKey need special handling. Previously this failed as a list cannot
be appended to a list. The new code adds dedicated logic to replace the
repeated value when passing a list. Also, all items of that list are
converted into the correct (typed) form before setting them.
2024-10-25 17:11:06 +02:00
Felix Moessbauer
6ceae7c72f
setPref: pass typed value instead of string
...
By passing a typed value we can conserve the type information to later
use that to convert it back into the correct protobuf type. The type
conversion is now done inside setPref.
2024-10-25 17:11:06 +02:00
Felix Moessbauer
4c29d7dd0f
refactor camel and snake naming in setPref
...
Same change as done in getPerf to have less branches (simplifies the
code).
2024-10-25 17:11:06 +02:00
Felix Moessbauer
839bbbcad2
config: correctly print byte and array types on get
...
When getting config values of type bytes or list (technically a protobuf
repeated container type), these were directly printed on the output.
However, the retrieved values could not be set by --set again, as the
format was different (e.g. python string representation of bytes vs.
base64 prefixed and encoded as expected by --set).
We fix this by adding a toStr utility function (similar to the fromStr)
function to convert byte types correctly to the base64 representation.
Further, we check if the type is repeated and apply this operation to
all values.
2024-10-25 17:11:06 +02:00
Felix Moessbauer
1abb9fb213
refactor getPref to use uniform printing logic
...
We add a local helper function to print a single setting. This is a
preparation to correctly print non-trivial types. The existing code
in getPref is ported over to use that function. By that, the output
of "wholeField" is changed slightly to always print the full path for
each setting (e.g. "security.serialEnabled" instead of
"security:\nserialEnabled"). This improves support for grepping on the
output.
2024-10-25 17:11:06 +02:00
Felix Moessbauer
7fcbbe9b80
refactor camel and snake naming in getPref
...
We have a lot of code duplication by checkin over and over again if
field should be named in camel or snake notation. We simplify this by
writing the choosen variant into a variable and just use that name
across the code.
No functional change.
2024-10-25 14:13:50 +02:00