Skip to content

Commit

Permalink
update web resources
Browse files Browse the repository at this point in the history
  • Loading branch information
vortigont committed Dec 6, 2023
1 parent 2f28a7e commit 7d839eb
Show file tree
Hide file tree
Showing 9 changed files with 236 additions and 1 deletion.
Binary file modified data/index.html.gz
Binary file not shown.
Binary file modified data/js/embui.js.gz
Binary file not shown.
Binary file modified data/js/espem.js.gz
Binary file not shown.
Binary file added data/js/espem.ui.json.gz
Binary file not shown.
Binary file added data/js/lodash.custom.js.gz
Binary file not shown.
Binary file modified data/js/tz.json.gz
Binary file not shown.
Binary file added data/js/ui_sys.json.gz
Binary file not shown.
234 changes: 234 additions & 0 deletions resources/html/js/espem.ui.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,234 @@
{
"type": "interface",
"version": 1,
"descr": "EspEM UI objects",
"settings": {
"cfg": {
"section": "ui_page_empem_setup",
"label": "ESPEM Setup",
"main": true,
"block": [
{
"section": "set_uart",
"label": "UART GPIO Setup",
"hidden": true,
"block": [
{
"section": "uart_gpio",
"line": true,
"block": [
{
"id": "uart",
"html": "input",
"value": 1,
"type": "number",
"label": "Uart port",
"max": 3,
"step": 1
},
{
"id": "rx",
"html": "input",
"value": -1,
"type": "number",
"label": "RX pin (-1 to disable)",
"min": -1,
"max": 46,
"step": 1
},
{
"id": "tx",
"html": "input",
"value": -1,
"type": "number",
"label": "TX pin (-1 to disable)",
"min": -1,
"max": 46,
"step": 1
}
]
},
{
"id": "set_uart",
"html": "button",
"type": 1,
"label": "Apply"
}
]
},
{
"section": "set_nrgoffset",
"label": "PZEM Options",
"hidden": true,
"block": [
{
"html": "spacer",
"label": "Energy counter options"
},
{
"id": "eoffset",
"html": "input",
"value": 0,
"type": "number",
"label": "Energy counter offset (Wh)"
},
{
"id": "set_nrgoffset",
"html": "button",
"type": 1,
"label": "Apply"
}
]
},
{
"section": "set_mcollector",
"label": "Time Series Collector",
"hidden": true,
"block": [
{
"html": "spacer",
"label": "Pool capacity setup"
},
{
"id": "dctl_collector",
"html": "select",
"label": "Metrics collector state",
"onChange": true,
"section": "options",
"block": [
{ "value": 0, "label": "Disabled" },
{ "value": 1, "label": "Running" },
{ "value": 2, "label": "Paused" }
]
},
{
"section": "t1cmt",
"line": true,
"block": [
{
"html": "comment",
"label": "Tier 1 series"
},
{
"id": "t1mem",
"html": "const",
"label": "Memory: -/-"
}
]
},
{
"section": "t1opts",
"line": true,
"block": [
{
"id": "t1cnt",
"html": "input",
"type": "number",
"label": "Num of samples",
"min": 100,
"step": 100
},
{
"id": "t1int",
"html": "input",
"value": 1,
"type": "number",
"label": "interval (sec.)",
"min": 1,
"step": 1
}
]
},
{
"section": "t2cmt",
"line": true,
"block": [
{
"html": "comment",
"label": "Tier 2 series"
},
{
"id": "t2mem",
"html": "const",
"label": "Memory: -/-"
}
]
},
{
"section": "t2opts",
"line": true,
"block": [
{
"id": "t2cnt",
"html": "input",
"type": "number",
"label": "Num of samples",
"min": 100,
"step": 100
},
{
"id": "t2int",
"html": "input",
"type": "number",
"label": "interval (sec.)",
"min": 5,
"step": 5
}
]
},
{
"section": "t3cmt",
"line": true,
"block": [
{
"html": "comment",
"label": "Tier 3 series"
},
{
"id": "t3mem",
"html": "const",
"label": "Memory: -/-"
}
]
},
{
"section": "t3opts",
"line": true,
"block": [
{
"id": "t3cnt",
"html": "input",
"type": "number",
"label": "Num of samples",
"min": 100,
"step": 100
},
{
"id": "t3int",
"html": "input",
"type": "number",
"label": "interval (sec.)",
"min": 60,
"step": 60
}
]
},
{
"id": "set_mcollector",
"html": "button",
"type": 1,
"label": "Apply"
}
]
},
{
"id": "ui_page_espem_setup",
"html": "button",
"type": 1,
"label": "Exit",
"color": "gray"
}
]
}
}
}
3 changes: 2 additions & 1 deletion resources/respack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ USAGE="Usage: `basename $0` [-h] [-t embuitag] [-f]"

# embui branch/tag name to fetch
embuirepo='https://github.com/vortigont/EmbUI'
embuitag="v2.8.1"
embuitag="v3.1"

#####
# no changes below this point!
Expand Down Expand Up @@ -155,6 +155,7 @@ mv -f newetags.txt $tags

## update local js/css if newer
updlocalgz 'js/espem.js'
updlocalgz 'js/espem.ui.json'
updlocalgz 'css/espem.css'
updlocalgz 'manifest.json'

Expand Down

0 comments on commit 7d839eb

Please sign in to comment.