mirror of
https://github.com/rzeldent/esp32cam-rtsp.git
synced 2025-11-14 12:08:02 +00:00
Merge pull request #39 from rzeldent/feature/update_moustache
- Use micro-moustache - Update for node 16
This commit is contained in:
6
.github/workflows/main.yml
vendored
6
.github/workflows/main.yml
vendored
@@ -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
|
||||
|
||||
@@ -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
|
||||
@@ -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()}};
|
||||
|
||||
Reference in New Issue
Block a user