Merge pull request #2003 from peerdavid/master

[InfoApp] Show Total, Free and Trash, I also added the file counts (fileCount, trashCount)
master
Gordon Williams 2022-06-28 10:01:16 +01:00 committed by GitHub
commit 42202a2a8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 39 additions and 24 deletions

View File

@ -8,3 +8,4 @@
0.08: Select the color of widgets correctly. Additional settings to hide colon. 0.08: Select the color of widgets correctly. Additional settings to hide colon.
0.09: Larger font size if colon is hidden to improve readability further. 0.09: Larger font size if colon is hidden to improve readability further.
0.10: HomeAssistant integration if HomeAssistant is installed. 0.10: HomeAssistant integration if HomeAssistant is installed.
0.11: Performance improvements.

File diff suppressed because one or more lines are too long

View File

@ -1,7 +1,7 @@
{ {
"id": "bwclk", "id": "bwclk",
"name": "BW Clock", "name": "BW Clock",
"version": "0.10", "version": "0.11",
"description": "BW Clock.", "description": "BW Clock.",
"readme": "README.md", "readme": "README.md",
"icon": "app.png", "icon": "app.png",

View File

@ -1,2 +1,3 @@
0.01: Release 0.01: Release
0.02: Recfactoring and show weather data. 0.02: Recfactoring and show weather data
0.03: Show sizes for used, free and trash through storage.getStats

View File

@ -32,13 +32,22 @@ var screens = [
name: "Software", name: "Software",
items: [ items: [
{name: "Firmw.", fun: () => ENV.VERSION}, {name: "Firmw.", fun: () => ENV.VERSION},
{name: "Git", fun: () => ENV.GIT_COMMIT},
{name: "Boot.", fun: () => getVersion("boot.info")}, {name: "Boot.", fun: () => getVersion("boot.info")},
{name: "Settings.", fun: () => getVersion("setting.info")}, {name: "Settings.", fun: () => getVersion("setting.info")},
{name: "Storage.", fun: () => ""},
{name: " Total", fun: () => ENV.STORAGE>>10},
{name: " Free", fun: () => require("Storage").getFree()>>10},
] ]
} },
{
name: "Storage [kB]",
items: [
{name: "Total", fun: () => storage.getStats().totalBytes>>10},
{name: "Free", fun: () => storage.getStats().freeBytes>>10},
{name: "Trash", fun: () => storage.getStats().trashBytes>>10},
{name: "", fun: () => ""},
{name: "#File", fun: () => storage.getStats().fileCount},
{name: "#Trash", fun: () => storage.getStats().trashCount},
]
},
]; ];

View File

@ -1,7 +1,7 @@
{ {
"id": "info", "id": "info",
"name": "Info", "name": "Info",
"version": "0.02", "version": "0.03",
"description": "An application that displays information such as battery level, steps etc.", "description": "An application that displays information such as battery level, steps etc.",
"icon": "info.png", "icon": "info.png",
"type": "app", "type": "app",
@ -11,7 +11,8 @@
"screenshots": [ "screenshots": [
{"url":"screenshot_1.png"}, {"url":"screenshot_1.png"},
{"url":"screenshot_2.png"}, {"url":"screenshot_2.png"},
{"url":"screenshot_3.png"}], {"url":"screenshot_3.png"},
{"url":"screenshot_4.png"}],
"storage": [ "storage": [
{"name":"info.app.js","url":"info.app.js"}, {"name":"info.app.js","url":"info.app.js"},
{"name":"info.img","url":"info.icon.js","evaluate":true} {"name":"info.img","url":"info.icon.js","evaluate":true}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

BIN
apps/info/screenshot_4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB