Skip to content

Commit

Permalink
v0.77
Browse files Browse the repository at this point in the history
- Removed the possibility to send multiple custom pages at once, as this costs twice as much resources for the json memory pool. So we have more free for other things and doenst run into a limit. MAybe i find another solution in the future but at this point, I think this version is unnecessary and i prefer more free resources.
- Fixes a bug where free flash doesnt show correctly in filemanager
  • Loading branch information
Blueforcer committed Aug 20, 2023
1 parent dcd4343 commit 9f050e1
Show file tree
Hide file tree
Showing 6 changed files with 98 additions and 199 deletions.
17 changes: 0 additions & 17 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,23 +176,6 @@ Here's an example JSON object to draw a red circle, a blue rectangle, and the te
{"dt": [0, 0, "Hello", "#00FF00"]}
]}
```

### Send multiple custompage at once
This allows you to send multiple custompage at once. Instead of a single custompage object, you can send an array of objects. like

**Topic:**
/custom/test

```json
`[{"text":"1"},{"text":"2"}]`
```
Internally the appname gets a suffix like test0, test1 and so on.
You can update each app like before, or you can update all apps at once.
While removing apps, awtrix doesnt search for the exact name, but uses the app that starts with the given name.
So if you want to delete all apps just send empty payload to /custom/test. This will remove test0, test1 and so on.
you can also remove one app by removing /custom/test1.
Please keep in mind that if you delete only one app, you cant get the correct Order again because all apps in the loop move, since there can be no placeholder.


### Display a text in colored fragments
You can display a text where you allowed to colorize fragments of the text.
Expand Down
6 changes: 3 additions & 3 deletions lib/webserver/esp-fs-webserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ bool FSWebServer::begin(const char *path)

// OTA update via webbrowser
m_httpUpdater.setup(webserver);


webserver->enableCORS(true);

Expand Down Expand Up @@ -899,8 +899,8 @@ void FSWebServer::handleStatus()
totalBytes = fs_info.totalBytes;
usedBytes = fs_info.usedBytes;
#elif defined(ESP32)
// totalBytes = m_filesystem->totalBytes();
// usedBytes = m_filesystem->usedBytes();
totalBytes = LittleFS.totalBytes();
usedBytes = LittleFS.usedBytes();
#endif

String json;
Expand Down
Loading

0 comments on commit 9f050e1

Please sign in to comment.