Merge pull request #358 from meshtastic/13_config_cleanup

Consolidate examples on 1.3 config pages
This commit is contained in:
Garth Vander Houwen 2022-06-26 21:47:42 -07:00 committed by GitHub
commit 372f237ff1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 24 additions and 43 deletions

View file

@ -62,19 +62,14 @@ All display config options are available on iOS, iPadOS and macOS at Settings >
All display config options are available in the python CLI. Example commands are below:
```shell title="Set display_screen_on_secs to default (10 minutes)"
```shell title="Set Screen On Duration (Default of 0 is 10 minutes)"
meshtastic --set screen_on_secs 0
```
```shell title="Set display_screen_on_secs to 120 seconds (2 minutes)"
meshtastic --set screen_on_secs 120
```
```shell title="Set display_auto_screen_carousel_secs to default value of off"
```shell title="Set Auto Carousel Interval (Default of 0 is Off)"
meshtastic --set auto_screen_carousel_secs 0
```
```shell title="Set display_auto_screen_carousel_secs to 120 seconds (2 minutes)"
// Set to 2 Minutes (120 Seconds)
meshtastic --set auto_screen_carousel_secs 120
```

View file

@ -111,22 +111,16 @@ All Position config conmmands are available in the python CLI. Example commands
| fixed_position | `true`, `false` | `false` |
| position_broadcast_smart | `true`, `false` | `true` |
| position_broadcast_secs | `integer` (seconds) | Default of `0` is 15 Minutes |
| position_flags | `POS_UNDEFINED`, `POS_ALTITUDE`, `POS_ALT_MSL`, `POS_GEO_SEP`, `POS_DOP`, `POS_HVDOP`, `PDOP`, `POS_BATTERY`, `POS_SATINVIEW`, `POS_SEQ_NOS`, `POS_TIMESTAMP` | `POS_UNDEFINED` |
| position_flags | `POS_UNDEFINED`, `POS_ALTITUDE`, `POS_ALT_MSL`, `POS_GEO_SEP`, `POS_DOP`, `POS_HVDOP`, `PDOP`, `POS_BATTERY`, `POS_SATINVIEW`, `POS_SEQ_NOS`, `POS_TIMESTAMP`, `POS_HEADING`, `POS_SPEED` | `POS_UNDEFINED` |
```shell title="Set GPS update interval to default settings (every 30 seconds)"
```shell title="Set GPS update interval (Default of 0 is 30 seconds)"
meshtastic --set gps_update_interval 0
```
```shell title="Set GPS update interval to every 45 seconds"
meshtastic --set gps_update_interval 45
```
```shell title="Set GPS attempt time to default (30 seconds)"
```shell title="Set GPS attempt time (Default of 0 is 30 seconds)"
meshtastic --set gps_attempt_time 0
```
```shell title="Set GPS attempt time to 45 seconds"
meshtastic --set gps_attempt_time 45
```
@ -146,19 +140,13 @@ meshtastic --setlat 37.8651 --setlon -119.5383
meshtastic --set fixed_position false
```
```shell title="Enable smart position broadcast (default)"
```shell title="Enable / Disable Smart position broadcast (Enabled by default)"
meshtastic --set position_broadcast_smart true
```
```shell title="Disable smart position broadcast"
meshtastic --set position_broadcast_smart false
```
```shell title="Set GPS update interval to default settings (every 15 minutes)"
```shell title="Set Position Broadcast Interval (Default of 0 is 15 minutes)"
meshtastic --set position_broadcast_secs 0
```
```shell title="Set GPS update interval to every 60 seconds"
meshtastic --set position_broadcast_secs 60
```
@ -170,11 +158,8 @@ It may take some time to see that the change has taken effect. The GPS location
Include each flag desired separated by a single space.
:::
```shell title="Set Position Flags"
```shell title="Set / Unset Position Flags"
meshtastic --pos-fields POS_ALTITUDE POS_ALT_MSL
```
```shell title="Unset Position Flags"
meshtastic --pos-fields POS_UNDEFINED
```

View file

@ -87,11 +87,8 @@ All WiFi config options are available in the python CLI.
| wifi_password | string | `""` |
| wifi_ssid | string | `""` |
```shell title="Enable SoftAP"
```shell title="Enable / Disable SoftAP"
meshtastic --set wifi_ap_mode true
```
```shell title="Disable SoftAP"
meshtastic --set wifi_ap_mode false
```
@ -99,19 +96,16 @@ meshtastic --set wifi_ap_mode false
meshtastic --set wifi_ap_hidden false
```
```shell title="Set WiFi network"
meshtastic --set wifi_ssid mynetwork
```
```shell title="Set WiFi SSID"
```shell title="Set WiFi network (with spaces)"
meshtastic --set wifi_ssid mynetwork
// With spaces
meshtastic --set wifi_ssid "my network"
```
```shell title="Set WiFi password"
meshtastic --set wifi_password mypassword
```
```shell title="Set WiFi password (with spaces)"
// With spaces
meshtastic --set wifi_password "my password"
```

View file

@ -4,9 +4,16 @@ title: Offline Maps
sidebar_label: Offline Maps
---
The Meshtastic app for iOS, iPadOS and macOS supports the sharing of a .mbtiles file with the app for offline map support.
## macOS TestFlight
There is an open source cross platform mapping program call [QGIS](https://www.qgis.org/en/site/)
A beta macOS application is available in the TestFlight app for macOS using the following link:
to get a mbtiles out of qgis, start with a small area that you are familiar with. Open qgis, and add a openstreetmap source from the left bar (might be under one of the tile headings). Now you should see something in the main map view. zoom to the area you want.
https://testflight.apple.com/join/c8nNl8q1
In the Processing Toolbox (right bar, you may have to show it from the View menu), open Raster Tools > Generate XYZ Tiles (MBTiles)
In Extent, choose Use Map Canvas Extent. This defines the area of the map that will be rendered into the export file
Use a zoom level of 12-17. You can play with this later, but thats a good starting point. Note that every increment of maximum zoom will increase the map size 4x.
Select JPG if there's aerial/satellite imagery, otherwise just use PNG. That will give the best compression.
Finally choose a location for the output file. Click Run and you should eventually get a file that should play nice in the Meshtastic app.