Skip to content

Commit

Permalink
Npm docs setup (#834)
Browse files Browse the repository at this point in the history
* added vuepress to package json
* use vuepress from package json
  • Loading branch information
Legion2 authored Dec 13, 2020
1 parent a7575b2 commit a83f725
Show file tree
Hide file tree
Showing 10 changed files with 10,983 additions and 132 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: "14.x"
- name: Install vuepress
run: npm install -g vuepress
- name: Install build dependencies
run: npm install
- name: Build documentation
run: npm run docs:build
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: "14.x"
- name: Install vuepress
run: npm install -g vuepress
- name: Install build dependencies
run: npm install
- name: Set version tag from git
run: sed -i "s/version_tag/${GITHUB_REF#refs/tags/}/g" docs/.vuepress/config.js
- name: Build documentation
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
.vscode
*_env.ini
**/.DS_Store
node_modules
2 changes: 1 addition & 1 deletion docs/prerequisites/board.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ The boards below need hardware [parts](parts.md) and electronic/hardware compete
|ESP32|X|X|X|X|not tested|X|X|
|ESP8266|X|X|X|not tested|X|X|X|

::: INFO
::: tip INFO
Pilight is only supported on ESP, Arduino UNO handle only 32bits values in our context.
Setup based on HM10 doesn't support some BLE [devices](devices.md#for-ble-devices).
:::
Expand Down
6 changes: 3 additions & 3 deletions docs/prerequisites/devices.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ OpenMQTTGateway is able to scan all the BLE devices that advertise their data so

Exhaustive list [here](https://compatible.openmqttgateway.com/index.php/devices/ble-devices/)

::: INFO
(1) Not supported with HM10.
(2) See https://github.com/atc1441/ATC_MiThermometer
::: tip INFO
- (1) Not supported with HM10.
- (2) See https://github.com/atc1441/ATC_MiThermometer
:::

![devices](../img/OpenMQTTGateway_devices_ble.png ':size=250%')
Expand Down
2 changes: 1 addition & 1 deletion docs/prerequisites/parts.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ Here is below the main parts reference.
|SX1276|-|-|-|X|-|
|A6/A7|-|-|-|-|X|

::: INFO
::: tip INFO
There is a wide range of parts available that may be compatible with OpenMQTTGateway, the ones [listed](https://compatible.openmqttgateway.com/index.php/parts/) are the ones tested and for which you can ask for support. Indeed for other parts we may not have it so as to reproduce the issue, or in the worst case they may not be compatible.
:::
6 changes: 3 additions & 3 deletions docs/use/actuators.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ So as to pilot the GPIO use the following commands with [simple receiving](../up
OFF command:
`mosquitto_pub -t home/OpenMQTTGateway_MEGA/commands/MQTTtoONOFF/setOFF -m 15`

ON command
ON command:
`mosquitto_pub -t home/OpenMQTTGateway_MEGA/commands/MQTTtoONOFF/setON -m 15`

or with [json receiving](../upload/pio.md#api)

OFF command:
`mosquitto_pub -t home/OpenMQTTGateway_MEGA/commands/MQTTtoONOFF -m '{"gpio":15,"cmd":0}'`

ON command
ON command:
`mosquitto_pub -t home/OpenMQTTGateway_MEGA/commands/MQTTtoONOFF -m '{"gpio":15,"cmd":1}'`

## FASTLED
Expand All @@ -28,7 +28,7 @@ ON command
2. Start fire animation (Fire2012)

### Hardware wiring
Theoreticaly it should be possible to use every free IO pin. But after some tests only pin D2 works at WEMOS D1. Other platforms can work.
Theoretically it should be possible to use every free IO pin. But after some tests only pin D2 works at WEMOS D1. Other platforms can work.
The default setting use NEOPIXEL (WS2812B). The simplest wiring is direct connect D2 to data pin of LED stripe and connect VCC/GND to power source. You should also add an capacitor.

## PWM
Expand Down
4 changes: 2 additions & 2 deletions docs/use/ble.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,14 @@ you can also force a scan to be done by the following command:
`mosquitto_pub -t home/OpenMQTTGateway/commands/MQTTtoBT/config -m '{"interval":0}'`

::: tip
With Home Assistant, this command is directly avalaible through MQTT auto discovery as a switch into the HASS OpenMQTTGateway device entities list.
With Home Assistant, this command is directly available through MQTT auto discovery as a switch into the HASS OpenMQTTGateway device entities list.
:::

Once the forced scan has completed, the previous scan interval value will be restored. Forcing a scan command trigger also a BLE connect process after the scan (see below).

The default value `TimeBtwRead` is set into config_BT.h or into your .ini file for platformio users.

::: info
::: tip INFO
For certain devices like LYWSD03MMC OpenMQTTGateway use a connection (due to the fact that the advertized data are encrypted), this connection mechanism is launched after every `ScanBeforeConnect` per default, you can modify it by following the procedure below.
:::

Expand Down
Loading

0 comments on commit a83f725

Please sign in to comment.