Ian McEwen
f4c085fc50
Merge pull request #714 from loic-fejoz/feature/waypoint
...
Waypoint creation/move/deletion
2024-12-27 09:46:45 -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
Loïc Fejoz
7cc18e9df6
fix(waypoint): Missing methods
...
Add missing methods callbacks regarding waypoints.
2024-12-21 10:36:36 +01: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
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
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
William Stearns
0da405168f
pylint cleanups
2024-10-10 23:49:20 -04:00
William Stearns
aba381fb54
Merge branch 'master' into wls_add_types
2024-10-08 23:28:25 -04:00
Derek Arnold
34f9be255e
fix unrelated bug when fromStr input is short hex
...
For example, 0x0 will generate an unhandled ValueError. This was caught
during a random unit test run for 3.9, so I figure I'd fix it.
This is unrelated to the PR otherwise.
2024-09-15 16:20:50 -05:00
Ian McEwen
865bb6a497
Remove python 3.8 warning. protobufs: v2.3.15 (brought in by merge)
2024-07-07 21:00:26 -07:00
Ian McEwen
c04943308a
Merge pull request #607 from geeksville/pr-powermon
...
PowerMon/StructuredLogging support
2024-07-07 20:56:28 -07:00
Ian McEwen
ec4e521001
Add a warning about this being the last version supporting python 3.8
2024-07-07 20:49:38 -07:00
Kevin Hester
63327986b4
fix incorrect Vid - thanks @ianmcorvidae for notixing.
...
0x04b4 is cypress semi but commonly used in Chinese oscopes (like mine).
So it was supposed to be a blacklist not a whitelist!
2024-07-03 20:11:59 -07:00
Kevin Hester
c9351236e6
blacklist hantek oscilliscope
2024-06-26 17:28:55 -07:00
Kevin Hester
f8ad4fef7c
deferred execution thread should be named and marked as daemon
2024-06-25 12:23:38 -07:00
Kevin Hester
5ff4025ed6
add NordicSemi Power Profiler Kit 2 device to the USB blacklist
2024-06-25 10:25:58 -07:00
geeksville
1add293414
Add a whitelist of known meshtastic USB VIDs to use a default serial ports.
...
Initially only RAK4631 and heltec tracker are listed
2024-06-25 10:25:58 -07:00
Kevin Hester
8456f36c6b
add NordicSemi Power Profiler Kit 2 device to the USB blacklist
2024-06-23 17:18:04 -07:00
geeksville
ccfb04720f
Add a whitelist of known meshtastic USB VIDs to use a default serial ports.
...
Initially only RAK4631 and heltec tracker are listed
2024-06-21 14:42:29 -07:00
William Stearns
a29ee840f2
Adding mypy typing
2024-06-15 23:22:43 -04:00
Ian McEwen
da0312a5b0
more miscellaneous types
2024-06-05 19:44:18 -07:00
Ian McEwen
ba2d6c9d93
continue progressively typing things (SerialInterface/BLEInterface initializations)
2024-05-11 22:27:31 -07:00
geeksville
7fe98bc266
Pretty indent --info JSON output (see below for details)
...
Changes to make --info much more human readable (while still keeping
machine readabilty for anyone foolish enough to be parsing the existing
output as text)
* change message_to_json to optionally not strip the multiline JSON
* use multiline=True for the two places we are printing to the console
* make the node list JSON indented
2024-04-26 15:15:57 -07:00
Ian McEwen
e8ba5581f6
Add a --request-position argument to request positions from nodes
2024-04-16 15:43:24 -07:00
Ian McEwen
6e7933a3ce
Fix my own pylint mistakes
2024-04-11 18:40:10 -07:00
Ian McEwen
f449ff9506
Add a variety of type annotations, primarily in mesh_interface
2024-04-11 18:28:01 -07:00
Ian McEwen
b57d1d81ff
Fix up pylint from merged PR
2024-04-02 15:15:22 -07:00
Ian McEwen
4c97866875
Merge pull request #511 from flavoromission/506-show-all-module-settings
...
feat:506 show all module settings
2024-04-02 13:11:35 -07:00
Ian McEwen
a139d180b8
Fix up or comment out broken tests, to get CI (hopefully) happy
2024-03-23 22:07:17 -07:00
Ian McEwen
b8640666d7
Fix some outstanding pylint issues (or disable the checks)
2024-03-19 12:47:08 -07:00
Ian McEwen
759cafb817
use importlib.metadata and packaging.version instead of pkg_resources
2024-03-19 12:02:40 -07:00
flavor omission
27be73c707
feat:506 show all module settings
...
Problem:
Missing fields are omitted.
Solution:
This fix sets the flag `always_print_fields_with_no_presence`
in the invocation of the protobuff method
`MessageToJson` will display the missing fields.
see: MessageToJson 6b36eb633c/python/google/protobuf/json_format.py (L82)
see: issue #506 https://github.com/meshtastic/python/issues/506
2024-03-18 00:01:47 -04:00
GUVWAF
9858fa1976
Add request-telemetry option
2023-08-21 20:58:27 +02:00
Thomas Göttgens
97aa8a8d74
fixing a few linter errors.
2023-03-31 20:09:59 +02:00
Thomas Göttgens
7e6f13f0a2
establish trunk format
2023-03-31 20:09:59 +02:00
Manuel Verch
b8b268feac
Check most current meshtastic version
2023-03-31 10:08:36 +02:00
Mike Kinney
babd1242d5
fix pylint warnings
2022-12-20 11:18:40 -08:00
GUVWAF
7d3a9178ea
Add traceroute option
2022-12-05 20:36:34 +01:00
GUVWAF
5c75e74bf9
Don't request config and channels if not needed.
...
Instead, wait for an (implicit) ACK or NAK.
Applies to admin packets set-owner, reboot,
shutdown, factory-reset and reset-nodedb.
2022-11-19 21:19:06 +01:00
Sacha Weatherstone
b2593e4bb1
Changes
2022-10-31 19:47:42 +10:00
Douile
10517ac94d
Allow setting values from base64 values
...
By prefixing a value with "base64:" e.g. ("base64:AQ==") it will now be
decoded to raw bytes. This is useful when setting psk as that is often
shown as base64.
2022-07-27 15:12:23 +01:00
Mike Kinney
02e8467fdd
detect devices only using vendor id
2022-03-31 10:24:17 -07:00
Mike Kinney
1a2519d647
refactor code to util
2022-03-08 10:45:11 -08:00
Mike Kinney
ede1b5f08b
fix when ports are not sorted
2022-03-07 21:21:41 -08:00
Mike Kinney
e53a5023f1
add detection of duplicate ports to findPorts; fix smoke1 test
2022-02-18 11:13:48 -08:00
Mike Kinney
26f65c4fee
only delay on win11
2022-02-18 10:08:53 -08:00
Mike Kinney
ed36fca4a2
remove testing prints
2022-02-16 10:10:32 -08:00