meshtastic/docs/settings/moduleconfig/external-notification.mdx

134 lines
4.1 KiB
Plaintext
Raw Normal View History

2022-06-25 00:39:41 -07:00
---
id: external-notification
2022-06-29 08:55:33 -07:00
title: External Notification Module Configuration
2022-06-25 00:39:41 -07:00
sidebar_label: External Notification
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
:::warning
GPIO access is fundamentally dangerous because invalid options can physically damage or destroy your hardware. Ensure that you fully understand the schematic for your particular device before trying this as we do not offer a warranty. Use at your own risk.
This module requires attaching a peripheral accessory to your device. It will not work without one.
:::
2022-06-29 12:08:30 -07:00
The External Notification Module will allow you to connect a buzzer, speaker, LED, or other device to notify you when a message has been received from the mesh network.
2022-06-25 00:39:41 -07:00
2022-06-29 12:08:30 -07:00
## External Notification Module Config Values
2022-06-25 00:39:41 -07:00
2022-06-29 12:08:30 -07:00
### Enabled
2022-06-25 00:39:41 -07:00
2022-06-29 12:08:30 -07:00
Enables the external notification module.
2022-06-25 00:39:41 -07:00
2022-06-29 12:08:30 -07:00
### Alert when receiving a bell
2022-06-25 00:39:41 -07:00
2022-06-29 12:08:30 -07:00
Specifies if an alert should be triggered when receiving an incoming bell.
2022-06-25 00:39:41 -07:00
2022-06-29 12:08:30 -07:00
### Alert when receiving a message
2022-06-25 00:39:41 -07:00
2022-06-29 12:08:30 -07:00
Specifies if an alert should be triggered when receiving an incoming message.
2022-06-25 00:39:41 -07:00
2022-06-29 12:08:30 -07:00
### Active
2022-06-25 00:39:41 -07:00
2022-06-29 12:08:30 -07:00
Specifies whether the external circuit is triggered when the device's GPIO is low or high.
2022-06-25 00:39:41 -07:00
2022-06-29 12:08:30 -07:00
### GPIO to monitor
2022-06-25 00:39:41 -07:00
2022-06-29 12:08:30 -07:00
Specifies the GPIO that your external circuit is attached to on the device.
2022-06-25 00:39:41 -07:00
2022-06-29 12:08:30 -07:00
### How long monitored GPIO is triggered
2022-06-25 00:39:41 -07:00
2022-06-29 12:08:30 -07:00
Specifies how long in milliseconds you would like your external circuit to be triggered.
2022-06-25 00:39:41 -07:00
2022-06-29 12:08:30 -07:00
Default of 0 is 1000ms
2022-06-25 00:39:41 -07:00
2022-06-29 12:08:30 -07:00
## External Notification Module Config Client Availability
2022-06-25 00:39:41 -07:00
<Tabs
groupId="settings"
2022-06-29 12:08:30 -07:00
defaultValue="flasher"
2022-06-25 00:39:41 -07:00
values={[
{label: 'Android', value: 'android'},
2022-06-29 12:08:30 -07:00
{label: 'Apple', value: 'apple'},
2022-06-25 00:39:41 -07:00
{label: 'CLI', value: 'cli'},
2022-06-29 12:08:30 -07:00
{label: 'Flasher', value: 'flasher'},
2022-06-25 00:39:41 -07:00
{label: 'Web', value: 'web'},
]}>
2022-06-29 12:08:30 -07:00
<TabItem value="android">
2022-06-25 00:39:41 -07:00
:::info
2022-06-29 12:08:30 -07:00
External notification module config is not available for Android.
2022-06-25 00:39:41 -07:00
:::
2022-06-29 12:08:30 -07:00
</TabItem>
<TabItem value="apple">
2022-06-25 00:39:41 -07:00
:::info
2022-06-29 12:08:30 -07:00
All external notification module config options are available on iOS, iPadOS and macOS at Settings > Modules > External Notification.
2022-06-25 00:39:41 -07:00
:::
2022-06-29 12:08:30 -07:00
</TabItem>
<TabItem value="cli">
2022-06-25 00:39:41 -07:00
2022-06-29 12:08:30 -07:00
All external noftification module config options are available in the python CLI. Example commands are below:
2022-06-25 00:39:41 -07:00
2022-06-29 12:08:30 -07:00
| Setting | Acceptable Values | Default |
| :-----------------------------------: | :----------------------: | :-----: |
| ext_notification_module_enabled | `true`, `false` | `false` |
| ext_notification_module_active | `true`, `false` | `false` |
| ext_notification_module_alert_bell | `true`, `false` | `false` |
| ext_notification_module_alert_message | `true`, `false` | `false` |
| ext_notification_module_output | `integer` | `0` |
| ext_notification_module_output_ms | `integer` (milliseconds) | `0` |
2022-06-25 00:39:41 -07:00
2022-06-29 12:08:30 -07:00
```shell title="Enable/Disable External Notification Module"
2022-06-25 00:39:41 -07:00
meshtastic --set ext_notification_module_enabled true
meshtastic --set ext_notification_module_enabled false
```
2022-06-29 12:08:30 -07:00
```shell title="Enable/Disable alert on incoming bell"
meshtastic --set ext_notification_module_alert_bell true
meshtastic --set ext_notification_module_alert_bell false
2022-06-25 00:39:41 -07:00
```
2022-06-29 12:08:30 -07:00
```shell title="Set GPIO active high / low (defalut of false is low)"
meshtastic --set ext_notification_module_active false
meshtastic --set ext_notification_module_active true
```
2022-06-25 00:39:41 -07:00
2022-06-29 12:08:30 -07:00
```shell title="Enable/Disable alert on incoming message"
meshtastic --set ext_notification_module_alert_message true
meshtastic --set ext_notification_module_alert_message false
```
2022-06-25 00:39:41 -07:00
2022-06-29 12:08:30 -07:00
```shell title="Set GPIO to monitor to 21"
meshtastic --set ext_notification_module_output 21
2022-06-25 00:39:41 -07:00
```
2022-06-29 12:08:30 -07:00
```shell title="Set monitored GPIO output duration (default of 0 is 1000ms)"
meshtastic --set ext_notification_module_output_ms 0
2022-06-25 00:39:41 -07:00
meshtastic --set ext_notification_module_output_ms 1500
```
2022-06-29 12:08:30 -07:00
</TabItem>
<TabItem value="flasher">
2022-06-25 00:39:41 -07:00
:::info
2022-06-29 12:08:30 -07:00
External Notification module config is not available in the Flasher.
2022-06-25 00:39:41 -07:00
:::
</TabItem>
<TabItem value="web">
:::info
2022-06-29 12:08:30 -07:00
External Notification module config is not available for the Web UI.
2022-06-25 00:39:41 -07:00
:::
2022-06-29 12:08:30 -07:00
2022-06-25 00:39:41 -07:00
</TabItem>
</Tabs>
2022-06-29 12:08:30 -07:00
:::tip
Once module settings are changed, a **reset** is required for them to take effect.
:::