Skip to content

Commit 7e2559c

Browse files
committed
Cleanup & docs 📚
1 parent c91e428 commit 7e2559c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

front/plugins/README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,13 @@ Follow the below very carefully and check example plugin(s) if you'd like to wri
9191
* Adding form controls supported to display the data (Currently supported ones are listed in the section "UI settings in database_column_definitions" below)
9292
* ...
9393

94-
## ❗ Known issues:
94+
## ❗ Known limitations:
9595

9696
These issues will be hopefully fixed with time, so please don't report them. Instead, if you know how, feel free to investigate and submit a PR to fix the below. Keep the PRs small as it's easier to approve them:
9797

98-
* Existing plugin objects sometimes not interpreted correctly and a new object is created instead, resulting in duplicate entries. (race condition?)
98+
* Existing plugin objects are sometimes not interpreted correctly and a new object is created instead, resulting in duplicate entries. (race condition?)
9999
* Occasional (experienced twice) hanging of processing plugin script file.
100-
UI displays outdated values until the API endpoints get refreshed.
100+
* UI displays outdated values until the API endpoints get refreshed.
101101

102102
## Plugin file structure overview
103103

@@ -143,7 +143,7 @@ Currently, these data sources are supported (valid `data_source` value).
143143
| Pialert DB query | `pialert-db-query` | yes | Executes a SQL query on the PiAlert database in the `CMD` setting. |
144144
| Template | `template` | no | Used to generate internal settings, such as default values. |
145145
| External SQLite DB query | `sqlite-db-query` | yes | Executes a SQL query from the `CMD` setting on an external SQLite database mapped in the `DB_PATH` setting. |
146-
| Plugin type | `plugin_type` | no | Specifies the type of the plugin and in which section the Plugin settings are displayed (`<general>|<system>|<scanner>|<publisher>`). |
146+
| Plugin type | `plugin_type` | no | Specifies the type of the plugin and in which section the Plugin settings are displayed (`<general|system|scanner|other|publisher>`). |
147147

148148

149149
> 🔎Example
@@ -643,7 +643,7 @@ The UI will adjust how columns are displayed in the UI based on the resolvers de
643643
| `url` | The value is considered to be a URL, so a link is generated. |
644644
| `textbox_save` | Generates an editable and saveable text box that saves values in the database. Primarily intended for the `UserData` database column in the `Plugins_Objects` table. |
645645
| `url_http_https` | Generates two links with the `https` and `http` prefix as lock icons. |
646-
| `eval` | Evaluates as JavaScript. Use the variable `value` to use the given column value as input (e.g. ``<b>${value}<b>`` ) |
646+
| `eval` | Evaluates as JavaScript. Use the variable `value` to use the given column value as input (e.g. `'<b>${value}<b>'` (replace ' with ` in your code) ) |
647647
648648
649649
> [!NOTE]

front/plugins/maintenance/config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@
164164
}],
165165
"description": [{
166166
"language_code":"en_us",
167-
"string" : "How many last <code>pialert.log</code> lines to keep. If <code>LOG_LEVEL</code> is set to <code>debug</code> the app generates about 10000 lines per hour, so when debugging an issue the recommended setting should cover the bug occurence timeframe. For example for a bug with a 3 day periodical appearence the value <code>1000000</code> should be sufficient. Setting this value to <code>1000000</code> generates approximatelly a 50MB <code>pialert.log</code> file. Set to <code>0</code> disables log cleaning."
167+
"string" : "How many last <code>pialert.log</code> lines to keep. If <code>LOG_LEVEL</code> is set to <code>debug</code> the app generates about 10000 lines per hour, so when debugging an issue the recommended setting should cover the bug occurence timeframe. For example for a bug with a 3 day periodical appearence the value <code>1000000</code> should be sufficient. Setting this value to <code>1000000</code> generates approximatelly a 50MB <code>pialert.log</code> file. Set to <code>0</code> to disable log purging."
168168
}]
169169
}
170170
],

0 commit comments

Comments
 (0)