docs 📚 + work on #569
This commit is contained in:
@@ -5,7 +5,7 @@ Get visibility of what's going on on your WIFI/LAN network. Scan for devices, po
|
|||||||
[](https://github.com/jokob-sk/Pi.Alert)
|
[](https://github.com/jokob-sk/Pi.Alert)
|
||||||
[](https://hub.docker.com/r/jokobsk/pi.alert)
|
[](https://hub.docker.com/r/jokobsk/pi.alert)
|
||||||
[](https://hub.docker.com/r/jokobsk/pi.alert)
|
[](https://hub.docker.com/r/jokobsk/pi.alert)
|
||||||

|
[](https://github.com/jokob-sk/Pi.Alert/releases)
|
||||||
[](https://github.com/sponsors/jokob-sk)
|
[](https://github.com/sponsors/jokob-sk)
|
||||||
|
|
||||||
| 🐳 [Docker hub](https://registry.hub.docker.com/r/jokobsk/pi.alert) | 📑 [Docker guide](https://github.com/jokob-sk/Pi.Alert/blob/main/dockerfiles/README.md) |🆕 [Release notes](https://github.com/jokob-sk/Pi.Alert/releases) | 📚 [All Docs](https://github.com/jokob-sk/Pi.Alert/tree/main/docs) |
|
| 🐳 [Docker hub](https://registry.hub.docker.com/r/jokobsk/pi.alert) | 📑 [Docker guide](https://github.com/jokob-sk/Pi.Alert/blob/main/dockerfiles/README.md) |🆕 [Release notes](https://github.com/jokob-sk/Pi.Alert/releases) | 📚 [All Docs](https://github.com/jokob-sk/Pi.Alert/tree/main/docs) |
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ Historical data is stored in the `pialert.db` database (See [Database overview](
|
|||||||
|
|
||||||
## 🧭 Backup strategies
|
## 🧭 Backup strategies
|
||||||
|
|
||||||
The safest approach to backups is to backup all of the above with, by taking regular file system backups (I use [Kopia](https://github.com/kopia/kopia)).
|
The safest approach to backups is to backup all of the above, by taking regular file system backups (I use [Kopia](https://github.com/kopia/kopia)).
|
||||||
|
|
||||||
Arguably, the most time is spent setting up the device list, so if only one file is kept I'd recommend to have a latest backup of the `devices_<timestamp>.csv` file, followed by the `pialert.conf` file.
|
Arguably, the most time is spent setting up the device list, so if only one file is kept I'd recommend to have a latest backup of the `devices_<timestamp>.csv` file, followed by the `pialert.conf` file.
|
||||||
|
|
||||||
@@ -64,7 +64,7 @@ To restore the application map the above files as described in the [Setup docume
|
|||||||
|
|
||||||
### Scenario 2: Corrupted database
|
### Scenario 2: Corrupted database
|
||||||
|
|
||||||
End-result: Partial restore (historical data & Configuration from the Maintenance section will be missing)
|
End-result: Partial restore (historical data & configurations from the Maintenance section will be missing)
|
||||||
|
|
||||||
#### Source artifacts:
|
#### Source artifacts:
|
||||||
|
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ There is also an in-app Help / FAQ section that should be answering frequently a
|
|||||||
- [Custom Icon configuration and support](/docs/ICONS.md)
|
- [Custom Icon configuration and support](/docs/ICONS.md)
|
||||||
- [Better name resolution with Reverse DNS](/docs/REVERSE_DNS.md)
|
- [Better name resolution with Reverse DNS](/docs/REVERSE_DNS.md)
|
||||||
- [Network treemap configuration](/docs/NETWORK_TREE.md)
|
- [Network treemap configuration](/docs/NETWORK_TREE.md)
|
||||||
|
- [Backups](/docs/BACKUPS.md)
|
||||||
|
|
||||||
#### 🐛 Debugging help & tips
|
#### 🐛 Debugging help & tips
|
||||||
|
|
||||||
|
|||||||
@@ -359,18 +359,18 @@ function filterDataByStatus(data, status) {
|
|||||||
case 'my':
|
case 'my':
|
||||||
to_display = getSetting('UI_MY_DEVICES');
|
to_display = getSetting('UI_MY_DEVICES');
|
||||||
|
|
||||||
let result = false;
|
let result = true;
|
||||||
|
|
||||||
if (to_display.includes('online') && item.dev_PresentLastScan === 1) {
|
if (!to_display.includes('down') && item.dev_PresentLastScan === 0 && item.dev_AlertDeviceDown !== 0) {
|
||||||
result = true;
|
result = false;
|
||||||
} else if (to_display.includes('offline') && item.dev_PresentLastScan === 0) {
|
} else if (!to_display.includes('new') && item.dev_NewDevice === 1) {
|
||||||
result = true;
|
result = false;
|
||||||
} else if (to_display.includes('archived') && item.dev_Archived === 1) {
|
} else if (!to_display.includes('archived') && item.dev_Archived === 1) {
|
||||||
result = true;
|
result = false;
|
||||||
} else if (to_display.includes('new') && item.dev_NewDevice === 1) {
|
} else if (!to_display.includes('offline') && item.dev_PresentLastScan === 0) {
|
||||||
result = true;
|
result = false;
|
||||||
} else if (to_display.includes('down') && item.dev_PresentLastScan === 0 && item.dev_AlertDeviceDown !== 0) {
|
} else if (!to_display.includes('online') && item.dev_PresentLastScan === 1) {
|
||||||
result = true;
|
result = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return result; // Include all items for 'my' status
|
return result; // Include all items for 'my' status
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
Plugin generating CSV backups of your Devices database table, including the network mappings. Can be used for importing your setup via the Maintenance > Backup / Restore > CSV Import feature.
|
Plugin generating CSV backups of your Devices database table, including the network mappings. Can be used for importing your setup via the Maintenance > Backup / Restore > CSV Import feature (See also: [Devices Bulk Editing](https://github.com/jokob-sk/Pi.Alert/blob/main/docs/DEVICES_BULK_EDITING.md)).
|
||||||
|
|
||||||
### Usage
|
### Usage
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user