From ef9441e7d24a6100ffc686f5cf3d315c86eb0db7 Mon Sep 17 00:00:00 2001 From: Mike Schiraldi Date: Mon, 14 Mar 2022 23:32:42 -0700 Subject: [PATCH 1/8] Added examples/tcp_gps_example.py --- examples/tcp_gps_example.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 examples/tcp_gps_example.py diff --git a/examples/tcp_gps_example.py b/examples/tcp_gps_example.py new file mode 100644 index 0000000..4c55e8c --- /dev/null +++ b/examples/tcp_gps_example.py @@ -0,0 +1,12 @@ +import sys +import meshtastic +import meshtastic.tcp_interface + +node_ip = "192.168.42.1" +iface = meshtastic.tcp_interface.TCPInterface(node_ip) +my_node_num = iface.myInfo.my_node_num +pos = iface.nodesByNum[my_node_num]["position"] +print (pos) + +iface.close() + From 7fdfd782d8cd2642ea2371708efbec57bf7e1973 Mon Sep 17 00:00:00 2001 From: github-actions Date: Mon, 21 Mar 2022 17:50:05 +0000 Subject: [PATCH 2/8] bump version --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 422afc4..0a74f6f 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ with open("README.md", "r") as fh: # This call to setup() does all the work setup( name="meshtastic", - version="1.3alpha.7", + version="1.3alpha.8", description="Python API & client shell for talking to Meshtastic devices", long_description=long_description, long_description_content_type="text/markdown", From 3332271a97eddb3291ada315011165305ec46d57 Mon Sep 17 00:00:00 2001 From: Mike Schiraldi Date: Tue, 22 Mar 2022 12:41:50 -0700 Subject: [PATCH 3/8] lint --- examples/tcp_gps_example.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/examples/tcp_gps_example.py b/examples/tcp_gps_example.py index 4c55e8c..6bb064e 100644 --- a/examples/tcp_gps_example.py +++ b/examples/tcp_gps_example.py @@ -1,12 +1,14 @@ -import sys +"""Demonstration of how to look up a radio's location via its LAN connection. + Before running, connect your machine to the same WiFi network as the radio. +""" + import meshtastic import meshtastic.tcp_interface -node_ip = "192.168.42.1" -iface = meshtastic.tcp_interface.TCPInterface(node_ip) +radio_hostname = "meshtastic.local" # Can also be an IP +iface = meshtastic.tcp_interface.TCPInterface(radio_hostname) my_node_num = iface.myInfo.my_node_num pos = iface.nodesByNum[my_node_num]["position"] print (pos) iface.close() - From e2bca647aeeee5c06e61cdfbce180cc79373870f Mon Sep 17 00:00:00 2001 From: Jm Casler Date: Fri, 25 Mar 2022 22:23:58 -0700 Subject: [PATCH 4/8] updating proto submodule to latest --- proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proto b/proto index 441303d..b682faf 160000 --- a/proto +++ b/proto @@ -1 +1 @@ -Subproject commit 441303d53110b6ab5f485065d467c36f6793ba73 +Subproject commit b682faf1c987039ba0b055b1522d4147649cb544 From 2f80c9866aa6819afd857b029e7149c5c8d28856 Mon Sep 17 00:00:00 2001 From: Jm Casler Date: Fri, 25 Mar 2022 22:30:43 -0700 Subject: [PATCH 5/8] updating proto submodule to latest --- proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proto b/proto index b682faf..1542d47 160000 --- a/proto +++ b/proto @@ -1 +1 @@ -Subproject commit b682faf1c987039ba0b055b1522d4147649cb544 +Subproject commit 1542d47362f3980c77ceb43ed6e3796ad7c61c46 From 13fd4ba61455cab29f529501795e5d714b4d817e Mon Sep 17 00:00:00 2001 From: Jm Casler Date: Sat, 26 Mar 2022 09:32:15 -0700 Subject: [PATCH 6/8] updating proto submodule to latest --- proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proto b/proto index 1542d47..3689ca4 160000 --- a/proto +++ b/proto @@ -1 +1 @@ -Subproject commit 1542d47362f3980c77ceb43ed6e3796ad7c61c46 +Subproject commit 3689ca4bde316dca2601c2a2f91fa71204f7fa43 From f7afb9ff15150c419bcae82b025cf8289e461c5d Mon Sep 17 00:00:00 2001 From: Jm Casler Date: Tue, 29 Mar 2022 20:04:43 -0700 Subject: [PATCH 7/8] updating proto submodule to latest --- proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proto b/proto index 3689ca4..a4e6869 160000 --- a/proto +++ b/proto @@ -1 +1 @@ -Subproject commit 3689ca4bde316dca2601c2a2f91fa71204f7fa43 +Subproject commit a4e6869fc563a9e07aaace5bf68bd060a23a5b51 From 0939022cb49488c38f10777490e8497a038f8f46 Mon Sep 17 00:00:00 2001 From: Jm Casler Date: Tue, 29 Mar 2022 21:44:51 -0700 Subject: [PATCH 8/8] updating proto submodule to latest --- proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proto b/proto index a4e6869..99ce578 160000 --- a/proto +++ b/proto @@ -1 +1 @@ -Subproject commit a4e6869fc563a9e07aaace5bf68bd060a23a5b51 +Subproject commit 99ce57802da9e8a3106d29b94e14e4a090cde3b3