Merge zjs81/dev into ez_share_urlimage_PR

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
ZIERandCopilot committed 2026-10-13 10:16:13 +02:00
commit 4000c49213
152 files changed
+28635 -8600

No files matched your search

+3 -1
View File
@@ -28,6 +28,7 @@ MeshCore Open is an open-source Flutter client for MeshCore LoRa mesh networking
15. [Companion Radio Statistics](radio-statistics.md) - Noise, signal metrics, and airtime
16. [Troubleshooting](troubleshooting.md) - BLE, USB, browser, and firmware issues
17. [Review Mode](review-mode.md) - Simulated radio and reviewer instructions for Google Play and App Store review
18. [Network Map](network-map.md) - Online repeater map, adding and managing repeaters from it, opt-in uploads, and hiding a repeater
## App Overview
@@ -53,8 +54,9 @@ MeshCore Open connects to MeshCore LoRa mesh radios over BLE, USB, or TCP. Once
| Mesh image encoding/reconstruction | Local after model installation |
| On-device translation | Local after model installation |
| Model downloads | Internet required |
| GIF search/display and URL image previews | Internet required to retrieve content |
| GIF search/display, URL image previews, and IPFS image/file uploads | Internet required to upload or retrieve content |
| Map display | Cached tiles work offline; uncached tiles need internet |
| Online network map and opt-in uploads | Internet required |
| Terrain LOS analysis | Elevation lookup needs internet unless the required data is already cached |
## Keeping documentation current
+8
View File
@@ -268,6 +268,14 @@ Enable URL images per contact in Chat → overflow → Contact Settings, or per
The message sends a reference; image retrieval needs internet access and makes requests to the relevant host or gateway. This differs from [image packets transmitted over the mesh](image-messages.md). With previews disabled, the chat may indicate that a message contains a possible image URL.
## Share an Image via IPFS
1. Configure **App Settings → IPFS provider configuration**. Choose Pinata, Filebase, or **Custom (Kubo)** for self hosted or other, then set the upload endpoint, upload gateway, and any required API key. See [IPFS provider configuration](settings.md#ipfs-provider-configuration).
2. In a direct or channel chat, open the composer’s **+** menu and choose **Send image or file via IPFS**.
3. Pick an image or file. The app uploads it to the configured provider and inserts the resulting link into the draft. When an upload gateway is configured, the link is `http://gateway/ipfs/CID`; otherwise it is `ipfs://CID`. Review or edit the draft, then send it as a normal text message; uploading does not send the chat message automatically.
Uploads and image previews need internet access. The file is stored with the selected provider; the mesh carries only the text link, not the file bytes. IPFS content is publicly addressable, so only upload content suitable for sharing publicly. A recipient needs internet access and a working IPFS gateway to retrieve it. If the upload link plus existing draft exceeds the message limit, the app may shorten the existing draft to make room for the link.
## Regions, Mesh Images, and Radio Statistics
See [Regions](regions.md) for default scopes, per-message labels, and reply-region inheritance; [Image Messages](image-messages.md) for model installation and reconstruction; and [Companion Radio Statistics](radio-statistics.md) for connected-radio measurements.
+7 -3
View File
@@ -198,13 +198,17 @@ UUID, name, 32-byte secret, hashtag channel list. Shared via QR code.
Message/contact metadata and preferences use `SharedPreferences` (JSON-serialized); there is no SQLite database. Model bundles, received image bitstreams/reconstructions, and map caches use files. Region metadata is persisted with channel messages; older records without it load with a null region.
Per-channel data is keyed by a channel ID, not the radio slot: `<channelId>` is the first 8 bytes of SHA-256(`"meshcore-channel:"` + PSK) as 16 hex characters, so a reused slot starts clean and a re-added channel gets its history back. Each channel sync saves the slot-to-ID map (`channel_slot_ids_<pubKey10>`) and reloads any slot whose channel changed since the last connection; queued channel messages are not fetched until that map is confirmed. Older slot-keyed data is moved once per radio (`channel_storage_v2_<pubKey10>`) using the cached channel list; slots with no cached PSK keep their old keys unread.
| Data | Storage Key Pattern | Scope |
|---|---|---|
| Contacts | `contacts<pubKey10>` | Per device identity |
| Messages | `messages_<pubKey10><contactKey>` | Per device + contact |
| Channel Messages | `channel_messages_<pubKey10><index>` | Per device + channel |
| Channel Messages | `channel_messages_<pubKey10>_<channelId>` | Per device + channel |
| Channels | `channels<pubKey10>` | Per device identity |
| Channel Order | `channel_order_<pubKey10>` | Per device identity |
| Channel Order | `channel_order_<pubKey10>` (list of channel IDs) | Per device identity |
| Channel Slot Map | `channel_slot_ids_<pubKey10>` | Per device identity |
| Channel Settings | `channel_{smaz,cyr2lat,url_images}_<pubKey10>_<channelId>`, `channel_cyr2lat_<pubKey10>_profile_<channelId>` | Per device + channel |
| Contact Groups | `contact_groups<pubKey10>` | Per device identity |
| Communities | `communities_v1<pubKey10>` | Per device identity |
| Unread Counts | `contact_unread_count<pubKey10>` | Per device identity |
@@ -212,7 +216,7 @@ Message/contact metadata and preferences use `SharedPreferences` (JSON-serialize
| App Settings | `app_settings` | Global |
| Path History | `path_history_<contactKey>` | Per contact |
| Region Names | `regions` | Global |
| Channel Region | `channel_region_<pubKey10><index>` | Per device + channel |
| Channel Region | `channel_region_<pubKey10>_<channelId>` | Per device + channel |
| Default Region | `default_region_<pubKey10>` | Per device identity |
## Auto-Add Configuration Bitmask
+3 -1
View File
@@ -63,7 +63,9 @@ Name limits count the `#` and any community prefix, so the name stored on the ra
|---|---|
| Edit | Change name, PSK (with a dice icon to generate a random PSK), SMAZ compression toggle (compresses outgoing messages to allow longer text within the byte limit), Cyr2Lat encoding toggle (transliterates Cyrillic to Latin for compatibility), or "Enable URL images" toggle (previews image links; requires internet) |
| Mute / Unmute | Toggle push notification suppression for this channel |
| Delete | Remove the channel from the device (confirmation required) |
| Delete | Remove the channel from the device and delete its messages, settings, region and images (confirmation required) |
Channel history and settings belong to the channel's key, not its slot on the radio. A slot reused for another channel (here or in another app) starts empty, editing a channel's PSK starts a fresh history, and adding a channel again with its old PSK brings its history back.
## Channel Chat
+1 -1
View File
@@ -126,4 +126,4 @@ Add emoji reactions to incoming messages (not your own):
## Image and translation setup
Enable URL images in the contact’s chat settings to preview supported image links; see [URL images](additional-features.md#url-image-previews). Mesh image packets are currently sent through channel chat, not this direct-message composer. Set up translation and download a model in [App Settings](settings.md#translation) before using incoming or pre-send translation.
Enable URL images in the contact’s chat settings to preview supported image links; see [URL images](additional-features.md#url-image-previews). Images and files can also be uploaded to a configured IPFS provider from the **+** menu in direct or channel chat; the resulting URL is sent as ordinary text. See [sharing via IPFS](additional-features.md#share-an-image-via-ipfs) and [IPFS provider configuration](settings.md#ipfs-provider-configuration). Mesh image packets are currently sent through channel chat, not the direct-message composer. Set up translation and download a model in [App Settings](settings.md#translation) before using incoming or pre-send translation.
+50
View File
@@ -0,0 +1,50 @@
# Network Map
The online network map at [map.meshcoreopen.org](https://map.meshcoreopen.org) shows MeshCore repeaters, room servers, links between them, traffic and measured coverage. It is built from header-only packet records that opted-in MeshCore Open users upload. Viewing the map never requires uploading.
## Viewing the map in the app
Open the map and use the **Local / Online / Both** switch at the top.
| View | Shows |
|---|---|
| Local | Your contacts at the positions their adverts give. This data stays on the device. |
| Online | Repeater and room server hexagons and links from the network map. |
| Both | Online hexagons under your local markers. Repeaters already in your contacts are marked "In your contacts". |
Hexagons are about 2–3 km across and never show a node's exact position. A dashed outline means the repeater has only been reported by one uploader so far ("single source"). When the visible area is larger than 20° the map asks you to zoom in.
Tap a hexagon to see the repeater's name, type, status and last-seen time, plus a reachability hint:
- **Heard by your radio**: your radio knows this node.
- **In your area**: it is within about 50 km of your radio's position.
- **Far away**: management requests won't reach it over the mesh.
**Add to contacts** saves the repeater with flood routing and no location. Its real location arrives with its next advert. **Manage** adds it if needed and opens the normal repeater or room server login.
## Contributing data (opt-in)
Turn on **Settings → App settings → Network map** to upload while a radio is connected. Uploading is off by default.
The first time a radio connects, the app asks once whether to share. **Share** turns uploading on and **No thanks** leaves it off. Either way the question is not asked again; the setting can be changed at any time.
What is uploaded, about once a minute:
- For every packet your radio hears: payload type, route type, path hashes, hop count, SNR, RSSI, size rounded to 16 bytes, a packet hash, and the time rounded to the minute.
- For repeater and room server adverts with a valid signature: public key, name, type and the advertised location snapped to a ~2 km grid.
- Your radio's own position snapped to the same grid (if the radio has one) and its frequency, bandwidth, spreading factor and coding rate.
- A random install ID that changes every 24 hours.
What is never uploaded: message text or payloads, channel or community names and hashes, direct-message sender/recipient hashes, region transport codes, exact coordinates, and anything about chat or sensor nodes beyond the header-only packet record.
The server does not store IP addresses and keeps raw records for 7 days. See the map's [privacy page](https://map.meshcoreopen.org/privacy) for details.
## Hiding a repeater
Repeater and room server owners can hide their node by putting 🚫 anywhere in its name and sending a flood advert. It disappears from the map and appears in the packet viewer only as "Anonymous repeater". To show it again, remove the emoji; it reappears with its first advert after 7 days without one. The delay stops anyone from undoing an owner's opt-out with a faked advert. The emoji uses 4 of the name's 32 bytes.
## Limitations
- Uploading only happens while the app is connected to a radio. On iOS most contributions come from foreground use.
- Packets larger than the companion frame limit (172 bytes) are never forwarded to the app, so they are not counted.
- Coverage shows how well phones hear repeaters; a handheld's own transmissions reach repeaters less reliably.
+14
View File
@@ -158,6 +158,20 @@ Not shown on web. Controls on-device message translation powered by a locally-do
The auto-translate and composer toggles are disabled until **Enable translation** is on.
### IPFS Provider Configuration
Open **App Settings → IPFS provider configuration** to configure IPFS uploads and previews:
- **Public IPFS gateway**: Select Pinata, Filebase, a custom gateway, or deactivate it. This gateway lets the app load bare IPFS content IDs in image links.
- **Upload provider**: Select Pinata, Filebase, a custom provider, or deactivate uploads. Presets fill in the provider’s upload endpoint and upload gateway; custom setups can edit both.
- **API key**: Enter the credential required by the selected provider. The value is masked in the settings dialog. Pinata and Filebase presets require provider credentials.
For a self-hosted Kubo node, choose **Custom (Kubo)** and configure its RPC upload endpoint and HTTP gateway. The preset defaults use `http://127.0.0.1:5001/api/v0/add` and `http://127.0.0.1:8080/ipfs/`; replace these with addresses reachable from the device running MeshCore Open. Do not expose Kubo’s unauthenticated RPC API to the public internet.
When an **upload gateway** is configured, uploaded content is added to the draft as an HTTP(S) gateway URL in the form `http://gateway/ipfs/CID`. If it is blank, the app uses `ipfs://CID`. The public gateway setting is separate and is used to retrieve bare IPFS content IDs in incoming links.
Save the settings before sharing. The upload action is shown in the chat composer only when an upload endpoint is configured. Provider accounts, credentials, limits, and terms are managed by the provider, not MeshCore Open. See [sharing images via IPFS](additional-features.md#share-an-image-via-ipfs) for the chat workflow.
### Image Messages
Image message controls live in App Settings → Messaging. Turn on **Enable image messages** first; **Process images automatically** and the image model download/cancel/removal controls then appear. Automatic processing reconstructs every image as it arrives and uses about 2 GB of memory for a second each time; leave it off to reconstruct with a tap. See [Image Messages](image-messages.md) for firmware, native-runtime, storage, and memory requirements.