Commit graph

66 commits

Author SHA1 Message Date
andrekir
13b615a470 chore: update license header 2025-01-02 07:00:51 -03:00
andrekir
1219d3037e chore: add GPL-3.0 license headers to source files 2024-11-26 08:54:18 -03:00
Andre K
c30ee2f55f
refactor: replace MyNodeInfo with MyNodeEntity (#1277) 2024-10-02 06:18:30 -03:00
James Rich
2109426243
feat: Add role to NodeInfo (#1174) 2024-08-10 08:17:51 -03:00
Andre K
5b3c78316b
feat: support for switching between devices (#1078) 2024-06-08 10:25:47 -03:00
Dayle Drinkwater
47b2ecc8aa
Hops Away implementation (#966)
* Initial Hops Away feature

* Generate our own hopsAway, comparing hopStart to hopLimit

* Remove import of hopsAway from device nodeInfo, as this only shows 0 when hopStart isn't included on packets (with this info, we can't differentiate between a node which is Hops Away but on old firmware, or nodes which are on new firmware but direct. Both are 0)

Check if hopStart is 0 but hopLimit is not 0, if true set hopsAway to -1.

Show nodes with hopsAway with -1 with a (!) appended to the RSSI details, to show this probably isn't true. (eg they are using old firmware)

Change the default of hopsAway to -1, until we know it is direct (0) or hops away (1+)

* tidy up: move from nested if else to when

* Revert Project_Default.xml

* Move hopsAway when block in to updateNodeInfo() block above it.

Move hopsAway var to end of NodeInfo Class.

Schema update due to change above.

* hopsAway now follows firmware implementation.
hopsAway now imported from radio (installNodeInfo)

* reformat

---------

Co-authored-by: andrekir <andrekir@pm.me>
2024-04-21 08:14:35 -03:00
Davis
9e54787a7d
Move Node info completely to Compose (#886)
* Move battery info to compose - always show voltage level and icons to match battery percentage
Use tool text in preview, rather than actually set text value
Simplify node info layout to avoid defining margins on everything

* Move node position to Compose

* Update hyperlink color to match previous value

* Use compose preview in layout editor

* Use compose preview in layout editor

* Add simple preview for use in layout

* Move last heard node info to Compose
Clean up layout of node info

* Move signal info to Compose and simplify bind

* Prevent long coordinates from colliding with signal info

* Move the rest of the node info card to compose
Breaks the blinking feature when navigating from chat
Wrap position to new line if overflow

* Adjust layout and text sizing to closer match original

* Use constraint layout for tighter display on busy nodes

* Construct environment metrics so that there aren't trailing spaces if current is zero

* Swap viewholder root for compose view rather than inflating layout
Fix padding lost when changing out view holder root
Intelligently update the list with only nodes that changed

* Remove unused method, and adjust replacement method to match the same decimal precisions as before

* Use previous string for denoting unknown node names

* Mark unknown short name as non-translatable
2024-03-07 05:39:02 -03:00
Davis
4f9011fe57
Add number of GPS satellites in view to DB for later display (#883)
* Add a couple more fields to position
Use auto migration over manula migration
2024-02-29 11:18:02 -03:00
andrekir
6aa1b70274 feat: add client-side NodeInfo channel routing 2024-01-17 19:34:55 -03:00
andrekir
425763627d refactor: cleanup isOnline logic 2023-12-13 17:29:36 -03:00
andrekir
2dd0e1f1e2 refactor: reduce coupling in Parcelables 2023-10-03 17:27:16 -03:00
Andre K
83722159be
refactor: migrate nodeDB to Room database (#717) 2023-09-05 08:19:26 -03:00
andrekir
e72b046c53 refactor: convert gpsString to Position extension 2023-09-04 18:40:21 -03:00
andrekir
cdc76155d9 style: replace Pair() usage with explicit values 2023-07-31 23:07:27 -03:00
andrekir
3210bf1ad3 fix: don't show Fahrenheit when temperature field is empty (0f) 2023-07-27 05:50:38 -03:00
Jonathan Bennett
75eebb989e
Fix truncation of environmental metrics when using Celsius (#667) 2023-07-27 05:45:04 -03:00
andrekir
fc17c59996 fix: change gas resistance unit to MOhms
reference https://github.com/meshtastic/protobufs/pull/365
2023-07-18 18:00:29 -03:00
Jonathan Bennett
4e410622d8
feat: Honor radio's option to use Fahrenheit (#658) 2023-07-16 05:46:54 -03:00
Jonathan Bennett
37762f300b
feat: Add option for Miles and Feet for distance (#651) 2023-07-06 18:26:38 -03:00
andrekir
7ca724142f refactor: simplify setOwner logic 2023-05-26 16:18:02 -03:00
Andre K
a8be41d158
feat: add node colors (#618) 2023-04-13 17:54:52 -03:00
andrekir
96ea0bf5a9 make isLicensed optional 2022-12-25 23:40:28 -03:00
Ben Meadors
dcc03be484
Account for negative metric values in telemetry (#532) 2022-12-03 18:53:20 -03:00
Andre K
4bcd408dce
add user & device config settings (#520)
* add MeshUser & LocalConfig prefs
2022-11-08 23:11:18 -03:00
andrekir
5c586526da change gas resistance unit to mOhm 2022-09-18 18:30:40 -03:00
andrekir
7be67ec2d4 add EnvironmentMetrics to nodes tab 2022-09-12 18:23:59 -03:00
andrekir
d2140b13cb add EnvironmentMetrics to NodeInfo 2022-09-08 19:09:36 -03:00
andrekir
cbd8090137 fix null batteryStr 2022-09-08 17:26:00 -03:00
andrekir
5eb5cd1421 incorporate androidlib 2022-09-04 22:52:40 -03:00
andrekir
5d95017efa add osm map features 2022-08-30 17:25:11 -03:00
andrekir
ab020713bd validate longitude values 2022-06-22 22:02:56 -03:00
andrekir
2389c222a0 move LocationUtils into utils 2022-05-20 11:20:13 -03:00
andrekir
78f7477c85 promote device metrics 2022-04-04 19:10:15 -03:00
andrekir
d8a5fff86e fix NodeInfo telemetry proto 2022-03-28 15:48:27 -03:00
andrekir
373500ae8e point telemetry to new proto reference 2022-03-27 18:43:24 -03:00
andrekir
472f989b65 tag telemetry in NodeInfo 2022-03-26 23:38:58 -03:00
andrekir
11bbf02bf9 add batteryLevel from Telemetry 2022-03-26 18:10:40 -03:00
Mike Cumings
6012bddbdc Fixes #340 Improve CSV file export 2022-02-03 18:15:06 -08:00
Kevin Hester
9a7e46c5df fill in for local device that happens to not have GPS signal (even if has GPS) 2021-03-27 15:50:16 +08:00
Kevin Hester
3c457a118d cleanup lastHeard in node info (instead of position.time) 2021-03-27 10:55:16 +08:00
Vadim Furman
0d9f31f7fb Pipe rssi to the view 2021-03-22 21:10:58 -07:00
Vadim Furman
8aa7585fdd Merge remote-tracking branch 'upstream/master' 2021-03-19 16:55:22 -07:00
Vadim Furman
5e4470d25e Use default scope for file save and display snr 2021-03-19 14:33:55 -07:00
Kevin Hester
483bd878ab untested change to use new hwmodel 2021-03-14 11:42:04 +08:00
Kevin Hester
2e30dbcdd0 switching away from kotlin-android-extensions 2020-12-07 20:44:17 +08:00
Ludovic Goix
8f253bdca1 Display last time we receive a transmission from a node #65 2020-07-13 23:49:07 -04:00
geeksville
169cb7dcd7 fix unit tests 2020-07-02 14:46:37 -07:00
Ludovic Goix
d822538c0e Display battery level of remote nodes #64 2020-07-01 08:28:06 -04:00
geeksville
12ef3d4d7b Don't crash the app if the node sends a bogus lat > 90 deg 2020-06-18 14:08:21 -07:00
geeksville
98d5f3a7be remove deprecated lat/long float encodings 2020-06-11 21:25:45 -07:00