Commit Graph

71 Commits

Author SHA1 Message Date
Kevin Hester
3bbbead497 fix formatting 2021-02-26 15:47:52 +08:00
iz1kga
a29076dc8e unit & cosmetic 2021-02-15 14:41:55 +01:00
iz1kga
6cd8c17df5 fix missing datetime 2021-02-15 14:20:13 +01:00
iz1kga
6706c111a6 fixed decimal places and LastHeard 2021-02-15 11:35:17 +01:00
iz1kga
c0e374430b cast data as string in order to avoid concatenation error 2021-02-12 22:50:14 +01:00
iz1kga
f7ec8cda7e First Try to solve issue #54 by IZ1IVA adding the feature requested 2021-02-12 22:38:22 +01:00
Kevin Hester
0de908b8e0 cleanup fromStr 2021-01-29 12:25:09 +08:00
Kevin Hester
9c1232be79 1.1.33 Improve channel/device settings support
Allow setting to arbitrary byte arrays by preceding the string with 0x
for things like

meshtastic --setchan psk 0x1a1a1a1a2b2b2b2b1a1a1a1a2b2b2b2b1a1a1a1a2b2b2b2b1a1a1a1a2b2b2b2b --info
2021-01-29 09:51:56 +08:00
Kevin Hester
5a56207440 1.1.31 bury taptun2 deeper so that windows can't accidentally touch it 2020-12-31 09:17:16 +08:00
Kevin Hester
3df8a16de1 1.1.30 oops - need to short circuit the tunnel check BEFORE the and 2020-12-28 09:37:40 +08:00
Kevin Hester
3bfec71e0a don't touch tunnel on platforms where it might be missing 2020-12-27 16:03:33 +08:00
Kevin Hester
728d7f4a1d 1.1.28 hopefully fix windows 2020-12-24 20:12:55 +08:00
Kevin Hester
fff7857ace only require pytap if user tries to run 'mesh-tunnel' 2020-12-24 13:24:35 +08:00
Kevin Hester
7f66d324b3 allow arbitrary subnets for the ip tunnel 2020-12-23 17:45:54 +08:00
Kevin Hester
e59fe9af72 IP tunnel almost works #35 2020-12-23 17:32:36 +08:00
Kevin Hester
8c4d48b956 add beginnings of tunnel code #35 2020-12-23 12:05:08 +08:00
Kevin Hester
020d2093f0 add warning about is_router 2020-12-21 14:46:52 +08:00
Kevin Hester
57e526e675 Merge branch 'master' into dev 2020-12-15 16:34:14 +08:00
Kevin Hester
bdcca88ac4 Merge pull request #38 from crossan007/add-version-cli-flag
add --version cli flag
2020-12-15 16:18:21 +08:00
Kevin Hester
02342ce395 Add --setch-shortfast and --setch--longslow 2020-12-15 13:39:00 +08:00
Kevin Hester
6bd1fc5e1e make --gpiowatch kinda work (rough) 2020-12-13 16:12:02 +08:00
Kevin Hester
11f8c33e88 Add --sendping for reply testing 2020-12-13 12:55:18 +08:00
Charles Crossan
538c6d2b4d add --version cli flag 2020-12-10 20:19:08 -05:00
Kevin Hester
afbfd4fe80 1.1.21 for https://github.com/meshtastic/Meshtastic-device/issues/536 2020-12-10 11:37:57 +08:00
Kevin Hester
9e25fbc670 add setlat/setlon support for
https://github.com/meshtastic/Meshtastic-device/issues/536

meshtastic --setlat 32.7767 --setlon -96.7970 --setalt 1337
2020-12-09 11:43:06 +08:00
Kevin Hester
3645cff97e fix problems found in sanity test 2020-12-09 09:41:49 +08:00
Kevin Hester
1f91f541ef add sanity prerelease tests 2020-12-09 09:21:41 +08:00
Kevin Hester
78e70803d7 add crude GPIO read support
bin/run.sh --dest \!2462abf84098 --gpiord 16
2020-12-07 13:13:27 +08:00
Kevin Hester
401de19bf7 WIP add gpiowr:
bin/run.sh --dest \!2462abf84098 --gpiowr 4 1
2020-12-07 12:42:06 +08:00
Kevin Hester
5a377cce3e remove unneeded subscribe 2020-11-15 08:16:11 +08:00
Kevin Hester
a206297b75 Merge pull request #32 from timgunter/add_set_url
Add setURL() method to MeshInterface
2020-10-28 18:42:52 -07:00
Gunter Tim
a7fbfcb948 Add setURL() method to MeshInterface 2020-10-25 11:24:09 -07:00
Gunter Tim
647b3ec7bc Added --setowner to main 2020-10-18 13:16:04 -07:00
Kevin Hester
acdd056676 allow a bit more time for GPS locking in router mode 2020-10-08 10:37:59 +08:00
Kevin Hester
8e808292dc 1.1.0 add new --set-router and --unset-router options
for https://github.com/meshtastic/Meshtastic-device/issues/376
2020-10-06 14:46:47 +08:00
geeksville
25eea6c5b9 1.0.14 fix #23 I busted setstr, thanks @mc-hamster for the headup 2020-09-27 10:46:46 -07:00
geeksville
db9d917342 fix default behavior of debug output 2020-09-25 15:22:34 -07:00
geeksville
46f876c13e Merge branch 'master' into dev 2020-09-25 15:06:14 -07:00
Tim Gunter
705c9e9e9e Added "seturl" option to main app 2020-09-20 11:06:41 +01:00
geeksville
d789bff9cb WIP - adding TCP client, still need to use recv/send instead of read/write 2020-09-19 12:53:19 -07:00
geeksville
e4a424ccee support new --set factory_reset true preferences option 2020-09-19 11:19:03 -07:00
geeksville
dd45429576 fix #20 - allow setting binary arrays (i.e. psk) with strings of hex digits 2020-09-18 10:05:49 -07:00
geeksville
73cae01c32 add --qr to show qr code 2020-09-15 17:51:15 -07:00
geeksville
1214482ccf 1.0.6 add a channelURL property
Example usage:
```
meshtastic --setchan tx_power 100 --info
Trigger powerFSM 9
Connected to radio
Setting channel parameter tx_power to 100
Writing modified preferences to device
my_node_num: 2883444536
has_gps: true
num_channels: 13
region: "1.0-US"
hw_model: "tbeam"
firmware_version: "1.0.0"
packet_id_bits: 32
current_packet_id: 816090843
node_num_bits: 32
message_timeout_msec: 300000
min_app_version: 172

preferences {
  position_broadcast_secs: 900
  send_owner_interval: 4
  wait_bluetooth_secs: 120
  screen_on_secs: 300
  phone_timeout_secs: 900
  phone_sds_timeout_sec: 7200
  mesh_sds_timeout_secs: 7200
  sds_secs: 31536000
  ls_secs: 3601
}
channel_settings {
  tx_power: 100
  modem_config: Bw125Cr48Sf4096
  psk: "\324\361\273: )\007Y\360\274\377\253\317Ni\277"
  name: "Default"
}

Channel URL https://www.meshtastic.org/c/#CGQYAyIQ1PG7OiApB1nwvP-rz05pvyoHRGVmYXVsdA==
Nodes in mesh:
{'num': 2883444536, 'user': {'id': '!2462abdddf38', 'longName': 'Bob b', 'shortName': 'Bb', 'macaddr': 'JGKr3d84'}, 'position': {'batteryLevel': 100, 'time': 315969731}}
{'num': 682754228, 'user': {'id': '!246f28b200b4', 'longName': 'Bob b', 'shortName': 'Bb', 'macaddr': 'JG8osgC0'}, 'position': {'batteryLevel': 79, 'time': 316593914}, 'snr': 9.5}
{'num': 2441803616, 'user': {'id': '!5002918af760', 'longName': 'ryan', 'shortName': 'r', 'macaddr': 'UAKRivdg'}, 'position': {'batteryLevel': 61, 'time': 316497304}, 'snr': 10.0}
{'num': 862631397, 'user': {'id': '!c44f336ab5e5', 'longName': 'Unknown b5e5', 'shortName': '?E5', 'macaddr': 'xE8zarXl'}, 'position': {'time': 1597965319}, 'snr': 13.25}
{'num': 2441803548, 'user': {'id': '!5002918af71c', 'longName': 'Unknown f71c', 'shortName': '?1C', 'macaddr': 'UAKRivcc'}, 'position': {'batteryLevel': 47, 'time': 316494981}, 'snr': 9.5}
{'num': 82599254, 'user': {'id': '!fd1004ec5d56', 'longName': 'Unknown 5d56', 'shortName': '?56', 'macaddr': '/RAE7F1W'}, 'position': {}, 'snr': 9.25}
{'num': 2885173400, 'user': {'id': '!2462abf84098', 'longName': 'Unknown 4098', 'shortName': '?98', 'macaddr': 'JGKr+ECY'}, 'position': {'batteryLevel': 4, 'time': 315966200}, 'snr': 10.75}
```
2020-09-15 17:32:09 -07:00
geeksville
6f942c282d add a --setchan option for setting channel parameters 2020-09-15 17:11:23 -07:00
geeksville
be8c654eea 1.0.5 fix #14, let users set bool,float or string params.
Example usage:

Or to configure an ESP32 based board to join a wifi network as a station (wifi support in the device code is coming soon):

```
meshtastic --set wifi_ap_mode false --setstr wifi_ssid mywifissid --setstr wifi_password mywifipsw
```

Or to configure an ESP32 to run as a Wifi access point:

```
meshtastic --set wifi_ap_mode true --setstr wifi_ssid mywifissid --setstr wifi_password mywifipsw
```
2020-09-15 09:28:54 -07:00
Jm Casler
69eac1a6d0 Update __main__.py 2020-08-31 21:10:34 -07:00
geeksville
9da57e2d12 0.9.1 make it possible to see seriallog while sending text commands
for https://github.com/meshtastic/Meshtastic-python/issues/5
2020-08-02 13:20:17 -07:00
geeksville
32f3c504d9 0.7.9 add sendPosition(lat, lng, alt) method also...
Use this method for the --settime command line flag - which sets the device
time to be the same as the local computers time (in UTC)

    def sendPosition(self, latitude=0.0, longitude=0.0, altitude=0, timeSec=0, destinationId=BROADCAST_ADDR, wantAck=False, wantResponse=False):
        """
        Send a position packet to some other node (normally a broadcast)

        Also, the device software will notice this packet and use it to automatically set its notion of
        the local position.

        If timeSec is not specified (recommended), we will use the local machine time.
        """
2020-07-05 12:01:35 -07:00
geeksville
2c82e5f420 remove elipsis 2020-06-26 15:58:02 -07:00