Merge pull request #39 from rzeldent/feature/update_moustache

- Use micro-moustache
- Update for node 16
This commit is contained in:
rzeldent
2023-02-05 13:21:30 +01:00
committed by GitHub
3 changed files with 6 additions and 6 deletions

View File

@@ -5,9 +5,9 @@ jobs:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up python
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: '3.x'
architecture: 'x64'
@@ -16,7 +16,7 @@ jobs:
- name: Build firmware
run: platformio run
- name: Archive
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: firmware.bin
path: .pio/build/*/firmware.bin

View File

@@ -38,4 +38,4 @@ build_flags =
lib_deps =
prampec/IotWebConf @ ^3.2.1
geeksville/Micro-RTSP @ ^0.1.6
rzeldent/micro-moustache @ ^1.0.0
rzeldent/micro-moustache@^1.0.1

View File

@@ -70,7 +70,7 @@ void handle_root()
// Wifi Modes
const char *wifi_modes[] = {"NULL", "STA", "AP", "STA+AP"};
const moustache_variable_t substitutions[] = {
moustache_variable_t substitutions[] = {
// Config Changed?
{"ConfigChanged", String(config_changed)},
// Version / CPU
@@ -128,7 +128,7 @@ void handle_restart()
return;
}
const moustache_variable_t substitutions[] = {
moustache_variable_t substitutions[] = {
{"AppTitle", APP_TITLE},
{"AppVersion", APP_VERSION},
{"ThingName", iotWebConf.getThingName()}};