Update 0.03 - Show storage stats for free, used and trash

master
David Peer 2022-06-28 09:53:59 +02:00
parent 86af82dd06
commit a7e99ede91
7 changed files with 18 additions and 7 deletions

View File

@ -1,2 +1,3 @@
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",
items: [
{name: "Firmw.", fun: () => ENV.VERSION},
{name: "Git", fun: () => ENV.GIT_COMMIT},
{name: "Boot.", fun: () => getVersion("boot.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",
"name": "Info",
"version": "0.02",
"version": "0.03",
"description": "An application that displays information such as battery level, steps etc.",
"icon": "info.png",
"type": "app",
@ -11,7 +11,8 @@
"screenshots": [
{"url":"screenshot_1.png"},
{"url":"screenshot_2.png"},
{"url":"screenshot_3.png"}],
{"url":"screenshot_3.png"},
{"url":"screenshot_4.png"}],
"storage": [
{"name":"info.app.js","url":"info.app.js"},
{"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