Updated Notify_lametric (markdown)

Chris Caron 2020-09-11 17:52:00 -04:00
parent 345cc12d0a
commit 3acee93b7d

@ -24,11 +24,11 @@ Using Cloud Mode, you will interface with your LaMetric Time device through the
4. You will be able to **Publish** your app once you've finished setting it up. This will allow it to be accessible from the internet using the `cloud` mode of this Apprise Plugin. The **Publish** button shows up from within the settings of your Lametric App upon clicking on the **Draft Vx** folder (where `x` is the version - usually a 1)
5. When you've completed the above steps, the site would have provided you a **PUSH URL** that looks like this:
- `https://developer.lametric.com/api/v1/dev/widget/update/com.lametric.{app_id}/{app_version}`
- `https://developer.lametric.com/api/v1/dev/widget/update/com.lametric.{app_id}/{app_ver}`
You will need to record the `{app_id}` and `{app_version}` to use the `cloud` mode.
You will need to record the `{app_id}` and `{app_ver}` to use the `cloud` mode.
The same page should also provide you with an **Access Token**. It's approximately 86 characters with two equal (`=`) characters at the end of it. This becomes your `{app_access_token}`. Here is an example of what one might look like:
The same page should also provide you with an **Access Token**. It's approximately 86 characters with two equal (`=`) characters at the end of it. This becomes your `{token}`. Here is an example of what one might look like:
- `K2MxWI0NzU0ZmI2NjJlZYTgViMDgDRiN8YjlmZjRmNTc4NDVhJzk0RiNjNh0EyKWW==`
### Syntax
@ -39,8 +39,8 @@ Device Mode syntaxes are as follows:
* `lametric://{userid}:{apikey}@{hostname}:{port}`
Cloud Mode syntax is as follows:
* `lametric://{app_access_token}@{app_id}`
* `lametric://{app_access_token}@{app_id}/{app_version}`
* `lametric://{token}@{app_id}`
* `lametric://{token}@{app_id}/{app_ver}`
### Parameter Breakdown
The breakdown of parameters depend on whether you are using the Cloud Mode or Device Mode.
@ -61,9 +61,9 @@ The breakdown of parameters depend on whether you are using the Cloud Mode or De
#### Cloud Mode
| Variable | Required | Description
| ----------- | -------- | -----------
| app_id | Yes | Your Indicator App's **Application ID** can be found in your *Indicator App Configuration**. You can access your application's configuation from the LaMetric's website [here](https://developer.lametric.com/applications/).
| app_access_token | Yes | Your Indicator App's **Access Token** can be found in your *Indicator App Configuration**. You can access your application's configuation from the LaMetric's website [here](https://developer.lametric.com/applications/).
| app_version | No | The version associated with your Indicator App. If this isn't specified, then the default value of `1` (One) is used.
| app_id | Yes | Your Indicator App's **Application ID** can be found in your *Indicator App Configuration**. You can access your application's configuration from the LaMetric's website [here](https://developer.lametric.com/applications/).
| token | Yes | Your Indicator App's **Access Token** can be found in your *Indicator App Configuration**. You can access your application's configuation from the LaMetric's website [here](https://developer.lametric.com/applications/).
| app_ver | No | The version associated with your Indicator App. If this isn't specified, then the default value of `1` (One) is used.
| mode | No | Define the Apprise/Lametric mode to use. This can be either set to `cloud` or `device`. It's worth pointing out that Apprise is smart enough to detect the mode you're using based on the URL you provide it. But for those who want to explicitly provide it's value, they can do so.
#### Example
@ -77,6 +77,6 @@ apprise -vv -b "Test Message Body" lametric://abc123@192.168.1.3
Send a LaMetric Time notification using Cloud Mode (using LaMetrics Developer API):
```bash
# Assuming our {app_id} ABCD1234
# Assuming our {app_access_token} is abcdefg==
# Assuming our {token} is abcdefg==
apprise -vv -b "Test Message Body" lametric://abcdefg==@ABCD1234
```