Compare commits

...

1256 Commits

Author SHA1 Message Date
jokob-sk
ddd28a0607 Update docker_prod.yml 2023-06-16 08:30:59 +10:00
jokob-sk
fa92df6567 Update docker_prod.yml 2023-06-16 08:28:54 +10:00
Jokob-sk
76a3efe039 Load only last few lines from pialert.log 2023-06-16 08:05:47 +10:00
Jokob-sk
601ed15f20 conf. variable fix & #247 2023-06-12 15:41:09 +10:00
Jokob-sk
2a3b505dff PLugin reports not sent fix 2023-06-12 11:24:42 +10:00
Jokob-sk
9550227672 Readme 2023-06-10 21:49:29 +10:00
Jokob-sk
89c0750463 Merge branch 'main' of https://github.com/jokob-sk/Pi.Alert 2023-06-10 21:48:11 +10:00
jokob-sk
0fa71362b8 Merge pull request #249 from jokob-sk/split-up-work-2023-05-30
Split up work 2023 05 30
2023-06-10 21:45:59 +10:00
Jokob-sk
d8df097e83 Fixes 2023-06-10 11:11:40 +10:00
Jokob-sk
67c20cabc3 Upgrade DB fixes + NTFY fix 2023-06-10 10:57:26 +10:00
Jokob-sk
5867961383 Upgrade DB fixes 2023-06-10 09:01:24 +10:00
jokob-sk
649e280ce1 Merge pull request #248 from Data-Monkey/split_it_up
fix issue #4 by @Data-Monkey
2023-06-10 08:02:44 +10:00
Data-Monkey
9d982eff1b fix issue #4 2023-06-09 08:44:50 +10:00
jokob-sk
6ac8225b19 Merge pull request #246 from Data-Monkey/split_it_up
Split it up
2023-06-05 18:23:03 +10:00
Data-Monkey
55ed3c4ae0 PiHole testing and fixing 2023-06-05 15:40:32 +10:00
Data-Monkey
5d0804639c attempt to fix issue #6 as well as db.read_one() 2023-06-05 13:31:14 +10:00
Data-Monkey
6edb623b9c fix issue #7 plugins not executed 2023-06-04 14:20:19 +10:00
jokob-sk
8c2a1e17d9 Merge pull request #245 from Data-Monkey/split_it_up
Split it up
2023-06-04 14:18:03 +10:00
Data-Monkey
2a2f96d726 Issue #4 - fixed fetachall, fetchone mismatch 2023-06-04 14:06:09 +10:00
Data-Monkey
ec705df38b fixing issue #3 - webhook 2023-06-04 13:45:48 +10:00
jokob-sk
cb20fad13b Merge pull request #244 from Data-Monkey/split_it_up
Split it up
2023-06-04 08:17:59 +10:00
Data-Monkey
969cae0343 send_webhook fixed parameters 2023-06-03 21:56:10 +10:00
Data-Monkey
f9652258e9 Merge branch 'split_it_up' of https://github.com/Data-Monkey/Pi.Alert into split_it_up 2023-06-03 21:42:28 +10:00
Data-Monkey
6bb891f830 added default DB
fixed re-import of config file
2023-06-03 21:42:04 +10:00
Jokob-sk
4659d2c941 PR - day view 2023-06-03 11:57:27 +10:00
Jokob-sk
8644818949 PR - docs 2023-06-03 11:48:33 +10:00
Jokob-sk
de62956c40 PR - dev setup fixes 2023-06-03 11:36:21 +10:00
Jokob-sk
3547aec75f PR - dev setup fixes 2023-06-03 09:39:50 +10:00
Jokob-sk
21b5d775d2 PR - gitignore DB 2023-06-03 09:26:21 +10:00
Jokob-sk
0973bc538e PR - default db 2023-06-03 09:24:20 +10:00
Jokob-sk
bf2c4b87ab PR - default db 2023-06-03 09:20:24 +10:00
jokob-sk
b03087c1c5 Merge pull request #243 from Data-Monkey/split_it_up
Split it up by @Data-Monkey - Huge thanks!
2023-06-03 09:18:09 +10:00
jokob-sk
b814a856d0 Merge branch 'main' into pr/243 2023-06-03 09:17:08 +10:00
Jokob-sk
f6b69a63e2 PR 2023-06-03 09:12:57 +10:00
jokob-sk
df499ea33c PR work 2023-06-03 09:04:09 +10:00
Data-Monkey
007611c429 manually added es translations from master 2023-05-30 18:57:56 +10:00
Data-Monkey
12bf4c7bcc more scanning 2023-05-30 18:47:28 +10:00
Data-Monkey
5b05be24ad split publishers 2023-05-29 16:35:22 +10:00
Data-Monkey
f50e3d4e92 split pubishers 2023-05-29 16:35:09 +10:00
Data-Monkey
7177cdd51d more cleanup and removed files.py module again 2023-05-28 16:10:58 +10:00
Data-Monkey
a71f16ee37 changed to __main__.py and scanners folder 2023-05-27 22:38:12 +10:00
jokob-sk
070e31ef19 Merge pull request #237 from Data-Monkey/patch-1
Update pialert.py - Thanks @Data-Monkey !
2023-05-27 10:00:03 +10:00
Roland Beck
42df2b255a Update pialert.py
add filter to ignore __pycache__ in plugin dir
2023-05-26 19:08:46 +10:00
Data-Monkey
52027c65b3 working docker version 2023-05-26 19:04:20 +10:00
Data-Monkey
a2f2bce3ab working docker version 2023-05-26 19:04:11 +10:00
Data-Monkey
ebcf6fa49b Merge branch 'split_it_up' of https://github.com/Data-Monkey/Pi.Alert into split_it_up 2023-05-25 19:51:11 +10:00
Data-Monkey
c14c762bde cleanup 2023-05-25 19:51:03 +10:00
Roland Beck
fd50ab7deb Create README.md 2023-05-25 13:53:08 +10:00
Data-Monkey
0db7521bee change to import conf 2023-05-24 22:34:09 +10:00
Data-Monkey
3adfa2c268 resolved cirqular imports 2023-05-23 21:18:44 +10:00
Data-Monkey
e27610a199 everything split out ut not tested 2023-05-22 22:05:54 +10:00
Data-Monkey
bd43a16975 everything split out not tested 2023-05-22 22:05:21 +10:00
jokob-sk
eb56126224 Merge pull request #235 from BanCrash/spanish
Update spanish strings by @BanCrash - thanks a lot!
2023-05-22 14:40:32 +10:00
BanCrash
7945fce65d Added new string 2023-05-21 16:21:18 +02:00
BanCrash
8a7ddfbb47 Added remaining spanish translations
Big thanks to @antoniog for giving me the file with all new english strings added!

Co-Authored-By: Antonio Caro <2288057+antoniog@users.noreply.github.com>
2023-05-21 16:03:11 +02:00
Data-Monkey
03163e424f more splitting done 2023-05-21 21:22:51 +10:00
Data-Monkey
d5b7023927 more splitting 2023-05-21 21:22:09 +10:00
Data-Monkey
884aca149a more splitting done 2023-05-21 17:40:05 +10:00
Data-Monkey
1836567f97 to keep up with jakob 2023-05-21 15:18:57 +10:00
Data-Monkey
78f71abd31 moved database out 2023-05-21 15:03:16 +10:00
Data-Monkey
0f63497847 split const and logger from main 2023-05-21 12:08:15 +10:00
Jokob-sk
8a1e472fed Established plugin_helper.py as best practice 2023-05-21 11:37:00 +10:00
Jokob-sk
3831b5a50a SUpport for unauthenticated SMTP #234 2023-05-21 11:04:03 +10:00
Jokob-sk
3756e1a327 re-add DB dir to gitignore 2023-05-21 10:58:12 +10:00
Jokob-sk
c9eb866acd add DB 2023-05-21 10:56:40 +10:00
jokob-sk
55530c05f9 Merge pull request #233 from Data-Monkey/undiscoverables_plugin
Un-Discoverable Devices Plugin by @Data-Monkey
2023-05-21 10:51:31 +10:00
Jokob-sk
422997be9b php errors log 2023-05-20 13:33:45 +10:00
Jokob-sk
13ff086412 Setting select presence statuses #221 2023-05-20 12:42:30 +10:00
Jokob-sk
298b5ac03e Attempt at fixing #228 2023-05-20 11:08:24 +10:00
Jokob-sk
e9af2efbd1 DOnt Awesome Pro docs 2023-05-20 10:56:01 +10:00
Roland Beck
4027970975 Update README.md
added some pictures
2023-05-18 17:57:48 +10:00
Data-Monkey
0ca7116167 Merge branches 'undiscoverables_plugin' and 'undiscoverables_plugin' of https://github.com/Data-Monkey/Pi.Alert into undiscoverables_plugin 2023-05-18 17:51:21 +10:00
Data-Monkey
1474cf424b code and documentation tidied up 2023-05-18 17:43:16 +10:00
Roland Beck
b763d75703 Merge branch 'jokob-sk:main' into undiscoverables_plugin 2023-05-17 22:33:32 +10:00
Data-Monkey
a0501d88ec working version of UnDIS plugin 2023-05-17 22:25:33 +10:00
Jokob-sk
f62d94ba61 database docs 0.1 2023-05-17 22:15:42 +10:00
Jokob-sk
e99d855284 database docs 0.1 2023-05-17 22:15:03 +10:00
Jokob-sk
31b78ff106 Merge branch 'main' of https://github.com/jokob-sk/Pi.Alert 2023-05-17 22:09:31 +10:00
Jokob-sk
ae0c45a716 database docs 2023-05-17 22:09:03 +10:00
jokob-sk
0105844410 Merge pull request #231 from Data-Monkey/plugin_config_dir
get_plugin_config changed to top level folders - Thanks to @Data-Monkey 🙏
2023-05-17 21:08:06 +10:00
Data-Monkey
07e8395536 file path fixed 2023-05-17 13:45:21 +10:00
Data-Monkey
6c8fc093af update git ignore to ignore pycache 2023-05-17 13:05:50 +10:00
Data-Monkey
95a7dcc7fc undiscoverables initial version 2023-05-17 12:55:34 +10:00
Data-Monkey
c54156ca1e get_plugin_config changed to top level folders 2023-05-17 11:39:29 +10:00
Jokob-sk
941a8ef661 Version number to foorter #209 0.1 2023-05-13 14:14:54 +10:00
Jokob-sk
fc79ffc956 Version number to foorter #209 2023-05-13 14:09:19 +10:00
jokob-sk
8e86343942 Merge pull request #229 from jordantrizz/main
feat: Place buildnumber and version in footer. Thanks @jordantrizz !
2023-05-13 09:49:58 +10:00
Jordan Trask
bb87e65745 feat: Place buildnumber and version in footer. 2023-05-11 15:06:59 -04:00
jokob-sk
d1989acd5c Merge pull request #227 from Data-Monkey/patch-1
Update README.md
2023-05-10 20:56:09 +10:00
Roland Beck
e5bc4ad41b Update README.md
added statement about file format and example
2023-05-10 20:46:58 +10:00
jokob-sk
927bdc2f2b Merge pull request #226 from Final-Hawk/patch-1
Fix table mobile view thanks to @Final-Hawk 👍
2023-05-10 19:35:19 +10:00
Joshua
2ff57d8272 Fix table mobile view
Remove obsolete column changing for mobile. 

This is now handled by the column selector in the maintenance tab.
2023-05-10 12:05:40 +10:00
Jokob-sk
49baf4b613 Docs 2023-05-07 10:27:41 +10:00
Jokob-sk
a573fd9841 Docs README 2023-05-07 09:56:37 +10:00
Jokob-sk
e91b640bff Merge branch 'main' of https://github.com/jokob-sk/Pi.Alert 2023-05-07 09:03:52 +10:00
Jokob-sk
8ee47e2fcc Versions docs 2023-05-07 09:03:27 +10:00
jokob-sk
092797e75c Merge pull request #220 from webysther/patch-1
Update DEVICE_MANAGEMENT.md
2023-05-06 08:07:56 +10:00
Webysther Sperandio
816a01f8af Update DEVICE_MANAGEMENT.md 2023-05-05 20:52:16 +02:00
Jokob-sk
3578bbfcad emty columns fixes 2023-05-05 22:42:11 +10:00
Jokob-sk
b4b15af887 FIX SNMDSCV, NMAPSRV, UNFIDSCR bugs 2023-05-05 21:21:01 +10:00
Jokob-sk
c74ef127d1 update only unknown vendors 2023-05-05 19:08:10 +10:00
Jokob-sk
90b3a491c7 Icons docs 2023-04-29 09:10:52 +10:00
jokob-sk
ad41d02eeb Update README.md 2023-04-14 04:31:04 +00:00
jokob-sk
19fe48c7ec Merge pull request #207 from macf0x/patch-1
Update README.md
2023-04-14 14:15:40 +10:00
Macfox
f3d05ca222 Update README.md 2023-04-14 00:33:39 +09:30
Jokob-sk
4aa1848ece Code cleanup 2023-04-13 22:30:27 +10:00
Jokob-sk
2176c58cb5 SNMPDSC plugin 0.4 2023-04-12 20:06:22 +10:00
Jokob-sk
2b95daa248 Fix MAC not passed - #205 2023-04-10 17:00:29 +10:00
Jokob-sk
e7c0bcf419 SNMPDSC plugin 0.3 2023-04-10 12:37:03 +10:00
Jokob-sk
063682510e SNMPDSC plugin 0.2 2023-04-10 12:27:10 +10:00
Jokob-sk
8542d05f66 SNMPDSC plugin 0.1 + PLUG README updates 2023-04-08 13:45:15 +10:00
Jokob-sk
42aa89971d Update README 2023-04-02 12:31:24 +10:00
Jokob-sk
abd607ea10 Update docker README 2023-04-02 10:52:27 +10:00
Jokob-sk
5936ba4626 Improve Plugins README 0.1 2023-04-02 10:22:22 +10:00
Jokob-sk
a6c2b9254b Fix ENABLE_PLUGINS bug discovered in #203 2023-04-02 09:50:50 +10:00
Jokob-sk
62669fd181 Fix empty Plugin header tabs 2023-04-02 09:37:16 +10:00
Jokob-sk
c8fcf6227e UNIFI import plugin 0.2 2023-04-01 22:11:14 +11:00
Jokob-sk
310b6de2cc UNIFI import plugin 0.1 2023-04-01 21:02:36 +11:00
Jokob-sk
306535a2a6 UNIFI import plugin 0.1 2023-04-01 21:01:16 +11:00
Jokob-sk
5944b1b6f5 expanded Plugins readme 0.1 2023-03-30 16:13:33 +11:00
Jokob-sk
6de9e1d4bd expanded Plugins readme 2023-03-30 15:58:16 +11:00
Jokob-sk
4bf6ab9c8c Possible fix for #202 2023-03-27 22:14:29 +11:00
Jokob-sk
1e93dfa35e Expanding on plugins in README 2023-03-27 22:04:14 +11:00
Jokob-sk
7f2567264c Support for mapping plun obj to DB table 2023-03-26 12:12:30 +11:00
Jokob-sk
d9a9246f1b Attempt at Fixing #199 & Rougue DHCP fix 2023-03-26 09:47:56 +11:00
Jokob-sk
aa8fb62f15 README update #200 2023-03-25 08:03:04 +11:00
Jokob-sk
6d5eeb88d3 dhcp.leases v0.1 2023-03-19 15:48:20 +11:00
Jokob-sk
ea1d710209 Merge branch 'main' of https://github.com/jokob-sk/Pi.Alert 2023-03-19 12:22:57 +11:00
Jokob-sk
032b787b66 Optimizing API updates #193 2023-03-19 12:22:25 +11:00
Jokob-sk
7024cd22de update vendors 2023-03-18 08:21:50 +11:00
jokob-sk
b9b66d5af1 Merge pull request #198 from pbek/patch-1
fix: remove trailing slash for REPORT_DASHBOARD_URL
2023-03-15 08:06:00 +00:00
Jokob-sk
b73a0d6347 Fix how to set pwd #196 2023-03-15 18:39:55 +11:00
Patrizio Bekerle
a0bc318ff9 fix: remove trailing slash for REPORT_DASHBOARD_URL 2023-03-15 08:29:08 +01:00
Jokob-sk
642e8464cd better widescreen support 2023-03-15 18:13:21 +11:00
Jokob-sk
63a9e55d4e Rougue DHCP plugin based on work of @leiweibau 2023-03-12 19:31:59 +11:00
Jokob-sk
a07c73155f Spanish strings - based on work of @mariorodriguezlopez 2023-03-12 11:03:10 +11:00
Jokob-sk
efbc32d3ed Vlan info & setting CSS tuning 2023-03-12 10:21:42 +11:00
Jokob-sk
83f50bd0d8 Vlan config sample 2023-03-12 10:11:39 +11:00
Jokob-sk
87cb0f50b5 Plugins - small screen optimization 2023-03-12 09:57:18 +11:00
Jokob-sk
73c779c238 Wake on Lan by @leiweibau 2023-03-12 09:33:47 +11:00
Jokob-sk
40615cf17a Setting to disable/enable plugins 2023-03-12 08:21:32 +11:00
Jokob-sk
6dd1448667 Fix #165 2023-03-12 07:32:35 +11:00
Jokob-sk
d8b4091043 Plugins 1 - Readme 2023-03-11 17:18:02 +11:00
Jokob-sk
7ea920efa9 Plugins 1 - Readme 2023-03-11 17:16:23 +11:00
Jokob-sk
7306dfbdd3 Plugins 1 - Readme 2023-03-11 17:14:22 +11:00
Jokob-sk
53c8c41133 Plugins 1 - Readme 2023-03-11 17:00:09 +11:00
Jokob-sk
395dfe5fe7 Plugins 1 - JSON UI / Settings mapping sample 2023-03-11 16:51:00 +11:00
Jokob-sk
2ec0074a45 Plugins 1 - Readme 2023-03-11 16:32:46 +11:00
Jokob-sk
93dce378ea Plugins 1 - Screen 2023-03-11 16:25:53 +11:00
Jokob-sk
df6fae7aa5 Plugins 1 - Screen 2023-03-11 16:24:59 +11:00
Jokob-sk
57e0705e64 Plugins 1 - Readme 2023-03-11 16:12:29 +11:00
Jokob-sk
f3b31479c4 Plugins 1 - Screenshot + fixes 2023-03-11 15:55:00 +11:00
Jokob-sk
b914be9f0e Plugins 1 - Screenshot + fixes 2023-03-11 15:49:20 +11:00
Jokob-sk
2d0a4b79d8 Plugins 0.4 - ForeignKey support added 2023-03-11 13:57:25 +11:00
Jokob-sk
d090b29c55 Plugins 0.4 - UI work + bugfixes 2023-03-11 08:33:43 +11:00
Jokob-sk
5a8be94cdc Plugins 0.4 - UI work + refactoring 2023-03-09 22:30:36 +11:00
Jokob-sk
176a436ad4 Removed pialert_pholus.log 2023-03-04 20:47:25 +11:00
Jokob-sk
1a05435691 Plugins 0.4 - Further UI work 2023-03-04 20:41:48 +11:00
Jokob-sk
49ce3edbdb Invalid JSON Debug readme 2023-03-04 09:11:27 +11:00
Jokob-sk
51df759e25 debug image 2023-02-28 09:56:13 +11:00
Jokob-sk
992aa00c3c Plugins 0.3 - UI fixes 0.1 2023-02-26 16:27:14 +11:00
Jokob-sk
d87d933058 Nmap fix - Results not written into DB 2023-02-26 15:40:38 +11:00
Jokob-sk
e0d639cba0 Plugins 0.3 - Readme 0.3 2023-02-26 13:06:08 +11:00
Jokob-sk
1cbbfb25cc Plugins 0.3 - Readme 0.2 2023-02-26 12:59:23 +11:00
Jokob-sk
f205e6f5c1 Plugins 0.3 - Readme 0.1 2023-02-26 12:53:04 +11:00
Jokob-sk
5e67ea22f5 Plugins 0.3 - Readme 2023-02-26 12:46:20 +11:00
Jokob-sk
99f522e625 Plugins 0.3 - SQL support, UI CSS tweks, Lang fixes 2023-02-26 12:28:15 +11:00
Jokob-sk
f04cd7e28b Plugins 0.3 - dbHelper & remove unnecessary API settings 2023-02-25 15:29:01 +11:00
Jokob-sk
3392a1f17c Fix logout #181 2023-02-25 13:24:24 +11:00
Jokob-sk
d0d9a1a65d Plugins 0.3 - SQL call fix and additional UI controls 2023-02-25 12:56:40 +11:00
Jokob-sk
16d04fe485 Plugins 0.3 - UI custom form controls 2023-02-25 09:31:29 +11:00
Jokob-sk
43d5c51e7c Plugins 0.2 - UI fixes 2023-02-20 20:45:18 +11:00
Jokob-sk
647013f3ff Plugins 0.2 - Readme 2023-02-19 13:12:08 +11:00
Jokob-sk
2ef631a440 Plugins 0.2 - Reports working + Report status setting 2023-02-19 13:08:41 +11:00
Jokob-sk
86315a245b Plugins 0.2 - Fixed issues detecting changes + added UserData column 2023-02-18 15:14:31 +11:00
Jokob-sk
b0ce1b87a9 Plugins 0.2 - Show objects in UI 2023-02-14 22:24:12 +11:00
Jokob-sk
541c16aea6 Fix #175 2023-02-14 18:11:02 +11:00
Jokob-sk
ee1a3fc683 Plugins 0.2 - Show unprocessed events in UI 2023-02-13 22:20:48 +11:00
Jokob-sk
b90edcccbd Plugins 0.1 - Readme update 0.3 2023-02-12 18:19:55 +11:00
Jokob-sk
4614b93780 Plugins 0.1 - Readme update 0.2 2023-02-12 17:58:17 +11:00
Jokob-sk
4f548803cb Plugins 0.1 - Readme update 0.1 2023-02-12 17:50:49 +11:00
Jokob-sk
d16dd95d65 Plugins 0.1 - Readme update 2023-02-12 17:45:49 +11:00
Jokob-sk
97f7494c34 Plugin UI 0.1 2023-02-12 17:03:04 +11:00
Jokob-sk
6179dabfa6 Fixed empty settings 2023-02-12 14:30:35 +11:00
Jokob-sk
05ca683f91 LOG_LEVEL added 2023-02-12 13:22:55 +11:00
Jokob-sk
170e61e73f Plugins 0.1 - List param working 2023-02-11 16:11:27 +11:00
Jokob-sk
33f0356ca7 Fix CSV import 0.1 #175 2023-02-10 20:51:56 +11:00
Jokob-sk
4b9117dcb4 Fix CSV import #175 2023-02-10 20:20:26 +11:00
Jokob-sk
ec274c90da Plugins 0.1 - Adding LIST setting 0.2 2023-02-09 21:06:38 +11:00
Jokob-sk
e7a1f013df Plugins 0.1 - Adding LIST setting 0.1 2023-02-08 23:49:53 +11:00
Jokob-sk
c287bc2f22 Plugins 0.1 - Multi-Execution support + Fix #177 2023-02-08 22:53:05 +11:00
Jokob-sk
5b8f8f2c5d Plugins 0.1 - ONCE execution support 2023-02-07 21:48:06 +11:00
Jokob-sk
887c2d0f42 Plugins 0.1 - ONCE execution support 2023-02-07 21:42:02 +11:00
Jokob-sk
06d7aa6623 Plugins 0.1 - Lang Strings in DB 2023-02-06 21:49:25 +11:00
Jokob-sk
5ed142a6b8 Plugins 0.1 - Surfaced setings 2023-02-05 16:35:25 +11:00
Jokob-sk
da9ca8a1f4 Plugins 0.1 - Website monitoring cleanup 2023-02-05 15:24:46 +11:00
Jokob-sk
1cb5375a92 Plugins 0.1 - Basic definition 2023-02-05 13:02:38 +11:00
jokob-sk
fd11cc30f5 Merge pull request #167 from jokob-sk/revert-161-main
Revert "Change in front"
2023-02-04 00:24:04 +00:00
jokob-sk
a1bfdc0f18 Revert "Change in front" 2023-02-04 11:20:25 +11:00
jokob-sk
e88362ce80 Merge pull request #161 from mariorodriguezlopez/main
Change in front
2023-02-04 00:04:24 +00:00
Jokob-sk
b5f0a64e7c Bugfix issues 165, 163 0.1 2023-02-04 10:40:21 +11:00
Jokob-sk
e3623420b0 Bugfix issues 165, 163 2023-02-04 10:38:57 +11:00
Mario Rodriguez
3344ed4b99 Changes front 2023-02-02 13:06:05 +01:00
Mario Rodriguez
b0c91f7804 Merge branch 'jokob-sk:main' into main 2023-02-02 12:56:53 +01:00
jokob-sk
f8cf7f0717 Increase once off Pholus run timeout 2023-02-02 18:46:48 +11:00
Jokob-sk
29a6b78f27 Cleanup 2023-02-02 18:45:30 +11:00
Jokob-sk
388370b49d Txt message cleanup 0.1 2023-02-01 21:53:23 +11:00
Jokob-sk
4d67c25e5a Txt message cleanup 2023-02-01 21:46:59 +11:00
Jokob-sk
eec0dcca82 n8n updated example + formating 2023-02-01 20:40:14 +11:00
Mario Rodriguez
f1dc33761d Merge pull request #3 from jokob-sk/main
Sync from main
2023-02-01 07:48:39 +01:00
Jokob-sk
7ea74d0fe3 Mior Language in config fixes 0.1 2023-02-01 00:05:47 +11:00
Jokob-sk
0c635534a1 Merge branch 'main' of https://github.com/jokob-sk/Pi.Alert 2023-01-31 23:55:50 +11:00
Jokob-sk
f70a3a4207 Rework of notification templates 0.5 2023-01-31 23:55:15 +11:00
jokob-sk
0fc174b5b3 Merge pull request #158 from mariorodriguezlopez/main
Language in database
2023-01-31 12:54:40 +00:00
Jokob-sk
d4eddf042d Rework of notification templates 0.4 2023-01-31 23:25:21 +11:00
Mario Rodriguez
a4210c7e6b Merge pull request #2 from mariorodriguezlopez/Lang
lang in db
2023-01-31 12:11:47 +01:00
Mario Rodriguez
106438d61d lang in db 2023-01-31 12:10:07 +01:00
Jokob-sk
94365d2cc9 Apprise payload type setting 2023-01-31 22:08:35 +11:00
Mario Rodriguez
b633c43078 Exclude vscode folder 2023-01-31 09:27:42 +01:00
Mario Rodriguez
84c3f1d786 Merge pull request #1 from jokob-sk/main
Sinc
2023-01-31 09:10:57 +01:00
Jokob-sk
1c963e9aff Rework of notification templates 0.3 2023-01-30 23:14:54 +11:00
Jokob-sk
a2fe7f79cc Rework of notification templates 0.2 2023-01-30 23:12:19 +11:00
Jokob-sk
8dabdb3f11 Rework of notification templates 0.1 2023-01-30 23:02:05 +11:00
Jokob-sk
b9f2957104 Rework of notification templates 2023-01-30 23:00:02 +11:00
Jokob-sk
bdeda87600 Better font and node scaling in Network 2023-01-29 15:27:20 +11:00
Jokob-sk
e98a538f53 API 0.3 2023-01-29 14:42:43 +11:00
Jokob-sk
2e0cb923db Column settings preserved after restart 2023-01-29 14:13:31 +11:00
Jokob-sk
2e532abf6b API v0.2 2023-01-29 12:32:48 +11:00
Jokob-sk
51e865c98d API v0.1 2023-01-29 00:07:46 +11:00
Jokob-sk
2c27248aa1 Addd subprocess timeout into Pholus 0.2 2023-01-27 00:07:34 +11:00
Jokob-sk
43c2084e15 Addd subprocess timeout into Pholus + cleanup 2023-01-26 23:44:54 +11:00
Jokob-sk
14cb0f46f3 New columns: Connected devices, Location, Vendor 2023-01-26 12:01:12 +11:00
Jokob-sk
162d507468 Prep work for flat tree backup 2023-01-26 11:07:16 +11:00
Jokob-sk
8624851cf5 Prep work for flat tree 2023-01-25 23:50:02 +11:00
Jokob-sk
2d92e93b7b Guides updates 2023-01-24 23:00:58 +11:00
Jokob-sk
78f9018083 Empty fields on New Devices selection 2023-01-24 21:58:01 +11:00
Jokob-sk
ecb8a01aaa Guides updates 0.2 2023-01-24 21:36:16 +11:00
Jokob-sk
cca2c99f6b Guides updates 0.1 2023-01-24 21:18:34 +11:00
Jokob-sk
028d0dd7d8 Guides updates 2023-01-24 21:17:06 +11:00
Jokob-sk
7753e0481c Network tree guide 2023-01-24 21:03:35 +11:00
Jokob-sk
5b35e68cf2 GMAIL as SMTP guide 2023-01-23 23:00:21 +11:00
Jokob-sk
8b4115fe48 Order fix on restart 2023-01-23 22:51:29 +11:00
Jokob-sk
8bc1c3e0ed Column order bogfix in network 2023-01-23 22:39:18 +11:00
Jokob-sk
69061ed537 Last IP ordering fix 2023-01-23 22:15:57 +11:00
Jokob-sk
f151b1268d Network tre refresh on device (un-)assign 2023-01-23 22:12:48 +11:00
Jokob-sk
35d9c0e548 Fix Network scaling, DeviceDetials link, missing lang string, incorrectly mapped columns, default device values 2023-01-23 21:18:27 +11:00
Jokob-sk
7baae289d1 Fix Device table not loading 2023-01-23 00:03:34 +11:00
Jokob-sk
a33c50361f Remove references to setting_darkmode 2023-01-22 17:03:49 +11:00
Jokob-sk
ecc4920b04 New screenshots 2023-01-22 16:35:33 +11:00
Jokob-sk
1f3e28fe83 Fix new version template + Firewall type 2023-01-22 12:47:38 +11:00
Jokob-sk
a9132d7b46 Network tree 0.3 2023-01-22 12:02:06 +11:00
Jokob-sk
f54929c6cb Network tree 0.2 2023-01-22 11:59:35 +11:00
Jokob-sk
1a181d08b9 Network tree 0.1 2023-01-22 11:45:08 +11:00
Jokob-sk
94b32f0f73 Devices Columns 0.4 - backup 2023-01-21 12:45:25 +11:00
Jokob-sk
ab98382984 Devices Columns 0.3 2023-01-20 23:44:33 +11:00
Jokob-sk
5498035ca9 Devices Columns 0.2 2023-01-18 23:06:06 +11:00
Jokob-sk
a1444659ea Devices Columns 0.1 2023-01-17 23:42:00 +11:00
Jokob-sk
b9d65ea0e2 Refactor Toggle Dark mode 0.2 2023-01-17 19:17:23 +11:00
Jokob-sk
aac35294b5 PHP error fix 2023-01-17 00:03:50 +11:00
Jokob-sk
fef33d652d Refactor Toggle Dark mode 2023-01-16 23:56:19 +11:00
Jokob-sk
8ef6f420e4 Device Icons 0.3 2023-01-16 21:18:35 +11:00
Jokob-sk
7675ebc7d3 Device Icons 0.2 2023-01-15 21:34:10 +11:00
Jokob-sk
90e4b36106 Attempt at CI/CD warning fix 0.1 2023-01-15 18:44:25 +11:00
Jokob-sk
e7ac2321f2 Device Icons 0.1 2023-01-15 17:27:23 +11:00
Jokob-sk
e0d8ade2d0 Show name instead of MAC in drp 2023-01-15 16:23:14 +11:00
Jokob-sk
f5546b6a49 Network page improvements 2023-01-15 14:23:32 +11:00
Jokob-sk
3c13f82d61 Get internet IP setting + session cache fix 2023-01-14 10:03:56 +11:00
Jokob-sk
121b5cdf32 SMTP_SKIP_TLS fix 2023-01-10 21:12:37 +11:00
Jokob-sk
593c03b035 enable testing of notifications 2023-01-10 21:01:12 +11:00
Jokob-sk
3a4e3fa22a Merge branch 'main' of https://github.com/jokob-sk/Pi.Alert 2023-01-08 18:35:16 +11:00
Jokob-sk
098b87d09e front end trigger for backend jobs framework 2023-01-08 18:31:47 +11:00
Jokob-sk
8783b89f21 font awesome upgrade to v6 2023-01-08 11:26:04 +11:00
Jokob-sk
a29d0a6cf6 permissions fix 2023-01-07 23:43:08 +11:00
Jokob-sk
4d0d62a00b extending sample json 2023-01-07 14:38:52 +11:00
Jokob-sk
d951e26fa8 settings revamp 2023-01-07 12:51:01 +11:00
Jokob-sk
52e2c2ccd2 nmap count in logs 2023-01-06 23:25:15 +11:00
jokob-sk
87cb5a5c24 addition of n8n config link 2023-01-06 22:21:21 +11:00
jokob-sk
59967dd1f0 A simple webhook + n8n guide 2023-01-06 22:19:17 +11:00
jokob-sk
46e57af6dd Increase Pholus scan timeout 2023-01-06 22:16:53 +11:00
Jokob-sk
9ec69d895c cleanup 2023-01-06 22:14:50 +11:00
Jokob-sk
c20b239351 saving port info + links 2023-01-06 21:16:01 +11:00
Jokob-sk
09d9491354 deviceDetails change notification overhaul 2023-01-06 00:01:24 +11:00
Jokob-sk
68bc03d6a5 check version&prompt before leave settings 2023-01-05 21:26:32 +11:00
Jokob-sk
95e6b1a59c version check 0.3 2023-01-05 15:08:35 +11:00
Jokob-sk
b2fb0b2130 refactor settings 2 2023-01-04 21:42:06 +11:00
Jokob-sk
b5e90f63a3 refactor settings 2023-01-04 21:18:50 +11:00
Jokob-sk
566a5904a6 cleanup + moving arp-scan setting 2023-01-04 19:11:35 +11:00
Jokob-sk
7678a1a88b version check 0.1 2023-01-04 00:11:52 +11:00
Jokob-sk
8490540384 version check 2023-01-03 23:58:35 +11:00
jokob-sk
2aabae6faa Update and rename docker.yml to docker_dev.yml 2023-01-03 20:31:36 +11:00
jokob-sk
d9c841842e Create docker_prod.yml 2023-01-03 20:31:02 +11:00
jokob-sk
7cb4f4560a Rollback 2023-01-03 05:02:25 +00:00
jokob-sk
d110409944 Test - commit tags 2023-01-03 04:49:58 +00:00
Jokob-sk
891d9e5e1b PUSHPROD 23.01.03 HF02 2023-01-03 12:44:53 +11:00
Jokob-sk
980aba1cda PUSHPROD 23.01.03 HF01 2023-01-03 10:27:38 +11:00
Jokob-sk
37e8a79159 PUSHPROD 23.01.02 2023-01-02 20:31:17 +11:00
Jokob-sk
ac3f502547 PUSHPROD 23.01.02 2023-01-02 20:23:51 +11:00
Jokob-sk
75cbc3c249 nmap 0.3 2023-01-02 19:48:07 +11:00
Jokob-sk
f8b6b5272b nmap 0.2 2023-01-02 19:42:53 +11:00
Jokob-sk
86d2e6258d nmap 0.1 2023-01-02 16:06:13 +11:00
Jokob-sk
8878853319 fixed purge bug 2023-01-02 12:20:15 +11:00
Jokob-sk
d04f229ffa Cleanup 2023-01-02 11:44:42 +11:00
Jokob-sk
856e12bdc7 Rewrite scheduler 2023-01-02 11:12:35 +11:00
Jokob-sk
66e6f9b3f7 Pholus hanging workaround 2023-01-02 10:01:59 +11:00
Jokob-sk
e77e1d5503 much more logging for the pholus issue + settings check 2023-01-01 23:27:40 +11:00
Jokob-sk
7aa61e142e more logging to debug pholus issues 2023-01-01 15:33:41 +11:00
Jokob-sk
5ed57780a3 better skipcache integration 2023-01-01 14:33:32 +11:00
Jokob-sk
9cc4513ba1 online history - fix negative 2023-01-01 13:17:50 +11:00
Jokob-sk
f487dc83c4 removing DB opens/closes 2 2023-01-01 12:56:34 +11:00
Jokob-sk
b86cbb3a39 removing DB opens/closes 2023-01-01 12:49:11 +11:00
Jokob-sk
ec32fca3f9 more pholus debug prints 2023-01-01 11:03:11 +11:00
Jokob-sk
a4aaa7282b fix previous_IP 2 2023-01-01 10:41:21 +11:00
Jokob-sk
f0290da391 fix previous_IP 2023-01-01 10:15:29 +11:00
Jokob-sk
2ab0807b05 failed bettr table 2022-12-31 16:41:12 +11:00
Jokob-sk
9489567576 php error fixes 2022-12-31 15:29:24 +11:00
Jokob-sk
8a3acac3e1 added 5m cache to the parameters.php 2022-12-31 15:23:04 +11:00
Jokob-sk
e7fe5f795a php clean-up, logon fix 2022-12-31 14:02:30 +11:00
Jokob-sk
c35b22dc53 Merge branch 'main' of https://github.com/jokob-sk/Pi.Alert 2022-12-31 11:41:18 +11:00
Jokob-sk
1341d62da4 Added debugging output for when Pholus hangs 2022-12-31 11:40:39 +11:00
jokob-sk
dfa2739bb1 Create FUNDING.yml 2022-12-31 10:41:07 +11:00
Jokob-sk
4112263286 PUSHPROD Pholus scan BETA 2022-12-31 00:36:20 +11:00
Jokob-sk
9c705c4fc9 Merge branch 'main' of https://github.com/jokob-sk/Pi.Alert 2022-12-31 00:28:26 +11:00
Jokob-sk
73fd1ef9b4 pholus 2.2 2022-12-31 00:25:32 +11:00
jokob-sk
74ba402d5d Clean-up of pialert.conf 2022-12-31 00:23:36 +11:00
Jokob-sk
bde96af7da pholus 2.1 2022-12-30 12:16:14 +11:00
Jokob-sk
6ef0ba3098 pholus 2 2022-12-29 20:40:27 +11:00
Jokob-sk
89ffaff64d pholus 1 2022-12-28 22:02:42 +11:00
Jokob-sk
29131e39d2 fix readme 2022-12-28 14:21:53 +11:00
Jokob-sk
76b0d76eaa Pholus 0.1 2022-12-28 14:14:34 +11:00
Jokob-sk
60a9605302 added pholus 2022-12-27 22:43:21 +11:00
Jokob-sk
b35489ee63 updated contact info 2022-12-27 22:29:47 +11:00
Jokob-sk
6d58e5b675 cleanup + added edit hint for drpds 2022-12-27 18:17:00 +11:00
Jokob-sk
d0ad78920f logs fixes 2022-12-27 14:08:57 +11:00
Jokob-sk
b34a2d60e3 mobile fix + new screnshots 2022-12-27 12:42:40 +11:00
Jokob-sk
ca8042c2e9 code cleanup 2022-12-26 21:30:28 +11:00
Jokob-sk
31d7c5173f code cleanup 2022-12-26 20:30:28 +11:00
Jokob-sk
7b5be5feee Added lang fallback support 2022-12-26 18:15:25 +11:00
Jokob-sk
2d683c6ab1 Global status, CSS/JS fixes 2022-12-26 14:53:54 +11:00
Jokob-sk
5e46ce4210 Settings:No need for Restart 2022-12-26 11:25:17 +11:00
Jokob-sk
47e8e59a52 MQTT stats fix 2022-12-26 00:47:56 +11:00
Jokob-sk
923ab5b903 CSS and row count fixes 2022-12-26 00:30:05 +11:00
Jokob-sk
8c8eaeb92f logging cleanup 2022-12-25 14:25:45 +11:00
Jokob-sk
d6a5f23345 PUSHPROD fix settings & LOG_PRINT 2022-12-25 10:09:34 +11:00
Jokob-sk
ba8fa0b37b cleanup + failing build fix 2022-12-24 22:17:36 +11:00
Jokob-sk
0714aea30d fixing PHP warnings 2022-12-24 21:57:43 +11:00
Jokob-sk
da3ac55122 PUSHPROD default db and conf file for new installs 2022-12-24 13:12:23 +11:00
Jokob-sk
f651d9336a PUSHPROD Settings 0.2 2022-12-24 10:56:53 +11:00
Jokob-sk
b7cbb39b51 PUSHPROD settings v 0.1 2022-12-23 23:43:33 +11:00
Jokob-sk
eb96791223 settings prep 2 2022-12-23 20:36:07 +11:00
Jokob-sk
ffd8f870f3 settings prep 1 2022-12-23 00:28:50 +11:00
Jokob-sk
1ea7990314 settings prep 0 2022-12-19 23:53:48 +11:00
jokob-sk
4839c02d50 Merge pull request #123 from devlincashman/use-path-context-so-dockerignore-is-respected
Use path context so dockerignore is respected
2022-12-19 08:15:42 +11:00
jokob-sk
b6dffae33e Merge pull request #124 from devlincashman/add-init-manager
Add tini as init manager to handle potential zombie processes
2022-12-19 08:15:21 +11:00
Devlin Cashman
d925455356 add tini as init manager 2022-12-18 13:31:34 -05:00
Devlin Cashman
ef8506e5ec use path context so dockerignore is respected 2022-12-18 13:23:58 -05:00
jokob-sk
f138ad9885 Merge pull request #120 from devlincashman/dockerfile-size-reduction-permissions
Reduce docker image size by setting permissions at copy stage
2022-12-18 03:50:40 +00:00
Devlin Cashman
c7abe29762 reduce image size by setting permissions at copy stage 2022-12-17 20:35:31 -05:00
Jokob-sk
c29a8ed864 simple docker compose example 2022-12-18 09:10:32 +11:00
Jokob-sk
ca9315314a removing unnecessary config 2022-12-17 20:40:17 +11:00
jokob-sk
0299b1a5e5 Added mapping info for pihole 2022-12-17 19:58:37 +11:00
jokob-sk
3db771bf5f Added pihole paths 2022-12-17 19:54:11 +11:00
jokob-sk
1599724239 Update README.md 2022-12-17 15:49:21 +11:00
jokob-sk
a7f6be8f3f Create CONTRIBUTING 2022-12-17 15:15:00 +11:00
Jokob-sk
d86becd127 Merge branch 'main' of https://github.com/jokob-sk/Pi.Alert 2022-12-17 15:05:55 +11:00
Jokob-sk
8e2785cfd1 README cleanup 2022-12-17 14:58:57 +11:00
jokob-sk
685d097250 Update issue templates 2022-12-17 14:52:52 +11:00
jokob-sk
ee3d8730cc Update issue templates 2022-12-17 14:52:21 +11:00
jokob-sk
3b5ceaa483 Update issue templates 2022-12-17 14:51:04 +11:00
Jokob-sk
b68be7385f Merge branch 'main' of https://github.com/jokob-sk/Pi.Alert 2022-12-17 10:03:06 +11:00
Jokob-sk
488085324f default variables init 2022-12-17 10:02:26 +11:00
jokob-sk
ccc33bf498 PUSHPROD 2022-12-12 19:12:46 +11:00
jokob-sk
d137599ac3 Removed unnecessary config variables 2022-12-12 19:05:15 +11:00
Jokob-sk
0a80300563 ficed possible pialert.conf variable conflicts 2022-12-12 19:04:19 +11:00
Jokob-sk
9eb9ba1039 PUSHPROD 2022-12-11 16:37:20 +11:00
Jokob-sk
0f8f3eca81 fixed reporting sections 2022-12-11 16:17:36 +11:00
Jokob-sk
4ad406a8c3 fixed logging + cleanup 2022-12-11 16:00:46 +11:00
Jokob-sk
f332a59b76 tets 2022-12-11 14:20:05 +11:00
jokob-sk
c56d225c1f Delete webhook_payload.json 2022-12-11 14:18:31 +11:00
jokob-sk
057ddc00c0 Delete stdout.log 2022-12-11 14:18:23 +11:00
jokob-sk
6499e50775 Delete stderr.log 2022-12-11 14:18:17 +11:00
jokob-sk
8cde20cef3 Delete pialert.log 2022-12-11 14:18:09 +11:00
jokob-sk
68713007c8 Delete IP_changes.log 2022-12-11 14:17:52 +11:00
Jokob-sk
772bedfa34 update 2022-12-11 14:07:26 +11:00
Jokob-sk
ef78a3c5b6 update 2022-12-11 14:04:34 +11:00
Jokob-sk
6c818c7a57 update gitignore 2022-12-11 14:04:13 +11:00
Jokob-sk
1b6d8862bc cleanup 2022-12-11 14:01:49 +11:00
Jokob-sk
7b70b490e7 cleanup 2022-12-11 13:59:53 +11:00
jokob-sk
6d9ffaabf8 Remove log location configuration option 2022-12-11 13:37:35 +11:00
Jokob-sk
6ebd4ed15b added Logs in maintenance + cleanup 2022-12-11 13:35:41 +11:00
Jokob-sk
eff474df1c README cleanup 2022-12-10 15:27:02 +11:00
Jokob-sk
55a2688f77 remove version.conf + README cleanup 2022-12-10 15:06:47 +11:00
Jokob-sk
f6efb6d21f show port number on devices connected to WiFi if specified 2022-12-07 20:07:12 +11:00
Jokob-sk
eb7503efdd refresh page on focus 2022-12-07 19:58:51 +11:00
Jokob-sk
e0fdfd6284 fix german 2022-12-07 19:49:25 +11:00
Jokob-sk
f7fbf9488a Merge branch 'main' of https://github.com/jokob-sk/Pi.Alert 2022-12-06 19:00:10 +11:00
Jokob-sk
516ecdf84c added skipdiscovery to nmap scan 2022-12-06 18:58:47 +11:00
jokob-sk
a81d2deaab Update README.md 2022-12-04 21:48:25 +11:00
jokob-sk
6e7314dfbf Update README.md 2022-12-04 21:37:24 +11:00
jokob-sk
9d14530402 Update README.md 2022-12-04 21:35:11 +11:00
jokob-sk
c52bd3a2aa Update README.md 2022-12-04 21:34:33 +11:00
jokob-sk
5df98e9fd8 Clean up 2022-12-04 21:31:53 +11:00
jokob-sk
4f7268dae9 Update README.md 2022-12-04 20:57:00 +11:00
jokob-sk
33f981d4f9 Update pialert.conf 2022-12-04 18:07:04 +11:00
jokob-sk
35805317ef Update pialert.conf 2022-12-04 18:06:17 +11:00
jokob-sk
5bd372de88 MQTT PUSHPROD 2022-12-04 18:03:01 +11:00
Jokob-sk
442323f2dc mqtt prep 10 + readme cleanup 2022-12-04 17:57:21 +11:00
jokob-sk
1a61bb4670 mqtt prep 9 2022-12-04 00:13:20 +11:00
Jokob-sk
8ea3f077e5 mqtt prep 8 2022-12-04 00:07:22 +11:00
Jokob-sk
525f6c3bf1 mqtt prep 7 2022-11-28 23:30:44 +11:00
Jokob-sk
c790b1ee88 mqtt prep 6 2022-11-27 21:58:29 +11:00
Jokob-sk
9c81ce9612 mqtt prep 5 2022-11-26 20:24:24 +11:00
Jokob-sk
b86c9b360e mqtt prep 4 2022-11-26 12:07:48 +11:00
Jokob-sk
92b821eb37 mqtt prep 3 2022-11-23 14:18:06 +11:00
Jokob-sk
c5fa10f675 mqtt prep 2 2022-11-22 16:28:40 +11:00
Jokob-sk
9df9f6b81a mqtt prep 2022-11-22 14:47:27 +11:00
Jokob-sk
fea243aca5 MQTT prep-work 2 2022-11-21 01:19:19 +11:00
Jokob-sk
f634d234d6 MQTT prep-work 2022-11-20 19:07:35 +11:00
Jokob-sk
5164d6566d more cleanup 2022-11-20 14:08:54 +11:00
Jokob-sk
7d4d5433ef refactoring 0 2022-11-20 09:25:46 +11:00
Jokob-sk
61425415c6 rewrite cron to loop 2022-11-20 00:56:05 +11:00
Jokob-sk
e880e95c3d selfhosted ntfy support + authentication + refactor if config variables are missing 2022-11-19 16:50:11 +11:00
jokob-sk
6f7291940e Merge pull request #105 from Fabaderheld/main
authentication NTFY
2022-11-19 01:56:43 +00:00
Fabian Sasse
879687e0af authentication NTFY 2022-11-15 17:33:37 +01:00
jokob-sk
c43c4d9eb3 Merge pull request #104 from Fabaderheld/main
Added use selfhosted ntfy
2022-11-15 00:13:28 +00:00
Fabian Sasse
e0bec8a9d4 Added use selfhosted ntfy 2022-11-14 13:50:56 +01:00
jokob.sk
0dbf06a2e6 attempt fix github actions warnings 5 2022-10-22 14:33:28 +11:00
jokob.sk
afc863f48a attempt fix github actions warnings 4 2022-10-22 14:31:51 +11:00
jokob.sk
f8de706b0a attempt fix github actions warnings 3 2022-10-22 14:04:53 +11:00
jokob.sk
0a1b8ffe43 attempt fix github actions warnings 2 2022-10-22 13:51:58 +11:00
jokob.sk
2778c1b109 attempt fix github actions warnings 2022-10-22 13:36:22 +11:00
jokob.sk
3d83a0b77b fix typos 2022-10-22 13:15:00 +11:00
jokob.sk
b0bb00c0ab remove confusing installation isntructions PUSHPROD 2022-10-22 13:13:20 +11:00
jokob.sk
1403fd54e9 Merge branch 'main' of https://github.com/jokob-sk/Pi.Alert 2022-10-22 09:27:32 +11:00
jokob-sk
97870201db Update pialert.conf
Added clarification on how INCLUDED_SECTIONS behaves
2022-10-22 09:25:01 +11:00
jokob.sk
b97ffb26ab attempt to fix github actions error 2022-10-22 09:07:49 +11:00
jokob-sk
c258f8fdc1 Merge pull request #103 from berkobob/webhook_text
Webhook text & a new INCLUDED_SECTIONS config option
2022-10-22 08:47:21 +11:00
Antoine
6eef2b094d Remove EVENT_LEVEL and add INCLUDED_SECTIONS 2022-10-21 15:50:12 +01:00
Antoine
059017e71a Add EVENT_LEVEL comments to config file 2022-10-20 09:57:06 +01:00
Antoine
1cefbe0299 Add a text option for webhooks and different repoting levels 2022-10-20 09:42:26 +01:00
jokob.sk
c289e74e4a attempt at byte string to string fix when generating json 2022-10-16 16:57:46 +11:00
jokob.sk
e0c8221a9c increased ngix timeout for detailed NMAP scans in prev commit PUSHPROD 2022-10-09 12:06:35 +11:00
jokob.sk
aadd148cc6 added JSON logging and updated readme 2022-10-09 12:02:19 +11:00
jokob.sk
4e8401ab7e README cleanup & PUSHPROD 2022-10-03 13:54:38 +11:00
jokob.sk
238b2fb519 README cleanup & 2022-10-03 13:53:37 +11:00
jokob.sk
7e7df758a1 updated badges 2022-10-03 13:24:30 +11:00
leiweibau
056949aab0 Maintenance
disable error reporting on maintenance.php and network.php
2022-10-02 23:44:56 +11:00
jokob.sk
dc5deaab42 Added IP camera as device type 2022-10-02 23:02:13 +11:00
jokob.sk
32d5455f45 added option to specify HTTP method 2022-10-02 21:52:46 +11:00
jokob-sk
43bc86becf Merge pull request #98 from GentleHoneyLover/patch-1
Update README.md
2022-09-28 11:44:53 +02:00
Honey Lover
c8346c1d09 Update README.md
To clarify procedure for setting your own Web UI password.
2022-09-28 11:37:07 +02:00
jokob-sk
97305026a7 Merge pull request #87 from tylerobara/patch-1
fixed a spelling on the maintenance page
2022-09-02 08:47:53 +10:00
tylerobara
36b57a6bef fixed a spelling on the maintenance page
changed "where" to "were"
2022-09-01 13:32:46 -04:00
jokob-sk
ff6538e920 Trigger PUSHPROD 2022-08-17 14:12:53 +10:00
jokob.sk
45ce9feaae Merge branch 'main' of https://github.com/jokob-sk/Pi.Alert 2022-08-17 13:39:59 +10:00
jokob.sk
ced6190b55 Discord compatible webhooks + bugfix of redirect after logon 2022-08-17 13:39:06 +10:00
jokob-sk
4cd2f7cf32 Trigger PUSHPROD 2022-08-16 15:04:08 +10:00
jokob.sk
929ea98fce added support of multiple arp-scan interfaces & attempt at solving DB permission issues 2022-08-16 14:15:02 +10:00
jokob-sk
adf11de4ec FAQupdate and github workflows 2022-08-14 10:30:54 +10:00
jokob-sk
43ff7b48f7 info on how to resolve DB permission issues 2022-08-14 09:59:38 +10:00
jokob-sk
021547f1e5 Merge pull request #81 from maikell/patch-1
Update README.md
2022-08-14 09:50:21 +10:00
Maikel van Leeuwen
5afb11d617 Update README.md
pialert db permissions can be easily solved with one docker command execution.
2022-08-13 19:48:48 +02:00
jokob-sk
04c88aee06 implemented apprise notifications + readme updates 2022-08-13 19:07:04 +10:00
jokob-sk
7bc4686553 switch to main dockerhub image 2022-08-12 22:08:18 +10:00
jokob-sk
4bdbba2eb1 webhooks 2022-08-12 22:07:28 +10:00
jokob-sk
03a08b5847 Merge pull request #80 from jokob-sk/test-merge
Consolidate work from other forks
2022-08-12 15:04:51 +10:00
leiweibau
5ffcd3db92 bugfixing 2022-08-12 14:38:18 +10:00
leiweibau
1ad41b1829 Update pialert-cli 2022-08-12 14:38:07 +10:00
leiweibau
d29001ef32 Add new commands to pialert-cli
enable and disable arp-scan
Update help commands
2022-08-12 14:37:50 +10:00
leiweibau
28177f20f4 readme update 2022-08-12 14:37:24 +10:00
leiweibau
9e49ea1de7 readme update 2022-08-12 14:36:01 +10:00
leiweibau
8eb28d15b4 Update pialert-cli 2022-08-12 14:33:23 +10:00
leiweibau
7c96059b7f Update pialert-cli 2022-08-12 14:33:11 +10:00
leiweibau
65ddfd8fb2 Update pialert-cli 2022-08-12 14:32:58 +10:00
leiweibau
ef6eac24cc alternative to reset_password.sh
This file is now located in the "back" directory and is the basis for the login configuration in the frontend
2022-08-12 14:32:47 +10:00
leiweibau
83395fd97e delete reset_password.sh
deleted because of the switch to an alternative
2022-08-12 14:32:32 +10:00
leiweibau
85ff325838 Merge pull request #22 from terorero/main
Help Page - update to spansih

Thanks
2022-08-12 14:31:59 +10:00
leiweibau
11142d263c Merge pull request #22 from terorero/main
Help Page - update to spansih

Thanks
2022-08-12 14:30:58 +10:00
“terorero”
8146281616 move sign out into language strings 2022-08-12 14:21:00 +10:00
“terorero”
bffec25f44 Add $pia_lang['Navigation_HelpFAQ'] = 'Ayuda / FAQ'
Add $pia_lang['Navigation_HelpFAQ'] = 'Ayuda / FAQ'
2022-08-12 14:18:51 +10:00
“terorero”
0417a98646 es 2022-08-12 14:18:43 +10:00
jokob-sk
19cc93a271 switch to the _dev container for testing 2022-08-12 12:20:12 +10:00
jokob-sk
886a3eef9f DB setup details for docker + small fixes 2022-08-12 12:18:52 +10:00
deadbeet
c25fbe4cb8 add: ntfy and webhook support 2022-08-09 00:42:28 +10:00
jokob-sk
4b204b8a29 fixes and badges + webhook prep 2022-08-08 21:24:05 +10:00
jokob-sk
3d58952654 Update docker.yml 2022-08-08 00:15:23 +10:00
jokob-sk
777f7939b9 Merge pull request #77 from jokob-sk/faq-new
Faq new - based on amazing work of a18598cd9d
2022-08-08 00:14:55 +10:00
jokob-sk
d7b71d6e49 re-added spanish translations 2022-08-08 00:08:13 +10:00
jokob-sk
c7ec840bd8 added FAQ + slight text changes 2022-08-08 00:02:01 +10:00
leiweibau
5c272f4d1a Update maintenance.php 2022-08-07 22:44:49 +10:00
leiweibau
315f7fd37f Update maintenance.php 2022-08-07 22:41:16 +10:00
leiweibau
8a1ac8454d disable reporting for cleanup tasks 2022-08-07 22:41:07 +10:00
leiweibau
3a813da5ac Help/FAQ Section 2022-08-07 22:40:56 +10:00
jokob-sk
38bdb3523d Delete pialert_latest.tar 2022-08-06 20:40:37 +10:00
jokob-sk
39da334c5c Merge pull request #75 from jokob-sk/terorero-merge-result
Terorero merge result
2022-08-06 20:39:19 +10:00
jokob-sk
606324331d gitignore fix 2022-08-06 20:34:15 +10:00
jokob-sk
1093c5dabf terorero merge fix 2022-08-06 20:33:35 +10:00
jokob-sk
8d52ac629d Merge remote-tracking branch 'origin/terorero-merge' into pr/74 2022-08-06 19:47:26 +10:00
jokob-sk
3bb981ac7f Update docker.yml 2022-08-06 17:36:15 +10:00
“terorero”
5a4b8c1fc9 Update es_es.php add $pia_lang['Maintenance_Tool_ExportCSV'] for spanish
Add $pia_lang['Maintenance_Tool_ExportCSV'] for spansih
2022-08-06 01:51:59 -04:00
jokob-sk
a28fb9df09 typo fix 2022-08-06 15:17:29 +10:00
jokob-sk
e12b948bbd network update 2022-08-06 12:43:38 +10:00
jokob-sk
61b33da43e Merge pull request #68 from 0x5f3/nginx
replace lighttpd with nginx
2022-08-06 10:53:35 +10:00
jokob-sk
7d2464207b cleanup defaults 2022-08-06 10:21:17 +10:00
jokob-sk
5a684b94cd Merge branch 'leiweibau-consolidation-2022-08-06' of https://github.com/jokob-sk/Pi.Alert into leiweibau-consolidation-2022-08-06 2022-08-06 09:36:29 +10:00
jokob-sk
09382a055a small fixes 2022-08-06 09:36:13 +10:00
jokob-sk
584db2fdab Update docker.yml 2022-08-06 09:27:50 +10:00
jokob-sk
346ac5912c @leiweibau consolidation-2022-08-06 2022-08-06 09:24:46 +10:00
leiweibau
c212193d87 redo d1d79691dd 2022-08-05 23:16:28 +02:00
leiweibau
4ad9c89fde Translations on Loginpage
and bugfixing link
2022-08-05 21:15:51 +02:00
((void*)0)
4fe9122a12 Merge branch 'jokob-sk:main' into nginx 2022-08-05 13:37:07 +00:00
0x5f3
9ac289a969 replace lighttd with nginx 2022-08-05 13:21:53 +00:00
jokob-sk
9fd4503ba8 Update README.md 2022-08-05 23:09:25 +10:00
jokob-sk
ff06c93a42 Merge pull request #67 from 0x5f3/rebase-fix
fix rebase issues with reverse proxy
2022-08-05 23:00:52 +10:00
jokob-sk
5a1c1036dd csv export/import 2022-08-05 22:56:48 +10:00
0x5f3
23970fa2cd fix rebase issues with reverse proxy 2022-08-05 12:37:08 +00:00
jokob-sk
8650c68801 Optimisation no 5: cache events totals for 5min + sql optimization 2022-08-05 16:52:59 +10:00
jokob-sk
75c901a111 Optimisation no 4: cache device totals for 5min 2022-08-05 15:26:28 +10:00
jokob-sk
50ccdcf0d0 ensure /pialerd path backwards compatibility 2022-08-05 11:56:01 +10:00
jokob-sk
e6d75b411a Manual merge of pr/64 by @0x5f3 2022-08-05 10:57:16 +10:00
jokob-sk
7d50e3407b Update .dockerignore
we nee the user-mapping.sh file to map container to host GUI/UID
2022-08-05 10:20:59 +10:00
jokob-sk
9f5143ff69 Merge pull request #64 from 0x5f3/bullseye
Upgrade base image to Debian Bullseye 

Great work, thanks!  🥇, I just have to adjust the gitignore after the merge - the user-mapping.sh is required
2022-08-05 10:18:38 +10:00
leiweibau
634cd14b83 update Readme 2022-08-04 23:31:00 +02:00
leiweibau
050af17888 Add Remenber Password
tested and should work now
2022-08-04 21:58:59 +02:00
leiweibau
d37147b3c7 Update README.md 2022-08-04 17:02:33 +02:00
leiweibau
369abe38ba roll back timezone setting
Why try to fix a faulty configuration instead of correcting the error. In a future FAQ I will address the issue
2022-08-04 15:53:25 +02:00
leiweibau
35fc9f2b0e Merge 899b296bfe 2022-08-04 15:41:42 +02:00
leiweibau
1986b85580 Maintain "cleanup" Section of pialert.py
Add Config Parameters
No defaults set if they are missing. Will follow soon.
2022-08-04 15:37:45 +02:00
leiweibau
0ca3628367 Remove unused Code 2022-08-04 15:26:48 +02:00
leiweibau
72afb77ef7 Update german language file 2022-08-04 15:24:40 +02:00
jokob-sk
899b296bfe optimisations #3 increased auto-refresh time from 5s to 1min 2022-08-04 23:20:30 +10:00
jokob-sk
04044bfec5 missing language strings for the log in screen 2022-08-04 22:58:12 +10:00
jokob-sk
8e173eab88 optimisations #2, basic session cache for some dropdowns 2022-08-04 22:45:12 +10:00
((void*)0)
ce7182a0e7 Create .dockerignore 2022-08-04 12:28:14 +00:00
jokob-sk
42363879e1 fix dev_Network_Node_MAC bug (rename was needed) 2022-08-04 21:11:49 +10:00
jokob-sk
c99f1a6e0d manual merge of leiweibau and TeroRERO changes 2022-08-04 19:39:07 +10:00
leiweibau
405a662138 Merge pull request #20 from terorero/main
Update es_es.php (Adding missing input)
2022-08-04 07:45:55 +02:00
“terorero”
71e7ee6f2d Translating home page to spanish
login-page Translating home page to spanish
2022-08-03 23:06:32 -04:00
“terorero”
ec4f5ade70 Fix es_es.php Tittle allevents 30
Fix es_es.php Tittle allevents 30
2022-08-03 21:19:22 -04:00
“terorero”
a5552bb088 Update es_es.php (Adding missing input) date change
['Maintenance_Tool_del_allevents30'] (Adding missing input) date change
2022-08-03 21:04:40 -04:00
“terorero”
47aa96189f (Adding missing input) for es_es.php
$pia_lang['Maintenance_Tool_del_allevents30'] (Adding missing input)
2022-08-03 20:57:55 -04:00
“terorero”
cb91ef1f08 Update es_es.php
$pia_lang['Navigation_Network'] = 'Network'; (Adding missing input).
2022-08-03 20:32:19 -04:00
leiweibau
00c61d8046 Add "Optimize" task to "cleanup section 2022-08-03 21:31:45 +02:00
leiweibau
31881a4342 partially merge of 86ffe8ba36 2022-08-03 20:49:48 +02:00
leiweibau
1519f55e68 Update README.md 2022-08-03 19:56:42 +02:00
leiweibau
0d25f4021b Merge branch 'main' of https://github.com/leiweibau/Pi.Alert 2022-08-03 19:54:30 +02:00
leiweibau
ea621d4db3 Maintaining setup 2022-08-03 19:54:26 +02:00
leiweibau
8ecea4c067 Update README.md 2022-08-03 19:16:05 +02:00
leiweibau
dffca5e619 Add "cleanup" parameter
- a section for future automated cleanup tasks.
- add cleanup to the .cron file
- add cleaning "Online_History" exept the last 1 day
2022-08-03 18:48:12 +02:00
jokob-sk
86ffe8ba36 optimisations 2022-08-04 00:17:47 +10:00
((void*)0)
62c90aadf8 Update Dockerfile 2022-08-03 11:09:35 +00:00
0x5f3
e1f0926159 Debian Bullseye 2022-08-03 11:07:53 +00:00
leiweibau
79b6e6ff22 Update README.md 2022-08-03 12:21:15 +02:00
((void*)0)
a283a2508c Merge pull request #9 from jokob-sk/main
Update
2022-08-03 10:19:42 +00:00
leiweibau
6c297e3df0 Merge branch 'main' of https://github.com/leiweibau/Pi.Alert 2022-08-03 09:36:52 +02:00
leiweibau
60ff20f5a0 Update pialert.py 2022-08-03 09:36:42 +02:00
leiweibau
7ec10bf9c6 Update README.md 2022-08-03 09:32:49 +02:00
leiweibau
495db47399 Merge branch 'main' of https://github.com/leiweibau/Pi.Alert 2022-08-03 09:31:42 +02:00
leiweibau
69ca83914c Edit Config File
Remove parameters that cannot be used
2022-08-03 09:31:35 +02:00
leiweibau
60f9670c4a Update README.md 2022-08-03 09:28:06 +02:00
leiweibau
8441d4c21b Update README.md 2022-08-03 09:07:00 +02:00
leiweibau
711507fa1d Maintaining 2022-08-03 08:34:04 +02:00
leiweibau
e174d1113d Delete .gitignore 2022-08-03 08:10:04 +02:00
leiweibau
bf97227594 Update .gitignore 2022-08-03 08:09:32 +02:00
leiweibau
b777b3e77c Update pialert_latest.tar 2022-08-02 21:34:08 +02:00
leiweibau
f626dc48ea Update pialert_install.sh
change download-URL
chmod +x speedtest-cli
install nmap
2022-08-02 21:26:05 +02:00
leiweibau
42129f558b Merge pull request #18 from leiweibau/setup_test
Setup test
2022-08-02 21:12:43 +02:00
leiweibau
5f569c9e99 Create pialert_latest.tar 2022-08-02 21:06:45 +02:00
leiweibau
8a13172eb3 Merge branch 'setup_test' of https://github.com/leiweibau/Pi.Alert into setup_test 2022-08-02 21:05:33 +02:00
leiweibau
734c488ca0 fix DB Error and update archive 2022-08-02 21:05:12 +02:00
leiweibau
3335fb4f63 Delete pialert_latest.tar
bug in DB
2022-08-02 21:01:04 +02:00
leiweibau
9c485bd973 Update pialert_install.sh 2022-08-02 19:58:52 +02:00
jokob-sk
c9bc27531a Update docker.yml
Trigger re-built and point to main dockerhub image
2022-08-02 22:27:46 +10:00
jokob-sk
9a96529ae0 add delete events older than 30 days 2022-08-02 22:21:22 +10:00
jokob-sk
362c54e00a Merge branch 'fix-merge-5' into pr/60 2022-08-02 21:25:13 +10:00
jokob-sk
ad8554ab72 network and other small enhancements 2022-08-02 21:21:31 +10:00
jokob-sk
8c9b1a5e3c Update README.md
Added clarification on Upgrade + fixed typo in pucherot's name
2022-08-02 13:04:32 +10:00
jokob-sk
cf60947ce7 Update README.md
link fix, highlight note
2022-08-02 11:53:47 +10:00
jokob-sk
588834ede8 Update README.md
Clarifying installation of different forks
2022-08-02 11:41:48 +10:00
jokob-sk
fb0ceaf7a3 fix network further 2022-08-02 11:06:19 +10:00
leiweibau
c7eb1df7d5 create install files 2022-08-01 23:24:19 +02:00
leiweibau
c582f017d7 Delete tar directory 2022-08-01 22:44:05 +02:00
leiweibau
679b150c43 Update README.md 2022-08-01 22:29:29 +02:00
leiweibau
393ef181bb Merge branch 'main' of https://github.com/leiweibau/Pi.Alert 2022-08-01 21:45:39 +02:00
leiweibau
f0965c2080 Change the login Page
When a new password is set, the warning changed to an info box
2022-08-01 21:45:32 +02:00
leiweibau
b1c0112734 Merge pull request #16 from terorero/main
Update es_es.php
2022-08-01 14:32:54 +02:00
jokob-sk
a7316c0a4b Merge pull request #57 from terorero/main
Update es_es.php
2022-08-01 17:24:37 +10:00
“terorero”
9614e70484 Update es_es.php
Update network page and more
2022-08-01 01:56:22 -04:00
jokob-sk
d0f43e0d28 fix textbox id 2022-08-01 14:35:47 +10:00
jokob-sk
f6490f5325 rewritten network tab 2022-07-31 19:48:43 +10:00
((void*)0)
a9bdeba8b1 Merge pull request #8 from jokob-sk/main
jokob-sk > development
2022-07-31 08:32:38 +00:00
jokob-sk
21bbca62c1 fixes after wrong merge 2022-07-31 11:54:18 +10:00
jokob-sk
19a4538262 Merge remote-tracking branch 'origin/leiweibau-merge-2022-07-31' into pr/55 2022-07-31 10:09:27 +10:00
leiweibau
e0ffb28477 change naming 2022-07-30 20:42:57 +02:00
leiweibau
a1200fb8b8 Update de_de.php 2022-07-30 20:18:48 +02:00
leiweibau
48595c4b84 Update deviceDetails.php 2022-07-30 19:13:01 +02:00
leiweibau
970166cb1f Merge pull request #14 from leiweibau/experimental
merge Experimental
2022-07-30 18:55:54 +02:00
leiweibau
ace63ade46 Maintaining
Improve Network page and merge a7709ce6e1
2022-07-30 18:52:12 +02:00
jokob-sk
a7709ce6e1 Added Delete Events per device in Device details 2022-07-30 10:53:13 +10:00
leiweibau
8b49a5a53f tuning and bugfixing
add edit function
2022-07-29 17:00:27 +02:00
leiweibau
28d163cf0b Merge Comit 6c4e354f5f 2022-07-29 16:41:38 +02:00
jokob-sk
43a8a3a2e6 Update README.md 2022-07-29 21:33:31 +10:00
jokob-sk
ef6ef43501 Merge pull request #52 from Final-Hawk/main
Fix timezone issues and duplicate down notifications
2022-07-29 21:20:17 +10:00
Joshua
6c4e354f5f Remove replace cycle from txt as not needed 2022-07-29 21:07:00 +10:00
Joshua
5e98961faa Fix down alerts and improve txt template 2022-07-29 21:03:01 +10:00
leiweibau
d6100dfda3 bug fixing and w3c validation 2022-07-28 22:19:49 +02:00
leiweibau
f6b6fe36da add multiple hosts per port support 2022-07-28 21:53:52 +02:00
leiweibau
eaf84be825 add multiple ports support 2022-07-28 20:22:36 +02:00
leiweibau
e3564ac067 Update version.conf 2022-07-27 21:33:01 +02:00
leiweibau
d10353b247 Update deviceDetails.php 2022-07-27 19:46:58 +02:00
leiweibau
2c00d103d9 Update network.php 2022-07-27 19:12:01 +02:00
leiweibau
4af089ece1 Update network.php 2022-07-27 19:06:54 +02:00
leiweibau
51d3dfd5d9 Merge pull request #12 from terorero/main
Fixing nickname
2022-07-27 12:35:19 +02:00
jokob-sk
e32e3952d0 Merge pull request #50 from terorero/main
Fix nickname
2022-07-27 18:14:09 +10:00
“terorero”
1533c1b3ab Fix nickname
Fix nickname
2022-07-27 02:48:13 -04:00
Joshua
5b783ebff9 Revert dockerfile changes 2022-07-27 15:01:35 +10:00
Joshua
58db58e178 try to fix docker 2022-07-27 14:52:17 +10:00
Joshua
a55d02de5e Fix Dockerfile error 2022-07-27 14:27:43 +10:00
Joshua
6586a56e10 Dockerfile Pass Timezone 2022-07-27 14:25:17 +10:00
Joshua
ebb754088b Fix incorrect config path 2022-07-27 13:34:12 +10:00
Joshua
34bc3bd60d remove line 2022-07-27 09:47:15 +10:00
Joshua
24c74ebf86 try to fix dockerfile 2022-07-27 09:42:53 +10:00
Joshua
f37da64d43 Fix Dockerfile again 2022-07-27 09:29:53 +10:00
Joshua
623e68480c Fix Dockerfile 2022-07-27 09:18:20 +10:00
leiweibau
9bfea11442 Update network.php 2022-07-27 01:13:32 +02:00
Joshua
120b24620b Beta: Fix Timezone issues 2022-07-27 09:08:29 +10:00
leiweibau
a1349f8313 add port number 2022-07-27 00:58:06 +02:00
leiweibau
0ca2ffc576 difficult to describe
I want to display an assignment of individual network nodes to specific network devices (which device is connected to which switch, router or wlan).

It is still in the experimental phase, but is already usable in principle. Whether this "feature" will make it into the main fork, I can't say yet.

Wegen der aktuellen Entwicklungsphase ist dieser teil ausschließlich deutsch.
2022-07-27 00:08:42 +02:00
jokob-sk
8fcf19b2f5 Merge pull request #47 from Final-Hawk/main
Bug Fixes and Improved NTFY
2022-07-26 18:29:45 +10:00
Joshua
544f807971 Merge branch 'main' of https://github.com/leiweibau/Pi.Alert 2022-07-26 17:32:24 +10:00
Joshua
a25b653753 Fix presence, time selector, improve ntfy 2022-07-26 17:05:27 +10:00
jokob-sk
25438db5e3 Merge pull request #46 from Final-Hawk/main
Device Navigation Fixes
2022-07-26 14:09:52 +10:00
leiweibau
b7a39bc53a Merge pull request #11 from terorero/main
Update spanish new lines
2022-07-25 23:17:51 +02:00
“terorero”
2675401a40 Update spanish new lines 2022-07-25 16:06:08 -04:00
leiweibau
35ea345922 add reset activity graph 2022-07-25 18:00:35 +02:00
leiweibau
e7614de332 Update pialert_patch_DB.sh 2022-07-25 16:56:02 +02:00
leiweibau
fe2049c5fe Update dark-patch.css 2022-07-25 16:55:43 +02:00
leiweibau
4d59388c83 improve reset_password script 2022-07-25 16:55:37 +02:00
leiweibau
415ca8a1ff Update reset_password.sh 2022-07-25 14:37:30 +02:00
leiweibau
d5582b318d More robust script
If the necessary entries do not exist in the configuration file, they will be created now.
2022-07-25 14:10:23 +02:00
Joshua
95f12b0a72 Disable delete cookie, fix fetch graph 2022-07-25 19:39:28 +10:00
Joshua
0a43e20091 Fix Nav and lost position on refresh 2022-07-25 19:26:22 +10:00
leiweibau
d1d79691dd Quickfix if an old config file is involved
a missing key could cause, that login not possible when PIALERT_WEB_PROTECTION and PIALERT_WEB_PRASSWORD missing. A more advanced fix will follow.
2022-07-25 11:17:07 +02:00
Joshua
e250894e42 Merge pull request #1 from jokob-sk/main
Update From jokob-sk/Pi.Alert
2022-07-25 18:04:34 +10:00
leiweibau
337dec8ec3 merge commit 3df87f6f36 2022-07-24 16:15:59 +02:00
leiweibau
a5a3507667 Rollback some unused changes 2022-07-24 16:15:04 +02:00
leiweibau
d002b2d009 Update maintenance.php 2022-07-24 15:54:55 +02:00
leiweibau
46184fa5f6 Merge pull request #10 from terorero/main
Perfect. Thanks.
2022-07-24 14:57:40 +02:00
leiweibau
cf83abb16b Update pialert.py
Change Request handling
2022-07-24 14:55:36 +02:00
“terorero”
b20af097b7 Update new lines
Update new lines
2022-07-24 04:40:26 -04:00
jokob-sk
7057e05925 Trigger build 2022-07-24 18:35:17 +10:00
jokob-sk
927cf6581c Merge branch 'main' of https://github.com/jokob-sk/Pi.Alert 2022-07-24 18:32:06 +10:00
jokob-sk
3df87f6f36 Highlight still connected devices in green on teh timeline 2022-07-24 18:31:39 +10:00
jokob-sk
de44db56aa Merge pull request #41 from Final-Hawk/patch-2
Fix Pushsafer Support and Duplicate NTFY Messages
2022-07-24 17:55:45 +10:00
Joshua
4220169206 Fix Pushsafer Support and Duplicate NTFY Messages
Make pushsafer request use the existing requests module as the module it relied on is not installed. 

Remove the sending of duplicate NTFY Messages
2022-07-24 17:50:26 +10:00
jokob-sk
3e1f770226 Merge pull request #39 from Final-Hawk/patch-1
Update Header.php
2022-07-24 17:29:15 +10:00
Joshua
5d36c05278 Update Header.php
Timezone is now set at the start, so we do not need to set it again.
2022-07-24 17:00:10 +10:00
jokob-sk
2eb46dad90 Closer align the examples
Closer align the examples  with the content of the actual .env and docker-compose file
2022-07-24 12:26:34 +10:00
jokob-sk
73efe5ce2e Update README.md
Updated scan intervals
2022-07-24 12:12:44 +10:00
jokob-sk
975f86b678 Update docker.yml
point to the main docker image
2022-07-24 11:48:27 +10:00
jokob-sk
0d17b389e7 Bug fix #22 Backup DB needs ZIP 2022-07-24 11:40:29 +10:00
jokob-sk
1ef2f5c1be Removed Upgrade database button - upgrade is already handled automatically 2022-07-24 11:15:10 +10:00
jokob-sk
bac18c09bb Update README.md
The error message is self explanatory
2022-07-24 11:00:48 +10:00
jokob-sk
3770f20a5e Unifying teh default TIMEZONE in cron and pialert.conf as Europe/Berlin 2022-07-24 10:52:59 +10:00
jokob-sk
2a9d76bd9d Update pialert.conf 2022-07-24 10:22:08 +10:00
jokob-sk
9b4bdfa7a1 Merge branch 'leiweibau-merge-2022-07-24' into pr/37 2022-07-24 10:21:25 +10:00
leiweibau
332721639c Cleanup backups
Added the possibility to delete older backups on the maintenance page.
2022-07-23 23:15:26 +02:00
leiweibau
9cba70ce18 change comments 2022-07-23 22:21:23 +02:00
leiweibau
ebb82db529 Update pialert_latest.tar 2022-07-23 21:38:44 +02:00
leiweibau
ef8b3b966f Update README.md 2022-07-23 21:31:24 +02:00
leiweibau
ae89b33abf Update README.md 2022-07-23 21:26:52 +02:00
leiweibau
94851bc05d Update README.md 2022-07-23 21:23:56 +02:00
leiweibau
3f304a02ff partial merge https://github.com/leiweibau/Pi.Alert/pull/9
- merged timezone configuration with pialert.conf as the settings file
- merged NTFY support
- the variable REPORT_DASHBOARD_URL was merged (duplication in Pushsafer and NTFY)
- update README
2022-07-23 21:19:30 +02:00
leiweibau
6bfa7d5816 make password protection configurable 2022-07-23 19:58:55 +02:00
jokob-sk
8898f9477b added pushsafer config section - got ignored due to the .gitignore file 2022-07-24 00:30:31 +10:00
jokob-sk
bd95847ae2 Adding default log-in info 2022-07-24 00:20:47 +10:00
jokob-sk
353c82570b Merge branch 'leiweibau-merge2' into pr/35 2022-07-23 23:40:06 +10:00
leiweibau
25a4658a26 Add Darkmode to login page
- add fixes to dark-patch.css
- apple darkmode to login page
2022-07-23 13:38:56 +02:00
jokob-sk
6bdd2076a6 Merge branch 'pr/35' into leiweibau-merge2 2022-07-23 20:56:33 +10:00
leiweibau
6f734c789f Merge pull request #8 from terorero/main
Tunning spanish translation continues 100%.
2022-07-23 11:26:01 +02:00
leiweibau
ad3192c881 Merge branch 'main' into main 2022-07-23 11:25:08 +02:00
jokob-sk
2f85cf7c29 remove 30 min cron job and simplify dockerfile 2022-07-23 18:55:31 +10:00
jokob-sk
2e9f9f5b59 Add DB fix and renamed Activity chart to Device presence over time 2022-07-23 18:24:48 +10:00
jokob-sk
aca6363a74 update Readme 2022-07-23 17:00:05 +10:00
“terorero”
5082b8fdd2 Tunning scan text 2022-07-23 02:39:02 -04:00
jokob-sk
653ac34265 Delete pialert_latest.tar 2022-07-23 16:21:25 +10:00
jokob-sk
4e11415097 Merge pull request #32 from Final-Hawk/main
Final-hawk consolidation
2022-07-23 16:20:12 +10:00
jokob-sk
32b7feef24 Update docker.yml 2022-07-23 16:13:55 +10:00
TeroRERO
413bbc66e5 Update es_es.php 2022-07-23 02:01:56 -04:00
TeroRERO
1997742231 Spanish translation continues 100%.
Spanish translation continues 100%.
2022-07-23 01:53:30 -04:00
leiweibau
0b3ba21776 Translation work continued
- maintenance page (tab titel)
2022-07-22 23:35:45 +02:00
leiweibau
f372529cdb support for Gotify from https://github.com/Haecky/Pi.Alert-TLS.On-Off
merge Commit b5cd865a27

merge Commit 4e61e2ee45
2022-07-22 21:43:27 +02:00
leiweibau
fec58bf028 Basic Login
- Default password is "123456"
- there is a warning on the login page, when the default password is active
- to set ne new password, use the reset_password.sh in the config folder (./reset_password.sh newpassword)
- the password is stored as a sha256 hash
- the script creates a backup of the config file, just in case
2022-07-22 21:21:43 +02:00
leiweibau
b855fca9be improve pushsafer support
- merged commit 7beec7f584
- merged parts of commit 70b6ccc523
- add headline/titel in pushsafer notification
2022-07-21 22:31:46 +02:00
leiweibau
5d5c75dba7 improve pushsafer support
Thanks to Final-Hawk
70b6ccc523
2022-07-21 21:22:39 +02:00
Joshua
93a1cc671f Make timezone config in version.conf 2022-07-21 21:12:40 +10:00
Joshua
fea3d575b7 Update Dark Image 2022-07-21 18:26:52 +10:00
Joshua
3631c271a6 Change new config references 2022-07-21 18:10:27 +10:00
Joshua
b9b0698668 Change event report order 2022-07-21 17:38:00 +10:00
Joshua
7beec7f584 Improve design of html mail report 2022-07-21 17:35:34 +10:00
Joshua
a0b7aa2969 Compress layout to be more readable 2022-07-21 17:28:04 +10:00
Joshua
15846216bb Merge branch 'main' of https://github.com/leiweibau/Pi.Alert 2022-07-21 17:19:24 +10:00
Joshua
70b6ccc523 Improve txt report for ntfy, mainly for mobile 2022-07-21 17:00:46 +10:00
leiweibau
19da0da0a4 Update README.md
add spanish as a included language
2022-07-21 08:42:41 +02:00
Joshua
7e6c53f7b8 BETA - Table ascii for ntfy 2022-07-21 15:47:56 +10:00
leiweibau
e084b48959 Updating language file again
I noticed that there is an extension to the language files from another fork (https://github.com/jokob-sk/Pi.Alert). These have been added again. The language files are now compatible with each other again
2022-07-21 06:55:16 +02:00
leiweibau
6398df70d4 Updating language files
As part of a pull request (Spanish translation), the existing language files were updated.
2022-07-21 06:36:46 +02:00
leiweibau
66ed66308a Merge pull request #6 from terorero/main
Add inc to spanish translate maintenance.php and es_es.php
2022-07-21 06:20:32 +02:00
Joshua
6b4c0db79a Fix black text on box 2022-07-21 13:22:37 +10:00
Joshua
1065bcda00 add timezone to servertime 2022-07-21 13:12:39 +10:00
Joshua
0713c37a65 Try differnt mobile detect method 2022-07-21 11:57:02 +10:00
TeroRERO
1831c1c0db Add inc to spanish translate
Add inc to spanish translate
2022-07-20 21:46:59 -04:00
TeroRERO
73b12dd199 Add spanish translate 99.9%
Add spanish translate 99.9%
2022-07-20 21:45:49 -04:00
Joshua
f825d19eb4 mobile 2022-07-21 11:25:24 +10:00
Joshua
e7ad0680bb Mobile 2022-07-21 11:02:15 +10:00
Joshua
6a5b42949f roll back mobile view 2022-07-21 10:51:40 +10:00
Joshua
aeebbd08f2 Mobile Table view & Merge wording from leiweibau 2022-07-21 09:28:37 +10:00
leiweibau
1928d1b581 basic support for pushsafer.com
Currently, only a message with the link to the pi.alert page is sent. I am still struggling with the display of more detailed information.
2022-07-20 21:21:21 +02:00
leiweibau
338d163fd4 wording changed
idea from 9ca3ae0caa
2022-07-20 18:51:39 +02:00
Joshua
c0366fab96 add ntfy support 2022-07-20 18:31:03 +10:00
Joshua
bd12bd1809 add pip for requests 2022-07-20 18:24:37 +10:00
Joshua
9de339550b partial add https://github.com/leiweibau/Pi.Alert 2022-07-20 18:16:39 +10:00
leiweibau
00b9462708 Streamlining the design of the frontend
- Screenshots updated to show the design changes
- Merge parts of b69912fe31
- maintenance page redesigned
2022-07-19 20:32:25 +02:00
Joshua
9ca3ae0caa remove cycle from table 2022-07-19 19:11:42 +10:00
Joshua
4479d21b91 update table to include archived 2022-07-19 18:50:05 +10:00
Joshua
a69908a7c3 change wording on scancycle 2022-07-19 18:47:35 +10:00
Joshua
8f3e8aaa5d Merge branch 'main' of https://github.com/leiweibau/Pi.Alert 2022-07-19 18:45:09 +10:00
Joshua
6e05338fbb remove arpscan retries 2022-07-19 18:37:22 +10:00
leiweibau
65b788bc54 scanscript extension
scancycle is entered into the database after each scan.
2022-07-18 19:08:51 +02:00
leiweibau
35ac3a9b23 Database extension
- patch script extended
- a new table was added to the database
2022-07-18 18:55:47 +02:00
leiweibau
7131aa3a03 New index.php with Redirect
Thanks to jokob-sk

1aec3a84a0 (diff-e6b69b9a907090f40a5b1266aea0d5d68ee8432ff3c3e76c211dfbc0a02bc5f2)
2022-07-18 18:25:26 +02:00
jokob-sk
b69912fe31 Merge pull request #24 from Final-Hawk/main
History Graph Bug Fix and New Box Look
2022-07-17 20:08:34 +10:00
Joshua
51027f6b30 Update SQL statement to correct one 2022-07-17 19:16:33 +10:00
Joshua
43c4d153f4 Update dark-patch.css 2022-07-17 18:31:08 +10:00
Joshua
dac75f0126 Update dark-patch.css 2022-07-17 18:30:46 +10:00
Joshua
c3404e48f2 New look 2022-07-17 18:26:55 +10:00
Joshua
e7aa1cdb35 Update dark-patch.css 2022-07-17 15:50:20 +10:00
Joshua
24495bc675 Update dark-patch.css
Remove white borders around table on mobile. Fix border radius for the status boxs.
2022-07-17 15:48:37 +10:00
Joshua
b17fd3b7a9 Update pialert.py 2022-07-17 15:41:59 +10:00
jokob-sk
55fd4d6f76 redeploying dropped changes from en_us.php 2022-07-17 15:29:39 +10:00
jokob-sk
7aa25a7bb4 redeploying dropped changes from maintennace.php 2022-07-17 15:27:14 +10:00
jokob-sk
6a92261735 auto DBupgrade - got dropped previously from pialert.py 2022-07-17 15:23:29 +10:00
jokob-sk
9c0d543ccc Merge branch 'main' of https://github.com/jokob-sk/Pi.Alert 2022-07-17 15:00:15 +10:00
jokob-sk
567472a51b attribution for the DarkMode and 12H chart by @leiweibau 2022-07-17 15:00:05 +10:00
jokob-sk
cb942c800d Merge pull request #23 from Final-Hawk/patch-1
Update Dockerfile to include nmap
2022-07-17 14:55:38 +10:00
Joshua
bf1af936fb Update Dockerfile to include nmap
I have added nmap to the docker file because the nmap function in the UI requires it

Thanks for this great image!
2022-07-17 12:16:00 +10:00
jokob-sk
397a6eb573 add gitignore 2022-07-17 12:13:58 +10:00
jokob-sk
a34aeccb8c add DB2 2022-07-17 12:13:26 +10:00
jokob-sk
46eea7dec8 clean 2022-07-17 12:04:14 +10:00
leiweibau
1ee2a1bfd3 Update presence.php 2022-07-16 15:09:37 +02:00
leiweibau
01a267ff05 Completing the graph extension
Known issues:
- some small translations are not yet completed in gaph extension
- some small translations are not yet completed in entire frontend

Modification within the fork:
- enforce only one scancycle (crontab and frontend)
- if not already done, then sqlite3 must be installed
- DB must be patched via install/pialert_patch_DB.sh, otherwise the scan will run into an error
2022-07-16 15:07:18 +02:00
jokob-sk
7bae0f5042 fixes 2022-07-16 15:47:43 +10:00
jokob-sk
1d08a14647 Test merge 2022-07-16 14:11:54 +10:00
jokob-sk
d26caa5b3c Update README.md 2022-07-16 12:58:12 +10:00
jokob-sk
d14e32a882 added support for custom port, fixed the time zone issue caused by cron 2022-07-16 10:08:04 +10:00
leiweibau
a06e623e5e Update 2_3_device_presence.jpg 2022-07-16 00:56:55 +02:00
leiweibau
cacff26f3d Update 2_3_device_presence.jpg 2022-07-16 00:56:55 +02:00
leiweibau
7e5b95c503 Update screenshots 2022-07-16 00:56:34 +02:00
leiweibau
8395f411be Update screenshots 2022-07-16 00:56:34 +02:00
leiweibau
849f9b8e44 Update Graph
- Change graph
- Update screenshoots
2022-07-16 00:39:07 +02:00
leiweibau
c0779bb668 Update Graph
- Change graph
- Update screenshoots
2022-07-16 00:39:07 +02:00
jokob-sk
18727a0c9c Merge pull request #18 from jokob-sk/permission-mapping
Permission mapping
2022-07-15 13:25:23 +10:00
jokob.sk
3b35740b6d cleanup of Dockerfile, Readme 2022-07-15 13:03:04 +10:00
jokob.sk
4f0a9aff04 fixing permissions, simplyfying the start.sh script 2022-07-15 12:33:12 +10:00
leiweibau
a9edcd1a26 Update pialert_latest.tar 2022-07-14 18:47:16 +02:00
leiweibau
c057c3cf1b Update pialert_latest.tar 2022-07-14 18:47:16 +02:00
leiweibau
b3bfe79ec9 improve history graph
- JS optimized to avoid duplicate code
- Page redesigned with the help of the frameworks provides by AdminLTE
- Modification of the chart for a better presentation
- Headlines changed
2022-07-14 18:43:38 +02:00
leiweibau
2e970d0289 improve history graph
- JS optimized to avoid duplicate code
- Page redesigned with the help of the frameworks provides by AdminLTE
- Modification of the chart for a better presentation
- Headlines changed
2022-07-14 18:43:38 +02:00
leiweibau
d4b25ff89b Update 1_devices_dark.jpg 2022-07-13 21:05:10 +02:00
leiweibau
dee25ff2e9 Update 1_devices_dark.jpg 2022-07-13 21:05:10 +02:00
leiweibau
328b6a73c5 improve history graph 2022-07-13 20:29:03 +02:00
leiweibau
95cf2eff4a improve history graph 2022-07-13 20:29:03 +02:00
leiweibau
07c468f3ed Add history graph to Devices and presence (in development)
- A change in the database is necessary
- change scan-script (pialert.py) was changed to write more data into the database
- update Chart.js to 2.9.4
2022-07-12 23:52:58 +02:00
leiweibau
c12fccb2f7 Add history graph to Devices and presence (in development)
- A change in the database is necessary
- change scan-script (pialert.py) was changed to write more data into the database
- update Chart.js to 2.9.4
2022-07-12 23:52:58 +02:00
leiweibau
b5d6a4ff72 delete index.php
after the setup a symlink is used
2022-07-11 22:10:57 +02:00
leiweibau
49748aa564 delete index.php
after the setup a symlink is used
2022-07-11 22:10:57 +02:00
leiweibau
e366a294da Update manifest.json 2022-07-11 22:01:22 +02:00
leiweibau
f251e031d6 Update manifest.json 2022-07-11 22:01:22 +02:00
leiweibau
b2d2e3e9b6 Update AdminLTE
- from 2.4.5 to 2.4.18 (cannot detect any issues)
- set default scancycle for Apple Devices to 1
2022-07-11 21:34:04 +02:00
leiweibau
7ffc0892f7 Update AdminLTE
- from 2.4.5 to 2.4.18 (cannot detect any issues)
- set default scancycle for Apple Devices to 1
2022-07-11 21:34:04 +02:00
leiweibau
a5a060b7c0 Update pialert_latest.tar 2022-07-09 11:53:37 +02:00
leiweibau
ceda5da4c5 Update pialert_latest.tar 2022-07-09 11:53:37 +02:00
leiweibau
1047116ee3 Delete pialert_3.02_leiweibau.tar 2022-07-07 23:01:57 +02:00
leiweibau
408959ee00 Delete pialert_3.02_leiweibau.tar 2022-07-07 23:01:57 +02:00
leiweibau
c1f68ae297 Maintenance
The source of a used GIF added to README.
The source of the used Fonts added to README.
Another used tool was added to the "Powered by" section.
More translation work was done and the technique used to do the manual Nmap-scans was changed to include a loading animation.
A speedtest has been added to the detailed view of the "Internet" device. This is also located under the "Nmap" tab.
2022-07-07 22:48:48 +02:00
leiweibau
c8817c1e59 Maintenance
The source of a used GIF added to README.
The source of the used Fonts added to README.
Another used tool was added to the "Powered by" section.
More translation work was done and the technique used to do the manual Nmap-scans was changed to include a loading animation.
A speedtest has been added to the detailed view of the "Internet" device. This is also located under the "Nmap" tab.
2022-07-07 22:48:48 +02:00
leiweibau
ebdc6dd7ae Update maintenance.php 2022-07-05 21:31:36 +02:00
leiweibau
cb8e9e618d Update maintenance.php 2022-07-05 21:31:36 +02:00
leiweibau
67d7203082 Update 5_maintain.jpg 2022-07-05 21:22:24 +02:00
leiweibau
bb77d76df1 Update 5_maintain.jpg 2022-07-05 21:22:24 +02:00
leiweibau
e117b16f29 Add Multi-Language Support (almost finished)
approx. 90% are already translated. At the moment 2 languages are included. English and German. If you are interested, feel free to add more translations. See the maintenance.php for more information. The Frontend is almost done. Some translations in the notification system are still pending.

I am aware that the language files still have some optimization potential, but after 3 days of localization, I don't feel like doing that right now.
2022-07-05 21:16:10 +02:00
leiweibau
959af4027f Add Multi-Language Support (almost finished)
approx. 90% are already translated. At the moment 2 languages are included. English and German. If you are interested, feel free to add more translations. See the maintenance.php for more information. The Frontend is almost done. Some translations in the notification system are still pending.

I am aware that the language files still have some optimization potential, but after 3 days of localization, I don't feel like doing that right now.
2022-07-05 21:16:10 +02:00
leiweibau
d01e1a15db Add Multi-Language Support (in progress)
approx. 60-70% are already translated. At the moment 2 languages are included. English and German
2022-07-04 22:58:56 +02:00
leiweibau
1cbb5eb68a Add Multi-Language Support (in progress)
approx. 60-70% are already translated. At the moment 2 languages are included. English and German
2022-07-04 22:58:56 +02:00
leiweibau
3dff85c0e8 Update README.md 2022-06-29 22:24:13 +02:00
leiweibau
0c41896376 Update README.md 2022-06-29 22:24:13 +02:00
leiweibau
e0c941021d Update README.md 2022-06-29 22:14:34 +02:00
leiweibau
08b6773987 Update README.md 2022-06-29 22:14:34 +02:00
leiweibau
50a69a54f4 Update 2_5_device_nmap_ready.jpg 2022-06-29 22:06:24 +02:00
leiweibau
cd601e7106 Update 2_5_device_nmap_ready.jpg 2022-06-29 22:06:24 +02:00
leiweibau
901c601dce update readme 2022-06-29 22:01:48 +02:00
leiweibau
ede9552518 update readme 2022-06-29 22:01:48 +02:00
leiweibau
29226de8d2 manual nmap scan improvements
3 options to do a scan.
- fast (nmap -F)
- normal
- detailed (nmap -A)
2022-06-29 21:52:22 +02:00
leiweibau
22d909a378 manual nmap scan improvements
3 options to do a scan.
- fast (nmap -F)
- normal
- detailed (nmap -A)
2022-06-29 21:52:22 +02:00
leiweibau
0e82550588 manual nmap scan
a little less PHP/POST and a little more JS. the nmap scan now also works via the presence page
2022-06-28 23:04:14 +02:00
leiweibau
169d69251c manual nmap scan
a little less PHP/POST and a little more JS. the nmap scan now also works via the presence page
2022-06-28 23:04:14 +02:00
leiweibau
3bb3ab9bc0 Add a manual nmap scan
Because of my own network structure an automatic nmap scan is not useful. However, to be able to perform such a scan if necessary, I have added a tab with a manual nmap scan in the DeviceDetails.
2022-06-28 20:52:34 +02:00
leiweibau
334eea8592 Add a manual nmap scan
Because of my own network structure an automatic nmap scan is not useful. However, to be able to perform such a scan if necessary, I have added a tab with a manual nmap scan in the DeviceDetails.
2022-06-28 20:52:34 +02:00
leiweibau
67e4bc39c5 Fix typo in install-scripts 2022-06-26 18:45:16 +02:00
leiweibau
f5329ad495 Fix typo in install-scripts 2022-06-26 18:45:16 +02:00
leiweibau
046cde9ada Update .gitignore 2022-06-26 18:10:58 +02:00
leiweibau
320f175466 Update .gitignore 2022-06-26 18:10:58 +02:00
leiweibau
116a86327b Update create_tar.sh 2022-06-26 18:05:23 +02:00
leiweibau
0fa87b11e6 Update create_tar.sh 2022-06-26 18:05:23 +02:00
leiweibau
df11f271a3 Maintain 2022-06-26 17:55:08 +02:00
leiweibau
351c277c60 Maintain 2022-06-26 17:55:08 +02:00
leiweibau
c9078db9f5 Maintaining 2022-06-26 17:40:05 +02:00
leiweibau
eec3c46b74 Maintaining 2022-06-26 17:40:05 +02:00
leiweibau
f17edbda4e Edit Install Scripts
change the download to own repo
2022-06-26 17:11:55 +02:00
leiweibau
703ffd6717 Edit Install Scripts
change the download to own repo
2022-06-26 17:11:55 +02:00
jokob-sk
35f1155250 NOTREADY readme update & permission mapping 2022-06-26 13:59:50 +10:00
leiweibau
76ed2d8fd1 Maintaining
Changing the layout of maintenance page, fixing some bugs, add a function to disable the network scan (just for fun), update the readme
2022-06-24 22:46:16 +02:00
leiweibau
cbf55ca58b Maintaining
Changing the layout of maintenance page, fixing some bugs, add a function to disable the network scan (just for fun), update the readme
2022-06-24 22:46:16 +02:00
leiweibau
39afc075ca Update README.md 2022-06-23 18:56:13 +02:00
leiweibau
5ea6764f40 Update README.md 2022-06-23 18:56:13 +02:00
leiweibau
e7168ca832 Add maintenance features
Theme Selector, some bugfixing, update Readme
2022-06-23 18:47:23 +02:00
leiweibau
3c85f8b406 Add maintenance features
Theme Selector, some bugfixing, update Readme
2022-06-23 18:47:23 +02:00
leiweibau
86a78b7e3a Update README.md 2022-06-23 12:25:31 +02:00
leiweibau
9e745fdd2d Update README.md 2022-06-23 12:25:31 +02:00
leiweibau
d5e44ffb89 Change the way the darkmode is activated
The dark mode can now be activated or deactivated via the maintenance page with the help of a button.
2022-06-22 21:42:18 +02:00
leiweibau
50422cceb4 Change the way the darkmode is activated
The dark mode can now be activated or deactivated via the maintenance page with the help of a button.
2022-06-22 21:42:18 +02:00
leiweibau
cf92ee43f8 Add DB Restore to Maintenance
The function to restore a backup has been added. The "pending" backups are now deleted after the restore.
A backup is also created before a restore, but it is also deleted after the restore. When restoring, the existing database is overwritten by the backup.

CSS adjustments were made to eliminate errors in darkmode and lightmode.
2022-06-22 19:11:42 +02:00
leiweibau
9097421ad6 Add DB Restore to Maintenance
The function to restore a backup has been added. The "pending" backups are now deleted after the restore.
A backup is also created before a restore, but it is also deleted after the restore. When restoring, the existing database is overwritten by the backup.

CSS adjustments were made to eliminate errors in darkmode and lightmode.
2022-06-22 19:11:42 +02:00
leiweibau
288e61784e Update README.md 2022-06-22 13:45:27 +02:00
leiweibau
1dcdea964a Update README.md 2022-06-22 13:45:27 +02:00
leiweibau
2d1ccf0e19 Add DB Backup to Maintenance fix
relative paths
2022-06-22 09:14:42 +02:00
leiweibau
21e036dfae Add DB Backup to Maintenance fix
relative paths
2022-06-22 09:14:42 +02:00
leiweibau
4bf5dfb8b1 Merge branch 'main' of https://github.com/leiweibau/Pi.Alert 2022-06-22 08:58:59 +02:00
leiweibau
51f975ffe9 Merge branch 'main' of https://github.com/leiweibau/Pi.Alert 2022-06-22 08:58:59 +02:00
leiweibau
97cfb84bdc Add DB Backup to Maintenance
Added the possibility to perform a backup of the database. This creates a "pending" backup (a copy of the database) and from it an archive with the current date. The "pending" backup is overwritten with the next backup. The status information on the maintenance page has been supplemented accordingly.
2022-06-22 08:58:55 +02:00
leiweibau
bd4da40310 Add DB Backup to Maintenance
Added the possibility to perform a backup of the database. This creates a "pending" backup (a copy of the database) and from it an archive with the current date. The "pending" backup is overwritten with the next backup. The status information on the maintenance page has been supplemented accordingly.
2022-06-22 08:58:55 +02:00
jokob-sk
94a05d2c28 Merge pull request #13 from Macleykun/main
Futher optimizing Dockerfile
2022-06-22 09:27:33 +10:00
leiweibau
531c9ee420 Update maintenance.php 2022-06-21 23:13:43 +02:00
leiweibau
bdc95e78dd Update maintenance.php 2022-06-21 23:13:43 +02:00
leiweibau
f61664909f extend jokob-sk maintenance task DB
Add a table with some infos about active scans, DB size and last modification date.
2022-06-21 23:05:24 +02:00
leiweibau
fac3e72dd9 extend jokob-sk maintenance task DB
Add a table with some infos about active scans, DB size and last modification date.
2022-06-21 23:05:24 +02:00
leiweibau
d1a06ab709 Bugfixing Servertime
Bug in JS fixed
2022-06-20 21:37:35 +02:00
leiweibau
b282e8ce98 Bugfixing Servertime
Bug in JS fixed
2022-06-20 21:37:35 +02:00
leiweibau
ff86d51220 Display Servertime
Servertime to the right of the hostname
2022-06-20 21:25:36 +02:00
leiweibau
37d65916b9 Display Servertime
Servertime to the right of the hostname
2022-06-20 21:25:36 +02:00
Macley
1844d1f524 Added back expose and sed 2022-06-20 08:47:27 +02:00
Macleykun
8288336287 returned to right state for PR merge 2022-06-19 22:25:13 +02:00
Macleykun
e987f912f1 return and just leave it like so and look at this in a seperate pr 2022-06-19 21:55:39 +02:00
Macleykun
12cda7d93f fix () 2022-06-19 21:53:39 +02:00
Macleykun
8ffae9ac12 ??? 2022-06-19 21:50:58 +02:00
Macleykun
9b0fe9411e ... 2022-06-19 21:47:47 +02:00
Macleykun
33e5f888ea Will this run properly (tested in container and it worked) 2022-06-19 21:44:44 +02:00
Macleykun
f2ec507157 return to stable 2022-06-19 21:35:19 +02:00
Macleykun
a1bf353353 return to just the stable one 2022-06-19 21:35:13 +02:00
Macleykun
66466d60af apk add 2022-06-19 21:31:56 +02:00
Macleykun
e273df8bc3 right install 2022-06-19 21:30:57 +02:00
Macleykun
d91631a9dc new image ? 2022-06-19 21:28:33 +02:00
Macleykun
083862691c /var/log/syslog 2022-06-19 13:40:30 +02:00
Macleykun
2e31171fe5 test again? 2022-06-19 13:36:54 +02:00
Macleykun
702911eb66 /usr/sbin/lighttpd 2022-06-19 13:25:44 +02:00
Macleykun
b85b971e20 /usr/sbin/lighttpd 2022-06-19 13:25:41 +02:00
Macleykun
64276396ce try if doing it trough cmd would work 2022-06-19 13:17:54 +02:00
Macleykun
aa7755af5b a different way of running 2022-06-19 13:12:39 +02:00
Macleykun
5d5f7d3252 testing withoud the lighttpd 2022-06-19 13:03:45 +02:00
Macleykun
587c18c66a small fixed but now it's ready 2022-06-18 14:09:48 +02:00
Macleykun
ae24dd37b8 sigh 2022-06-18 14:04:42 +02:00
Macleykun
b74fb3f099 smol fix 2022-06-18 14:02:18 +02:00
Macleykun
b7fc9159ef Merge branch 'main' of https://github.com/Macleykun/Pi.Alert 2022-06-18 13:57:39 +02:00
Macleykun
70aeb00aaf make writeable and run (oof) 2022-06-18 13:57:37 +02:00
Macleykun
8b4fb167d7 add right permission eh 2022-06-18 13:53:41 +02:00
Macleykun
9fcefcffc2 asdf 2022-06-18 13:48:16 +02:00
Macleykun
3fca59850c now? 2022-06-18 13:34:55 +02:00
Macleykun
6313e0b064 volume? 2022-06-18 13:29:25 +02:00
Macleykun
dbd643f6ab aaaaaaaaaaaaaaa 2022-06-18 13:07:39 +02:00
Macleykun
aacbabb439 fix write again? 2022-06-18 13:00:19 +02:00
Macleykun
23134ae5fd ok no user then 2022-06-18 12:52:52 +02:00
Macleykun
1d60fb7de9 .... && again 2022-06-18 12:50:51 +02:00
Macleykun
07ba16593f again forgot the && 2022-06-18 12:49:33 +02:00
Macleykun
cf71698619 restore db to default 2022-06-18 10:00:56 +02:00
Macleykun
10ebdeef09 fixed no write on db folder 2022-06-18 09:59:58 +02:00
Macleykun
a7286d4ca4 properly set it all haha 2022-06-17 23:40:09 +02:00
Macleykun
350f296725 Merge branch 'main' of https://github.com/Macleykun/Pi.Alert 2022-06-17 23:32:31 +02:00
Macleykun
9ea986f0e6 tidy up and final test 2022-06-17 23:32:29 +02:00
Macleykun
d26ff3900c set own and mod by default right 2022-06-17 23:29:30 +02:00
Macleykun
e0a5e94f5c Make the DB work out of the box 2022-06-17 23:22:48 +02:00
Macleykun
ef0c06f485 revert back to old one... 2022-06-17 23:13:20 +02:00
Macleykun
da99fb7987 make it actually run? 2022-06-17 23:10:41 +02:00
Macleykun
07de6cd17a added lighttpd-enable-mod fastcgi-php to fix the permission 2022-06-17 23:06:27 +02:00
Macleykun
e0fe706032 Forgot added new line in first RUN 2022-06-17 22:59:17 +02:00
Macleykun
4e65bd946d optimize a little bit 2022-06-17 22:57:40 +02:00
jokob-sk
c055395157 Merge pull request #11 from Macleykun/main
Improvements Dockerfile
2022-06-17 10:55:41 +10:00
leiweibau
feb3eab3cd Suggestion for alternative Scan
On larger Network the default arp-scan is to slow
2022-06-13 19:11:43 +02:00
leiweibau
5c22432b85 Suggestion for alternative Scan
On larger Network the default arp-scan is to slow
2022-06-13 19:11:43 +02:00
Macleykun
3f2ad4c37a add todos 2022-06-12 16:08:52 +02:00
Macleykun
90167a73eb Finished up first parter 2022-06-12 16:06:59 +02:00
Macleykun
17f6203d99 This should work with exectuable 2022-06-12 16:04:21 +02:00
MacleyKun
0c3ceede24 make start.sh executable by default 2022-06-12 14:02:57 +00:00
Macleykun
d666255254 lovely stuff libwww-perl 2022-06-12 15:58:45 +02:00
Macleykun
3a79ff636b we missing perl? 2022-06-12 15:55:41 +02:00
Macleykun
cbf1281b25 maybe this works? 2022-06-12 15:52:47 +02:00
Macleykun
7e25878eeb probaly we missing ca-certifciates 2022-06-12 15:46:59 +02:00
Macleykun
5c2fd1f2b5 smol update 2022-06-12 15:44:17 +02:00
Macleykun
3d904cbd31 revert again clean a litle up 2022-06-12 15:43:16 +02:00
Macleykun
abb45289ee use workdir properly hopefully 2022-06-12 15:38:33 +02:00
Macleykun
3a39d9d6e2 Remove arg and start a little safer this time 2022-06-12 15:33:39 +02:00
Macleykun
5f5cc13d1a revert b/c 403 error 2022-06-12 15:32:26 +02:00
Macleykun
fb8102bd01 Remove confusing way of an dir arg while using a workdir 2022-06-12 15:12:57 +02:00
Macleykun
f3498ebbe1 remove cache aot 2022-06-12 15:02:55 +02:00
Macleykun
7fe4f52956 use apt-get for stable cli 2022-06-12 15:01:17 +02:00
Macleykun
0d1d5a6ad7 revert to working 2022-06-12 14:59:26 +02:00
Macleykun
2da132393f Make the installation of packages as adviced (and apt-get to have a stable interface) 2022-06-12 14:54:57 +02:00
Macleykun
8649805ab3 Made sure to make script already executable using git, no need to do it again in Dockerfile 2022-06-12 14:52:21 +02:00
Macleykun
7413bf57ab Also for the apt-get update fix unstable interface with apt 2022-06-12 14:50:08 +02:00
Macleykun
1107f0e9e2 Fix WARNING: apt does not have a stable CLI interface. Use with caution in scripts. 2022-06-12 14:48:17 +02:00
jokob-sk
1eb137e936 Fixed links to build stats & commented out removal of .git files 2022-06-12 13:38:01 +10:00
jokob-sk
75fb196660 Added Dockerfile 2022-06-12 13:24:43 +10:00
jokob-sk
b1293a4b49 Merge pull request #2 from iAmSaugata/main
Updating HTTP to HTTPS for Vendor Database
2022-06-07 04:11:18 +00:00
leiweibau
e1982b177e Maintaining CSS 2022-06-03 21:10:02 +02:00
leiweibau
ea758b4f5b Maintaining CSS 2022-06-03 21:10:02 +02:00
leiweibau
7dabd1d028 Update maintenance.php 2022-06-01 20:10:45 +02:00
leiweibau
2c9bc54010 Update maintenance.php 2022-06-01 20:10:45 +02:00
leiweibau
55fc68eb1b DB Maintenance
merge Fork from https://github.com/jokob-sk/Pi.Alert
2022-06-01 19:19:14 +02:00
leiweibau
b6f22b7736 DB Maintenance
merge Fork from https://github.com/jokob-sk/Pi.Alert
2022-06-01 19:19:14 +02:00
leiweibau
f8b2ddde8b Update README.md 2022-05-30 20:42:30 +02:00
leiweibau
64c6589448 Update README.md 2022-05-30 20:42:30 +02:00
leiweibau
abec656058 update README 2022-05-30 20:40:08 +02:00
leiweibau
7598b94ea7 update README 2022-05-30 20:40:08 +02:00
leiweibau
5987cae5b6 Update Readme with Image 2022-05-24 10:38:41 +02:00
leiweibau
9b85291a9d Update Readme with Image 2022-05-24 10:38:41 +02:00
leiweibau
d1445a7972 Update README.md 2022-05-24 10:30:06 +02:00
leiweibau
35959261af Update README.md 2022-05-24 10:30:06 +02:00
leiweibau
2eed390451 Edit Readme
Add a Link for Installation without webserver.
Change Links
2022-05-24 10:29:13 +02:00
leiweibau
40c08a09fd Edit Readme
Add a Link for Installation without webserver.
Change Links
2022-05-24 10:29:13 +02:00
leiweibau
08dc0c6c43 Bugfixing
Replace the Googlefonts with a local verion of SourceSans3 from "https://github.com/adobe-fonts/source-sans/releases".

Fixing the ThemeColor in the manifest.json file.
2022-05-23 21:34:14 +02:00
leiweibau
90bdb0dbf1 Bugfixing
Replace the Googlefonts with a local verion of SourceSans3 from "https://github.com/adobe-fonts/source-sans/releases".

Fixing the ThemeColor in the manifest.json file.
2022-05-23 21:34:14 +02:00
leiweibau
f9ddc875d5 Restore default Background when disabling Dark-Mode 2022-05-23 17:39:05 +02:00
leiweibau
02bae8a12d Restore default Background when disabling Dark-Mode 2022-05-23 17:39:05 +02:00
leiweibau
41f1de86b7 Remove hyphen from On-line and Off-line
JS Fix for "Online" and "Offline" on the Device-List and the Device-Details-Page
2022-05-23 17:13:47 +02:00
leiweibau
4b391dd642 Remove hyphen from On-line and Off-line
JS Fix for "Online" and "Offline" on the Device-List and the Device-Details-Page
2022-05-23 17:13:47 +02:00
leiweibau
1c4685fa8f The way of configuration was changed
to enable the Dark-Mode create a file named "darkmode" in the "front" directory
2022-05-23 16:14:22 +02:00
leiweibau
f28ca6726e The way of configuration was changed
to enable the Dark-Mode create a file named "darkmode" in the "front" directory
2022-05-23 16:14:22 +02:00
leiweibau
ce1e017d91 Restore Default Template
Because of Dark-Mode renderings on some Devices
2022-05-21 21:13:06 +02:00
leiweibau
06fafd1eea Restore Default Template
Because of Dark-Mode renderings on some Devices
2022-05-21 21:13:06 +02:00
leiweibau
569963f849 Dark Theme eMail Template 2022-05-20 20:34:55 +02:00
leiweibau
a175c97dcd Dark Theme eMail Template 2022-05-20 20:34:55 +02:00
leiweibau
17e7e5c890 Bugfixing the Darkmode
Fixing the hover-effect in the device list
2022-05-20 18:06:42 +02:00
leiweibau
ed5481f173 Bugfixing the Darkmode
Fixing the hover-effect in the device list
2022-05-20 18:06:42 +02:00
leiweibau
ff1fc44b1a Merge pull request #3 from leiweibau/darkmode
Comment Source
2022-05-20 15:51:41 +02:00
leiweibau
c6ffe7411b Merge pull request #3 from leiweibau/darkmode
Comment Source
2022-05-20 15:51:41 +02:00
leiweibau
d7939c72c6 Comment Source 2022-05-20 15:21:12 +02:00
leiweibau
6546b983c4 Comment Source 2022-05-20 15:21:12 +02:00
leiweibau
a7bd6daf25 darkmode 2022-05-20 15:06:09 +02:00
leiweibau
07dfea17e6 darkmode 2022-05-20 15:06:09 +02:00
leiweibau
2213cd9241 Merge pull request #2 from leiweibau/scanmethod
edit Scan Method
2022-05-20 14:58:14 +02:00
leiweibau
e146595a1a Merge pull request #2 from leiweibau/scanmethod
edit Scan Method
2022-05-20 14:58:14 +02:00
leiweibau
7dd7279097 edit Scan Method
increase the bandwidth and set retry
2022-05-20 14:55:46 +02:00
leiweibau
6ee53e8d6d edit Scan Method
increase the bandwidth and set retry
2022-05-20 14:55:46 +02:00
leiweibau
c81ea2ed50 Merge pull request #1 from leiweibau/leiweibau-patch-vendordata
Update the URLs for the Vendor Data
2022-05-20 13:47:07 +02:00
leiweibau
6f1fc641e4 Merge pull request #1 from leiweibau/leiweibau-patch-vendordata
Update the URLs for the Vendor Data
2022-05-20 13:47:07 +02:00
leiweibau
c9210003c9 Update the URLs for the Vendor Data
http to https
2022-05-20 13:42:26 +02:00
leiweibau
2e2976bd78 Update the URLs for the Vendor Data
http to https
2022-05-20 13:42:26 +02:00
Saugata Datta
fc0dfc83be Updating HTTP to HTTPS for Vendor Database
Updating HTTP to HTTPS for Vendor Database
2022-05-16 20:58:52 +05:30
jokob-sk
ccf703e4bc Fixing reporting on disabled MAC addresses 2022-02-18 00:26:00 +00:00
jokob-sk
bbe3a3bb15 delete events option 2022-01-15 13:21:53 +11:00
jokob-sk
6377424320 delete unknown devices option 2022-01-15 12:33:13 +11:00
jokob-sk
8c787292a6 Update README.md 2022-01-14 16:47:36 +11:00
jokob-sk
770a99c4a2 maintenance task DB 2022-01-14 16:34:57 +11:00
jokob-sk
903478524c maintenance task DB 2022-01-14 16:31:58 +11:00
jokob-sk
b008017174 maintenance task DB 2022-01-14 16:17:13 +11:00
jokob-sk
3c03bf92c4 maintenance task DB 2022-01-14 15:20:07 +11:00
jokob-sk
e1c410be21 maintenance task DB 2022-01-14 14:55:14 +11:00
jokob-sk
0120d3f226 maintenance task DB 2022-01-14 14:48:42 +11:00
jokob-sk
25dae82cba maintenance tasks 2022-01-14 14:24:43 +11:00
jokob-sk
496e8ad2b7 maintenance task 2022-01-14 14:11:08 +11:00
jokob-sk
2488151757 added maintenance 2022-01-14 13:33:41 +11:00
Antonios Atlasis
2418e6ae64 Update README.md 2021-12-11 11:22:40 +01:00
Antonios Atlasis
168a14d2b5 Python3 version of Pholus
pholus3.py is the Python3 version of Pholus
2021-12-11 11:16:03 +01:00
pucherot
9232f31778 Pi.Alert v3.02
#114 - Fixed: UNIQUE constraint failed with Local MAC
2021-04-24 11:48:11 +02:00
pucherot
c08226e1d3 Pi.Alert v3.02
#114 - Fixed: UNIQUE constraint failed with Local MAC
2021-04-24 11:48:11 +02:00
pucherot
9c324b1817 Installation Script 2021-04-23 22:05:47 +02:00
pucherot
36880dadf0 Installation Script 2021-04-23 22:05:47 +02:00
pucherot
25b5db0e23 Update pialert_install.sh 2021-04-23 19:35:51 +02:00
pucherot
9415d2e8d3 Update pialert_install.sh 2021-04-23 19:35:51 +02:00
pucherot
2af9d1dd38 Pi.Alert 3.01
#106
2021-04-23 13:54:25 +02:00
pucherot
5033ca0373 Pi.Alert 3.01
#106
2021-04-23 13:54:25 +02:00
pucherot
040216ce3c Pi.Alert 3.01 2021-04-22 23:10:49 +02:00
pucherot
5a67648b7d Pi.Alert 3.01 2021-04-22 23:10:49 +02:00
pucherot
99c29fe86b Pi.Alert 3.01 2021-04-22 23:03:59 +02:00
pucherot
77b4858d5f Pi.Alert 3.01 2021-04-22 23:03:59 +02:00
pucherot
27afadfcdc Pi.Alert 3.01
#106
2021-04-22 22:12:38 +02:00
pucherot
59596a22e5 Pi.Alert 3.01
#106
2021-04-22 22:12:38 +02:00
pucherot
4342f0f212 Pi.Alert 3.01
#106
2021-04-22 22:03:48 +02:00
pucherot
94d205bd59 Pi.Alert 3.01
#106
2021-04-22 22:03:48 +02:00
pucherot
405331d177 Pi.Alert 3.00 2021-04-22 19:55:00 +02:00
pucherot
4015305bd7 Pi.Alert 3.00 2021-04-22 19:55:00 +02:00
pucherot
ffe2851e4f Pi.Alert 3.00 2021-04-22 08:53:43 +02:00
pucherot
bcd2fc8e91 Pi.Alert 3.00 2021-04-22 08:53:43 +02:00
pucherot
6ade5a4f63 Pi.Alert 3.00 2021-04-21 22:49:52 +02:00
pucherot
718722c76f Pi.Alert 3.00 2021-04-21 22:49:52 +02:00
pucherot
e39845afc0 Pi.Alert 3.00 2021-04-21 22:36:41 +02:00
pucherot
0896465891 Pi.Alert 3.00 2021-04-21 22:36:41 +02:00
pucherot
ffa1059b26 tar 3.0 2021-04-21 22:29:53 +02:00
pucherot
be85f01756 tar 3.0 2021-04-21 22:29:53 +02:00
pucherot
53eafb8c7b Update pialert_update.sh 2021-04-21 21:44:45 +02:00
pucherot
247d82184a Update pialert_update.sh 2021-04-21 21:44:45 +02:00
pucherot
63b5346308 Pi.Alert 3.0 2021-04-21 21:37:34 +02:00
pucherot
7a41ab25e4 Pi.Alert 3.0 2021-04-21 21:37:34 +02:00
pucherot
9b87b4dfe4 DeviceDetails update 2021-04-21 20:46:16 +02:00
pucherot
6e1160968d DeviceDetails update 2021-04-21 20:46:16 +02:00
pucherot
5e250c3950 Update VERSIONS_HISTORY.md 2021-04-21 20:36:44 +02:00
pucherot
0283b88023 Update VERSIONS_HISTORY.md 2021-04-21 20:36:44 +02:00
pucherot
ee8979aa09 Update VERSIONS_HISTORY.md 2021-04-21 20:31:47 +02:00
pucherot
78286f22a9 Update VERSIONS_HISTORY.md 2021-04-21 20:31:47 +02:00
pucherot
9dc9cd3f2b Update VERSIONS_HISTORY.md 2021-04-21 20:29:30 +02:00
pucherot
3fbd2abb37 Update VERSIONS_HISTORY.md 2021-04-21 20:29:30 +02:00
pucherot
2f2063c515 Update VERSIONS_HISTORY.md 2021-04-21 19:56:35 +02:00
pucherot
cd1a67d1ee Update VERSIONS_HISTORY.md 2021-04-21 19:56:35 +02:00
pucherot
2568703376 tar Pi.Alert 3.0 2021-04-21 19:29:49 +02:00
pucherot
1fbe93d686 tar Pi.Alert 3.0 2021-04-21 19:29:49 +02:00
pucherot
4072bbf406 Pi.Alert 3.00 2021-04-21 19:23:35 +02:00
pucherot
e7831f82a7 Pi.Alert 3.00 2021-04-21 19:23:35 +02:00
pucherot
10757f0717 Update RAMDOM_MAC.md 2021-04-17 15:23:20 +02:00
pucherot
e1619b66c0 Update RAMDOM_MAC.md 2021-04-17 15:23:20 +02:00
pucherot
b77f727ed5 Update pialert_install.sh 2021-04-11 20:54:21 +02:00
pucherot
6eb35caea8 Update pialert_install.sh 2021-04-11 20:54:21 +02:00
pucherot
fa21d28c90 Update README.md 2021-04-11 15:50:57 +02:00
pucherot
e6fb1ca2b2 Update README.md 2021-04-11 15:50:57 +02:00
pucherot
7cc9abf477 Update README.md 2021-04-11 15:50:05 +02:00
pucherot
a1452eff65 Update README.md 2021-04-11 15:50:05 +02:00
pucherot
62f76f8bae Update README.md 2021-04-11 15:49:17 +02:00
pucherot
9a6f33ffc2 Update README.md 2021-04-11 15:49:17 +02:00
pucherot
e4a1fe741b Update INSTALL.md 2021-04-11 15:47:45 +02:00
pucherot
77bcdd92c7 Update INSTALL.md 2021-04-11 15:47:45 +02:00
pucherot
0394461e2e Update UNINSTALL.md 2021-04-11 15:42:09 +02:00
pucherot
37b4f2d864 Update UNINSTALL.md 2021-04-11 15:42:09 +02:00
pucherot
b72405806e Create UNINSTALL.md 2021-04-11 14:49:00 +02:00
pucherot
a880c3dbe7 Create UNINSTALL.md 2021-04-11 14:49:00 +02:00
pucherot
044949dc88 Update pialert_uninstall.sh 2021-04-11 12:30:27 +02:00
pucherot
d71d538de8 Update pialert_uninstall.sh 2021-04-11 12:30:27 +02:00
pucherot
14665230ff Update pialert_uninstall.sh 2021-04-11 12:16:30 +02:00
pucherot
02c625ba0d Update pialert_uninstall.sh 2021-04-11 12:16:30 +02:00
pucherot
0fb4150c96 Update pialert_uninstall.sh 2021-04-11 11:52:21 +02:00
pucherot
bdbe49efaf Update pialert_uninstall.sh 2021-04-11 11:52:21 +02:00
pucherot
018c43cdc4 Update pialert_uninstall.sh 2021-04-11 11:47:39 +02:00
pucherot
8b94a98466 Update pialert_uninstall.sh 2021-04-11 11:47:39 +02:00
pucherot
3b34a42f10 Update pialert_uninstall.sh 2021-04-11 11:43:01 +02:00
pucherot
bdbd536cdd Update pialert_uninstall.sh 2021-04-11 11:43:01 +02:00
pucherot
faf12f4d18 Update pialert_uninstall.sh 2021-04-11 11:32:42 +02:00
pucherot
074c102ffe Update pialert_uninstall.sh 2021-04-11 11:32:42 +02:00
pucherot
85e07c639d Uninstall script 2021-04-11 11:22:14 +02:00
pucherot
4d342548fa Uninstall script 2021-04-11 11:22:14 +02:00
pucherot
097e5e738e Update pialert_install.sh 2021-02-08 11:37:28 +01:00
pucherot
ca5594a985 Update pialert_install.sh 2021-02-08 11:37:28 +01:00
pucherot
af93a12b8f tar update 2021-02-02 10:30:37 +01:00
pucherot
6ba66543ff tar update 2021-02-02 10:30:37 +01:00
pucherot
228078c07b Update pialert_update.sh 2021-02-02 10:14:38 +01:00
pucherot
21a369dd58 Update pialert_update.sh 2021-02-02 10:14:38 +01:00
pucherot
f8014f1bf4 Update pialert_update.sh 2021-02-02 10:08:59 +01:00
pucherot
176f0d94cb Update pialert_update.sh 2021-02-02 10:08:59 +01:00
pucherot
b6abdcb357 tar update 2021-02-02 09:57:36 +01:00
pucherot
47f231a763 tar update 2021-02-02 09:57:36 +01:00
pucherot
8d1696bc19 Update pialert_install.sh 2021-02-02 07:40:55 +01:00
pucherot
6f19b984d0 Update pialert_install.sh 2021-02-02 07:40:55 +01:00
pucherot
88f656ade5 tar update 2021-02-01 22:52:55 +01:00
pucherot
abe12a318a tar update 2021-02-01 22:52:55 +01:00
pucherot
a23b619951 Update deviceDetails.php 2021-02-01 22:46:37 +01:00
pucherot
9ce840347a Update deviceDetails.php 2021-02-01 22:46:37 +01:00
pucherot
471b63dd83 Update pialert_update.sh 2021-02-01 22:35:49 +01:00
pucherot
f50f0b582a Update pialert_update.sh 2021-02-01 22:35:49 +01:00
pucherot
1e8cf244be Update pialert_update.sh 2021-02-01 22:28:27 +01:00
pucherot
f428d8bf35 Update pialert_update.sh 2021-02-01 22:28:27 +01:00
pucherot
6ad34c0ace Update pialert_update.sh 2021-02-01 22:24:32 +01:00
pucherot
7b86984312 Update pialert_update.sh 2021-02-01 22:24:32 +01:00
pucherot
62b1c314d6 Update pialert_update.sh 2021-02-01 22:15:14 +01:00
pucherot
7041098e9f Update pialert_update.sh 2021-02-01 22:15:14 +01:00
pucherot
0e5c2af981 v2.70 2021-02-01 21:30:51 +01:00
pucherot
d5a236f793 v2.70 2021-02-01 21:30:51 +01:00
pucherot
2955ac6535 Headers 2021-02-01 09:26:32 +01:00
pucherot
da454c0762 Headers 2021-02-01 09:26:32 +01:00
pucherot
e694ed0a43 get Local IP 2021-01-28 13:59:34 +01:00
pucherot
0e36246192 get Local IP 2021-01-28 13:59:34 +01:00
pucherot
933ca8d0d8 Update pialert_install.sh 2021-01-28 13:53:03 +01:00
pucherot
426355de20 Update pialert_install.sh 2021-01-28 13:53:03 +01:00
pucherot
a86d5a6a69 tar update 2021-01-28 11:38:10 +01:00
pucherot
0f42bbb062 tar update 2021-01-28 11:38:10 +01:00
pucherot
0d5e665c3a Update pialert_install.sh 2021-01-28 11:23:54 +01:00
pucherot
81aae5b7cf Update pialert_install.sh 2021-01-28 11:23:54 +01:00
pucherot
4ec1599b0e tar update 2021-01-27 17:59:51 +01:00
pucherot
d6d02b268e tar update 2021-01-27 17:59:51 +01:00
pucherot
31ab202744 Update pialert_update.sh 2021-01-27 17:09:25 +01:00
pucherot
3cc7123a9a Update pialert_update.sh 2021-01-27 17:09:25 +01:00
pucherot
42de9abfe3 tar update 2021-01-27 17:03:37 +01:00
pucherot
c6465b2a94 tar update 2021-01-27 17:03:37 +01:00
pucherot
462c6613fc Update pialert_update.sh
bugfix #55
2021-01-27 17:02:07 +01:00
pucherot
f05307da73 Update pialert_update.sh
bugfix #55
2021-01-27 17:02:07 +01:00
pucherot
119d648a93 tar update 2021-01-27 16:56:15 +01:00
pucherot
b2c14544ab tar update 2021-01-27 16:56:15 +01:00
pucherot
8eb09bd556 Update INSTALL.md 2021-01-27 13:41:39 +01:00
pucherot
bbae163a6e Update INSTALL.md 2021-01-27 13:41:39 +01:00
pucherot
2bd61aface Update INSTALL.md 2021-01-27 11:35:25 +01:00
pucherot
124c22a5ee Update INSTALL.md 2021-01-27 11:35:25 +01:00
pucherot
cf0df99bf1 Update process doc 2021-01-27 11:31:12 +01:00
pucherot
f5dc247fb3 Update process doc 2021-01-27 11:31:12 +01:00
pucherot
534b98feaa Create pialert_update.sh 2021-01-27 11:21:15 +01:00
pucherot
c4e7811307 Create pialert_update.sh 2021-01-27 11:21:15 +01:00
pucherot
b5b51d428f Update pialert_install.sh 2021-01-26 17:25:36 +01:00
pucherot
900cfac1aa Update pialert_install.sh 2021-01-26 17:25:36 +01:00
pucherot
a4eb028801 Update pialert_install.sh 2021-01-26 16:16:02 +01:00
pucherot
82b720b44e Update pialert_install.sh 2021-01-26 16:16:02 +01:00
pucherot
42b6e99ada Update pialert_install.sh 2021-01-26 15:09:52 +01:00
pucherot
3320d5e10c Update pialert_install.sh 2021-01-26 15:09:52 +01:00
pucherot
4495d3f56c Update pialert_install.sh 2021-01-26 14:59:56 +01:00
pucherot
66ddfd7a9a Update pialert_install.sh 2021-01-26 14:59:56 +01:00
pucherot
6963e98c28 Update pialert_install.sh 2021-01-26 14:54:03 +01:00
pucherot
d345fbd4b2 Update pialert_install.sh 2021-01-26 14:54:03 +01:00
pucherot
56c97bc7af Update INSTALL.md 2021-01-26 10:13:41 +01:00
pucherot
a125547110 Update INSTALL.md 2021-01-26 10:13:41 +01:00
pucherot
c053aa2d01 Update pialert_install.sh 2021-01-26 10:10:12 +01:00
pucherot
470ecffbaa Update pialert_install.sh 2021-01-26 10:10:12 +01:00
pucherot
b973d13c83 Tar update 2021-01-25 22:57:28 +01:00
pucherot
470e9264e2 Tar update 2021-01-25 22:57:28 +01:00
pucherot
ae28886b2f Tar v2.61 2021-01-25 22:45:29 +01:00
pucherot
4ff387cc28 Tar v2.61 2021-01-25 22:45:29 +01:00
pucherot
ed0102b212 Update INSTALL.md 2021-01-25 22:38:52 +01:00
pucherot
19263c985b Update INSTALL.md 2021-01-25 22:38:52 +01:00
pucherot
dff7171d3c Update README.md 2021-01-25 22:36:56 +01:00
pucherot
4a6b99b15d Update README.md 2021-01-25 22:36:56 +01:00
pucherot
4dd75fbd47 v2.61
Installation script
#46 - Changed My IP query hosts
2021-01-25 22:27:54 +01:00
pucherot
07eef3d26c v2.61
Installation script
#46 - Changed My IP query hosts
2021-01-25 22:27:54 +01:00
pucherot
7583ad802b tar 2021-01-19 23:40:06 +01:00
pucherot
35fb76d13f tar 2021-01-19 23:40:06 +01:00
pucherot
3584d8a445 Update INSTALL.md 2021-01-19 23:28:36 +01:00
pucherot
69e4ba1f95 Update README.md 2021-01-19 23:17:20 +01:00
pucherot
32428557b3 Update VERSIONS_HISTORY.md 2021-01-19 23:16:18 +01:00
pucherot
a850eb4269 v2.60 - Improved installation process 2021-01-19 23:11:01 +01:00
pucherot
9eee7f156e Doc 2021-01-18 22:42:27 +01:00
pucherot
9aa05e1cc1 Update INSTALL.md 2021-01-18 22:23:10 +01:00
pucherot
d92e8442ab tar 2021-01-18 22:18:53 +01:00
pucherot
66f3a2218c Merge branch 'main' of https://github.com/pucherot/Pi.Alert into main 2021-01-18 22:14:39 +01:00
pucherot
2c9269391b Update INSTALL.md 2021-01-18 22:12:40 +01:00
pucherot
9671e29a72 index.html 2021-01-18 22:08:46 +01:00
pucherot
80c5737ffd Separate install & tar folders 2021-01-18 21:38:18 +01:00
pucherot
40a61167e0 separate tar and install folders 2021-01-18 19:41:02 +01:00
pucherot
2c71d36662 Update INSTALL.md 2021-01-18 16:44:12 +01:00
pucherot
fd8ad05ca4 Update INSTALL.md 2021-01-18 16:36:37 +01:00
pucherot
adcbb6c482 Update INSTALL.md 2021-01-18 16:11:28 +01:00
pucherot
7b9c4b35a6 Update INSTALL.md 2021-01-18 16:09:34 +01:00
pucherot
2049c2bebc Update INSTALL.md 2021-01-18 15:52:57 +01:00
pucherot
7583174edd Update INSTALL.md 2021-01-18 15:43:03 +01:00
pucherot
f82a629877 Update INSTALL.md 2021-01-18 12:54:07 +01:00
pucherot
760354188b Code headers 2021-01-16 08:36:41 +01:00
pucherot
53dca9e338 Code headers 2021-01-16 08:32:39 +01:00
pucherot
5c71a4f82f Update RAMDOM_MAC.md 2021-01-15 14:32:55 +01:00
pucherot
f8998aaed7 Doc 2021-01-15 14:00:35 +01:00
pucherot
f6a07f4c40 Update README.md 2021-01-15 13:19:54 +01:00
pucherot
9df2258a70 Update RAMDOM_MAC.md 2021-01-15 12:56:25 +01:00
pucherot
bf2b022ec7 Update INSTALL.md 2021-01-15 12:56:07 +01:00
pucherot
c3f1050dce Update DEVICE_MANAGEMENT.md 2021-01-15 12:55:36 +01:00
pucherot
50631ee265 Update README.md 2021-01-15 12:54:19 +01:00
pucherot
2c43032810 License 2021-01-15 12:44:37 +01:00
pucherot
f9b1ea70de v2.56
BUGFIX #23
2021-01-15 09:12:52 +01:00
pucherot
12897231a5 Merge branch 'main' of https://github.com/pucherot/Pi.Alert into main 2021-01-14 22:35:13 +01:00
pucherot
256b7517ed Update front to use .conf 2021-01-14 22:33:34 +01:00
pucherot
b961a8555b Update front to use .conf 2021-01-14 22:30:07 +01:00
pucherot
f695857d48 Update INSTALL.md 2021-01-14 22:11:10 +01:00
pucherot
8f07acb60a Update INSTALL.md 2021-01-14 13:25:24 +01:00
pucherot
121a378259 v2.55 2021-01-14 12:45:11 +01:00
pucherot
2cd0e7a796 v2.54 2021-01-13 12:38:51 +01:00
pucherot
3474c48c47 Bugfix #6 v2.54 2021-01-13 12:18:13 +01:00
pucherot
5b69879c20 Update pialert.py 2021-01-13 08:30:06 +01:00
pucherot
a6195462f2 Merge pull request #9 from nebbywan/main
Add Python3 support at line 31 and fix case mismatch
2021-01-12 21:17:09 +01:00
Zach McDonough
cd165a37d6 Update pialert.py
Add support for Python3 @ line 31
Fix case mismatch @ line 1216
2021-01-12 09:26:46 -08:00
pucherot
06770c756a Update INSTALL.md 2021-01-12 17:12:36 +01:00
pucherot
8e7788f06c Merge pull request #7 from derekpurdy/patch-1
Update INSTALL.md
2021-01-12 17:10:52 +01:00
Derek Purdy
f05eb3c7e2 Update INSTALL.md 2021-01-12 10:53:49 -05:00
pucherot
47d5e09e2f Tar 2021-01-11 18:17:40 +01:00
pucherot
6dcc5c813c Update INSTALL.md 2021-01-11 17:17:44 +01:00
pucherot
779df186e0 Update INSTALL.md 2021-01-11 17:09:43 +01:00
pucherot
f112a83588 v2.52
Fix bug #2
2021-01-11 15:55:43 +01:00
pucherot
e94f8f8965 v2.51
Fix Bug #1
2021-01-11 14:16:22 +01:00
pucherot
5711d11c4b tar update 2021-01-10 10:54:20 +01:00
pucherot
98fa05dd4f Doc update 2021-01-10 10:46:49 +01:00
pucherot
11e64ec3cc Docs update 2021-01-10 10:41:21 +01:00
pucherot
a946cdfb45 Update RAMDOM_MAC.md 2021-01-10 10:21:14 +01:00
pucherot
f0135edcd3 Create RAMDOM_MAC.md 2021-01-10 10:20:48 +01:00
pucherot
900e5eda01 Add files via upload 2021-01-10 10:18:50 +01:00
pucherot
f02e489c8e tar 2021-01-09 22:10:37 +01:00
pucherot
204c87b7cf Update README.md 2021-01-09 21:24:47 +01:00
pucherot
ce4395b8e6 Update README.md 2021-01-09 21:20:54 +01:00
pucherot
ec10c9f962 Doc 2021-01-09 21:08:05 +01:00
pucherot
709a591d26 tar 2021-01-09 20:44:00 +01:00
pucherot
58f9ca8516 Tar 2021-01-09 20:41:56 +01:00
pucherot
f283468add Tar 2021-01-09 20:26:19 +01:00
pucherot
2b1b46914e Update README.md 2021-01-09 15:41:38 +01:00
pucherot
2fd1e6f406 Update README.md 2021-01-09 15:04:15 +01:00
pucherot
3cc1286953 Update README.md 2021-01-09 14:20:30 +01:00
pucherot
7621e58d88 Update README.md 2021-01-09 14:20:02 +01:00
pucherot
4baed861eb Update README.md 2021-01-09 14:19:33 +01:00
pucherot
0a3a067b12 pialert.tar update 2021-01-09 14:05:51 +01:00
pucherot
2af9d020c0 Update INSTALL.md 2021-01-09 10:57:56 +01:00
pucherot
3a60239815 tar updated 2021-01-09 10:45:20 +01:00
pucherot
571cb503ef CR/LF 2021-01-09 03:33:17 +01:00
pucherot
f2f53cb1ef Install 2021-01-09 03:22:11 +01:00
pucherot
aa815390e2 Create pialert.cron 2021-01-09 03:09:23 +01:00
pucherot
aceb75e0c6 Update pialert.py 2021-01-09 03:06:03 +01:00
pucherot
7b7b989c1b Update README.md 2021-01-09 03:00:44 +01:00
pucherot
8aea8ea50e Update INSTALL.md 2021-01-09 02:58:13 +01:00
pucherot
a3417b7410 Update INSTALL.md 2021-01-09 02:57:25 +01:00
pucherot
66de656c5c Update INSTALL.md 2021-01-09 02:56:41 +01:00
pucherot
9b8d1dbf30 Update INSTALL.md 2021-01-09 02:55:52 +01:00
pucherot
dab379e16e Update INSTALL.md 2021-01-09 02:45:20 +01:00
pucherot
aad5196cac Merge branch 'main' of https://github.com/pucherot/Pi.Alert into main 2021-01-09 02:34:42 +01:00
pucherot
a002c152e8 Create INSTALL.md 2021-01-09 02:31:41 +01:00
pucherot
96a582a590 Update pialert.conf 2021-01-09 02:14:28 +01:00
pucherot
29b28c2a09 Install 2.50 2021-01-08 18:27:45 +01:00
pucherot
1b8f2ce23c Install 2.50 2021-01-08 18:16:25 +01:00
pucherot
6100a734cc Install 2.50 2021-01-08 15:42:10 +01:00
pucherot
008fbf861a Update README.md 2021-01-08 09:26:07 +01:00
pucherot
596783bab4 Report Samples 2021-01-08 09:23:31 +01:00
pucherot
66125c27cb Delete 4_report.jpg 2021-01-08 09:23:06 +01:00
pucherot
44abde194b Report Samples 2021-01-08 09:22:43 +01:00
pucherot
c71c9536fe Delete report_sample.html 2021-01-08 09:22:19 +01:00
pucherot
11f6ae0310 Update README.md 2021-01-08 09:13:20 +01:00
pucherot
10b5a9ec29 Doc 2021-01-08 09:03:59 +01:00
pucherot
9c77ecf886 Doc 2021-01-08 09:03:07 +01:00
pucherot
7071b68c79 Update README.md 2021-01-07 10:38:53 +01:00
pucherot
73cb5c9bb7 Update README.md 2021-01-07 10:34:12 +01:00
pucherot
4c9344e402 Update README.md 2021-01-07 10:31:07 +01:00
pucherot
033553a2a8 Doc 2021-01-07 08:12:01 +01:00
pucherot
bd8250f100 Update README.md 2021-01-07 08:09:16 +01:00
pucherot
76d466b89f Doc 2021-01-07 08:04:13 +01:00
pucherot
0979110095 Doc 2021-01-07 07:56:12 +01:00
pucherot
591776ab6c Doc 2021-01-07 07:52:40 +01:00
pucherot
b18ddf18ac Update README.md 2021-01-07 07:51:58 +01:00
pucherot
6cad48361b Images 2021-01-06 22:34:19 +01:00
pucherot
baa59820f1 Images 2021-01-06 22:30:52 +01:00
pucherot
c03207f3eb Images 2021-01-06 22:22:09 +01:00
pucherot
e039531ddd Images 2021-01-06 21:40:25 +01:00
pucherot
e94a19a522 Update README.md 2021-01-06 00:31:08 +01:00
pucherot
1aedc4e035 Doc 2021-01-05 21:50:37 +01:00
pucherot
6fa6ac2899 Update README.md 2021-01-05 18:52:58 +01:00
pucherot
6dee37ee72 Doc 2021-01-05 18:12:07 +01:00
pucherot
64a958a799 Update Doc 2021-01-05 17:58:37 +01:00
pucherot
d36abd2c8e Doc update 2021-01-05 17:42:34 +01:00
pucherot
b1dfc8a7ea CR/LF correction 2021-01-05 14:51:52 +01:00
pucherot
c78fc4f85a Front 2.50 2021-01-05 12:20:13 +01:00
pucherot
9de0f3d847 Log 2.50 2021-01-05 11:35:21 +01:00
pucherot
42cc6d2186 db 2.50 2021-01-05 11:30:24 +01:00
Antonios Atlasis
b0a2bb437a Add files via upload 2018-08-09 16:02:17 +02:00
Antonios Atlasis
51e72e696d Add files via upload 2018-08-09 16:01:02 +02:00
Antonios Atlasis
9183f13aeb Add files via upload 2018-08-09 16:00:25 +02:00
Antonios Atlasis
28a936be79 Create README.md 2018-08-09 15:59:53 +02:00
7827 changed files with 305840 additions and 150992 deletions

13
.dockerignore Executable file
View File

@@ -0,0 +1,13 @@
.dockerignore
.env
.git
.github
.gitignore
docker-compose.yml
Dockerfile
dockerfiles/LICENSE
dockerfiles/README.md
docs
LICENSE.txt
README.md
CONTRIBUTING

16
.env Executable file
View File

@@ -0,0 +1,16 @@
#GLOBAL PATH VARIABLES
APP_DATA_LOCATION=/path/to/docker_appdata
APP_CONFIG_LOCATION=/path/to/docker_config
LOGS_LOCATION=/path/to/docker_logs
#ENVIRONMENT VARIABLES
TZ=Europe/Paris
HOST_USER_ID=1000
HOST_USER_GID=1000
PORT=20211
#DEVELOPMENT VARIABLES
DEV_LOCATION=/path/to/local/source/code

20
.github/ISSUE_TEMPLATE/feature_request.md vendored Executable file
View File

@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''
---
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Additional context**
Add any other context or screenshots about the feature request here.

42
.github/ISSUE_TEMPLATE/i-have-an-issue.md vendored Executable file
View File

@@ -0,0 +1,42 @@
---
name: I have an issue
about: Describe this issue template's purpose here.
title: ''
labels: ''
assignees: ''
---
**Describe the issue**
**Paste last few lines from `pialert.log`**
> You can use `tail -20 /home/pi/pialert/front/log/pialert.log`
```
paste_here
```
**Paste your `pialert.conf` (remove personal info)**
```
paste_here
```
**Paste your `docker-compose.yml` and `.env` (remove personal info)**
`docker-compose.yml`
```
paste_here
```
`.env`
```
paste_here
```
**Screenshots**
If applicable, add screenshots to help explain your problem.

64
.github/workflows/docker_dev.yml vendored Executable file
View File

@@ -0,0 +1,64 @@
---
name: docker
on:
push:
branches:
- '**'
tags:
- '*.*.*'
pull_request:
branches:
- master
jobs:
docker_dev:
runs-on: ubuntu-latest
if: contains(github.event.head_commit.message, 'PUSHPROD') != 'True'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Set up dynamic build ARGs
id: getargs
run: echo "version=$(cat ./stable/VERSION)" >> $GITHUB_OUTPUT
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
# list of Docker images to use as base name for tags
images: |
jokobsk/pi.alert_dev
# generate Docker tags based on the following events/attributes
tags: |
type=raw,value=latest
type=schedule
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha
- name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v3
with:
context: .
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

70
.github/workflows/docker_prod.yml vendored Executable file
View File

@@ -0,0 +1,70 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# GitHub recommends pinning actions to a commit SHA.
# To get a newer version, you will need to update the SHA.
# You can also reference a tag or branch, but the action may change without warning.
name: Publish Docker image
on:
release:
types: [published]
tags:
- '*.*.*'
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Set up dynamic build ARGs
id: getargs
run: echo "version=$(cat ./stable/VERSION)" >> $GITHUB_OUTPUT
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
# list of Docker images to use as base name for tags
images: |
jokobsk/pi.alert
# generate Docker tags based on the following events/attributes
tags: |
type=semver,pattern={{version}},value=${{ inputs.version }}
type=semver,pattern={{major}}.{{minor}},value=${{ inputs.version }}
type=semver,pattern={{major}},value=${{ inputs.version }}
type=ref,event=branch,suffix=-{{ sha }}
type=ref,event=pr
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/') }}
- name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v3
with:
context: .
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

13
.gitignore vendored Executable file
View File

@@ -0,0 +1,13 @@
.vscode
.DS_Store
config/pialert.conf
db/*
db/pialert.db
front/log/*
front/plugins/**/*.log
**/%40eaDir/
**/@eaDir/
__pycache__/
*.py[cod]
*$py.class

14
CONTRIBUTING Executable file
View File

@@ -0,0 +1,14 @@
# Contributing to this project
## Issues, bugs, feature requests
The issue tracker is the preferred channel for bug reports, features requests and submitting pull requests.
Before submitting a new issue please spend a couple of minutes on research:
* Check [🛑 Common issues](https://github.com/jokob-sk/Pi.Alert/tree/main/dockerfiles#-common-issues)
* Check [💡 Closed issues](https://github.com/jokob-sk/Pi.Alert/issues?q=is%3Aissue+is%3Aclosed) if a similar issue was solved in the past.
## Pull-requests (PRs)
If you submit a PR please do check that your changes are backward compatible with existing installations. Existing features should be always preserved.

54
Dockerfile Executable file
View File

@@ -0,0 +1,54 @@
FROM debian:bullseye-slim
# default UID and GID
ENV USER=pi USER_ID=1000 USER_GID=1000 PORT=20211
#TZ=Europe/London
# Todo, figure out why using a workdir instead of full paths don't work
# Todo, do we still need all these packages? I can already see sudo which isn't needed
RUN apt-get update \
&& apt-get install --no-install-recommends tini snmp ca-certificates curl libwww-perl arp-scan perl apt-utils cron sudo nginx-light php php-cgi php-fpm php-sqlite3 php-curl sqlite3 dnsutils net-tools python3 iproute2 nmap python3-pip zip -y \
&& pip3 install requests paho-mqtt scapy cron-converter pytz json2table dhcp-leases pyunifi \
&& update-alternatives --install /usr/bin/python python /usr/bin/python3 10 \
&& apt-get clean autoclean \
&& apt-get autoremove \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /var/www/html \
&& ln -s /home/pi/pialert/front /var/www/html
# create pi user and group
# add root and www-data to pi group so they can r/w files and db
RUN groupadd --gid "${USER_GID}" "${USER}" && \
useradd \
--uid ${USER_ID} \
--gid ${USER_GID} \
--create-home \
--shell /bin/bash \
${USER} && \
usermod -a -G ${USER_GID} root && \
usermod -a -G ${USER_GID} www-data
COPY --chmod=775 --chown=${USER_ID}:${USER_GID} . /home/pi/pialert/
# Pi.Alert
RUN rm /etc/nginx/sites-available/default \
&& ln -s /home/pi/pialert/install/default /etc/nginx/sites-available/default \
&& sed -ie 's/listen 80/listen '${PORT}'/g' /etc/nginx/sites-available/default \
# run the hardware vendors update
&& /home/pi/pialert/back/update_vendors.sh \
# Create a backup of the pialert.conf to be used if the user didn't supply a configuration file
&& cp /home/pi/pialert/config/pialert.conf /home/pi/pialert/back/pialert.conf_bak \
# Create a backup of the pialert.db to be used if the user didn't supply a database
&& cp /home/pi/pialert/db/pialert.db /home/pi/pialert/back/pialert.db_bak \
# Create a buildtimestamp.txt to later check if a new version was released
&& date +%s > /home/pi/pialert/front/buildtimestamp.txt
ENTRYPOINT ["tini", "--"]
CMD ["/home/pi/pialert/dockerfiles/start.sh"]
## command to build docker: DOCKER_BUILDKIT=1 docker build . --iidfile dockerID

2
FUNDING.yml Executable file
View File

@@ -0,0 +1,2 @@
github: jokob-sk
patreon: 84385063

0
LICENSE.txt Normal file → Executable file
View File

164
README.md Normal file → Executable file
View File

@@ -1,27 +1,23 @@
# Pi.Alert
<!--- --------------------------------------------------------------------- --->
WIFI / LAN intruder detector.
💻🔍 WIFI / LAN intruder detector.
Scan the devices connected to your WIFI / LAN and alert you the connection of
unknown devices. It also warns the disconnection of "always connected" devices.
Scans for devices connected to your WIFI / LAN and alerts you if new and unknown devices are found.
![Main screen][main]
*(Apologies for my English and my limited knowledge of Python, php and
JavaScript)*
# 🐳 Docker image
[![Docker](https://img.shields.io/github/actions/workflow/status/jokob-sk/Pi.Alert/docker_prod.yml?label=Build&logo=GitHub)](https://github.com/jokob-sk/Pi.Alert/actions/workflows/docker_prod.yml)
[![GitHub Committed](https://img.shields.io/github/last-commit/jokob-sk/Pi.Alert?color=40ba12&label=Committed&logo=GitHub&logoColor=fff)](https://github.com/jokob-sk/Pi.Alert)
[![Docker Size](https://img.shields.io/docker/image-size/jokobsk/pi.alert?label=Size&logo=Docker&color=0aa8d2&logoColor=fff)](https://hub.docker.com/r/jokobsk/pi.alert)
[![Docker Pulls](https://img.shields.io/docker/pulls/jokobsk/pi.alert?label=Pulls&logo=docker&color=0aa8d2&logoColor=fff)](https://hub.docker.com/r/jokobsk/pi.alert)
[![Docker Pushed](https://img.shields.io/badge/dynamic/json?color=0aa8d2&logoColor=fff&label=Pushed&query=last_updated&url=https%3A%2F%2Fhub.docker.com%2Fv2%2Frepositories%2Fjokobsk%2Fpi.alert%2F&logo=docker&link=http://left&link=https://hub.docker.com/repository/docker/jokobsk/pi.alert)](https://hub.docker.com/r/jokobsk/pi.alert)
## How it works
The system continuously scans the network for:
- New devices
- New connections (re-connections)
- Disconnections
- "Always Connected" devices down
- Devices IP changes
- Internet IP address changes
🐳 [Docker hub](https://registry.hub.docker.com/r/jokobsk/pi.alert) | 📄 [Dockerfile](https://github.com/jokob-sk/Pi.Alert/blob/main/Dockerfile) | 📚 [Docker instructions](https://github.com/jokob-sk/Pi.Alert/blob/main/dockerfiles/README.md) | 🆕 [Release notes](https://github.com/jokob-sk/Pi.Alert/releases)
## Scan Methods
Up to three scanning methods are used:
## 🔍 Scan Methods
The system continuously scans the network for, **New devices**, **New connections** (re-connections), **Disconnections**, **"Always Connected" devices down**, Devices **IP changes** and **Internet IP address changes**. Scanning methods are:
- **Method 1: arp-scan**. The arp-scan system utility is used to search
for devices on the network using arp frames.
- **Method 2: Pi-hole**. This method is optional and complementary to
@@ -33,89 +29,89 @@ Up to three scanning methods are used:
examines the DHCP leases (addresses assigned) to find active devices
that were not discovered by the other methods.
## Components
The system consists of two parts:
## 🧩 Integrations
- [Apprise](https://hub.docker.com/r/caronc/apprise), [Pushsafer](https://www.pushsafer.com/), [NTFY](https://ntfy.sh/)
- [Webhooks](https://github.com/jokob-sk/Pi.Alert/blob/main/docs/WEBHOOK_N8N.md) ([sample JSON](docs/webhook_json_sample.json))
- Home Assistant via [MQTT](https://www.home-assistant.io/integrations/mqtt/) - discovery ~10s per device, use [MQTT Explorer](https://mqtt-explorer.com/) to delete devices
- [API endpoint](https://github.com/jokob-sk/Pi.Alert/blob/main/docs/API.md)
- [Plugin system](https://github.com/jokob-sk/Pi.Alert/tree/main/front/plugins) for custom script monitoring
### Back
In charge of:
- Scan the network searching connected devices using the scanning methods
described
- Store the information in the DB
- Report the changes detected by e-mail
| ![Report 1][report1] | ![Report 2][report2] |
| -------------------- | -------------------- |
### Front
A web frontal that allows:
- Manage the devices inventory and the characteristics
- Display in a visual way all the information collected by the back
- Sessions
- Connected devices
- Favorites
- Events
- Presence
- Concurrent devices
- Down alerts
- IP's
- ...
| ![Screen 1][screen1] | ![Screen 2][screen2] |
| -------------------- | -------------------- |
| ![Screen 3][screen3] | ![Screen 4][screen4] |
# Installation
<!--- --------------------------------------------------------------------- --->
Initially designed to run on a Raspberry PI, probably it can run on many other
Linux distributions.
- [Installation Guide](docs/INSTALL.md)
## Device Management
# 📥 Installation
<!--- --------------------------------------------------------------------- --->
- [Device Management instructions](docs/DEVICE_MANAGEMENT.md)
⚠ Only tested as a [docker container - follow these instructions here](dockerfiles/README.md).
> Check out [leiweibau's fork](https://github.com/leiweibau/Pi.Alert/) if you want to install Pi.Alert on the server directly or original instructions for [pucherot's original code](https://github.com/pucherot/Pi.Alert/)
# 📑 Features
- Display:
- Sessions, Connected devices, Favorites, Events, Presence, Concurrent devices, Down alerts, IP's
- Manual Nmap scans, Optional speedtest for Device "Internet"
- Simple Network relationship display
- Maintenance tasks and Settings like:
- Theme Selection (blue, red, green, yellow, black, purple) and Light/Dark-Mode Switch
- DB maintenance, Backup, Restore tools and CSV Export / Import
- Simple login Support
- 🌟[Plugin system](https://github.com/jokob-sk/Pi.Alert/tree/main/front/plugins)
- Create custom plugins with automatically generated settings and UI.
- Monitor anything for changes
- Check the [instructions](https://github.com/jokob-sk/Pi.Alert/tree/main/front/plugins) carefully if you are up for a challenge! Current plugins include:
- Detecting Rogue DHCP servers via NMAP
- Monitoring HTTP status changes of domains/URLs
- Import devices from DHCP.leases files, a UniFi controller, or an SNMP enabled router
- Creation of dummy devices to visualize your [network map](https://github.com/jokob-sk/Pi.Alert/blob/main/docs/NETWORK_TREE.md)
| ![Screen 1][screen1] | ![Screen 2][screen2] | ![Screen 5][screen5] |
|----------------------|----------------------| ----------------------|
| ![Screen 3][screen3] | ![Screen 4][screen4] | ![Screen 6][screen6] |
| ![Screen 8][screen8] | ![Report 2][report2] | ![Screen 9][screen9] |
## Other useful info
<!--- --------------------------------------------------------------------- --->
### 🔗 Other Alternatives
### [Versions History](docs/VERSIONS_HISTORY.md)
- [WatchYourLAN](https://github.com/aceberg/WatchYourLAN) - Lightweight network IP scanner with web GUI (Open source)
- [Fing](https://www.fing.com/) - Network scanner app for your Internet security (Commercial, Phone App, Proprietary hardware)
### Powered by:
| Product | Objetive |
| ------------ | -------------------------------------- |
| Python | Programming language for the Back |
| PHP | Programming language for the Front-end |
| JavaScript | Programming language for the Front-end |
| Bootstrap | Front-end framework |
| Admin.LTE | Bootstrap template |
| FullCalendar | Calendar component |
| Sqlite | DB engine |
| Lighttpd | Webserver |
| arp-scan | Scan network using arp commands |
| Pi.hole | DNS Server with Ad-block |
| dnsmasq | DHCP Server |
### 📚 Documentation
- Initial Docker Setup: [Docker instructions](https://github.com/jokob-sk/Pi.Alert/blob/main/dockerfiles/README.md)
- App Usage and Configuration: [All Documentation](https://github.com/jokob-sk/Pi.Alert/blob/main/docs/README.md)
### License
GPL 3.0
[Read more here](LICENSE.txt)
### Contact
pi.alert.application@gmail.com
GPL 3.0 | [Read more here](LICENSE.txt) | Source of the [animated GIF (Loading Animation)](https://commons.wikimedia.org/wiki/File:Loading_Animation.gif) | Source of the [selfhosted Fonts](https://github.com/adobe-fonts/source-sans)
***Suggestions and comments are welcome***
### 🥇 Special thanks
This code is a collaborative body of work, with special thanks to:
- 🏆 [pucherot/Pi.Alert](https://github.com/pucherot/Pi.Alert) is the original creator od PiAlert
- [leiweibau](https://github.com/leiweibau/Pi.Alert): Dark mode (and much more)
- [Macleykun](https://github.com/Macleykun): Help with Dockerfile clean-up
- [Final-Hawk](https://github.com/Final-Hawk): Help with NTFY, styling and other fixes
- [TeroRERO](https://github.com/terorero): Spanish translation
- [Data-Monkey](https://github.com/Data-Monkey): Split-up of the python.py file and more
- Please see the [Git contributors](https://github.com/jokob-sk/Pi.Alert/graphs/contributors) for a full list of people and their contributions to the project
## ☕ Support me
<a href="https://github.com/sponsors/jokob-sk" target="_blank"><img src="https://i.imgur.com/X6p5ACK.png" alt="Sponsor Me on GitHub" style="height: 30px !important;width: 117px !important;" width="150px" ></a>
<a href="https://www.buymeacoffee.com/jokobsk" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 30px !important;width: 117px !important;" width="117px" height="30px" ></a>
<a href="https://www.patreon.com/user?u=84385063" target="_blank"><img src="https://upload.wikimedia.org/wikipedia/commons/thumb/8/82/Patreon_logo_with_wordmark.svg/512px-Patreon_logo_with_wordmark.svg.png" alt="Support me on patreon" style="height: 30px !important;width: 117px !important;" width="117px" ></a>
BTC: 1N8tupjeCK12qRVU2XrV17WvKK7LCawyZM
<!--- --------------------------------------------------------------------- --->
[main]: ./docs/img/1_devices.jpg "Main screen"
[screen1]: ./docs/img/2_1_device_details.jpg "Screen 1"
[screen2]: ./docs/img/2_2_device_sessions.jpg "Screen 2"
[screen3]: ./docs/img/2_3_device_presence.jpg "Screen 3"
[screen4]: ./docs/img/3_presence.jpg "Screen 4"
[main]: ./docs/img/devices_split.png "Main screen"
[screen1]: ./docs/img/device_details.png "Screen 1"
[screen2]: ./docs/img/events.png "Screen 2"
[screen3]: ./docs/img/presence.png "Screen 3"
[screen4]: ./docs/img/maintenance.png "Screen 4"
[screen5]: ./docs/img/network.png "Screen 5"
[screen6]: ./docs/img/settings.png "Screen 6"
[screen7]: ./docs/img/help_faq.png "Screen 7"
[screen8]: ./docs/img/plugins_webmon.png "Screen 8"
[screen9]: ./docs/img/device_nmap.png "Screen 9"
[report1]: ./docs/img/4_report_1.jpg "Report sample 1"
[report2]: ./docs/img/4_report_2.jpg "Report sample 2"
[main_dark]: /docs/img/1_devices_dark.jpg "Main screen dark"
[maintain_dark]: /docs/img/5_maintain.jpg "Maintain screen dark"

141
back/pialert-cli Executable file
View File

@@ -0,0 +1,141 @@
#!/bin/bash
SCRIPT=$(readlink -f $0)
SCRIPTPATH=`dirname $SCRIPT`
PIA_CONF_FILE=${SCRIPTPATH}'/../config/pialert.conf'
case $1 in
help)
echo "pialert-cli v0.1 (https://github.com/leiweibau/Pi.Alert)"
echo "Usage: pialert-cli <command>"
echo ""
echo "The is a list of supported commands:"
echo ""
echo " set_login - Sets the parameter PIALERT_WEB_PROTECTION in the config file to TRUE"
echo " - If the parameter is not present, it will be created. Additionally the"
echo " default password '123456' is set."
echo ""
echo " unset_login - Sets the parameter PIALERT_WEB_PROTECTION in the config file to FALSE"
echo " - If the parameter is not present, it will be created. Additionally the"
echo " default password '123456' is set."
echo ""
echo " set_password <password> - Sets the new password as a hashed value."
echo " - If the PIALERT_WEB_PROTECTION parameter does not exist yet, it will be"
echo " created and set to 'True' (login enabled)"
echo ""
echo " set_autopassword - Sets a new random password as a hashed value and show it plaintext in"
echo " the console."
echo " - If the PIALERT_WEB_PROTECTION parameter does not exist yet, it will be"
echo " created and set to 'True' (login enabled)"
echo ""
echo " disable_scan - Stops all active scans"
echo " - Prevents new scans from starting"
echo ""
echo " enable_scan - Stops all active scans"
echo " - Prevents new scans from starting"
echo ""
echo ""
;;
set_login)
## Check if PIALERT_WEB_PROTECTION exists
CHECK_PROT=$(grep "PIALERT_WEB_PROTECTION" $PIA_CONF_FILE | wc -l)
if [ $CHECK_PROT -eq 0 ]
then
## Create PIALERT_WEB_PROTECTION and enable it
sed -i "/^VENDORS_DB.*/a PIALERT_WEB_PROTECTION = True" $PIA_CONF_FILE
sed -i "/^PIALERT_WEB_PROTECTION.*/a PIALERT_WEB_PASSWORD = '8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92'" $PIA_CONF_FILE
else
## Switch PIALERT_WEB_PROTECTION to enable
sed -i "/PIALERT_WEB_PROTECTION/c\PIALERT_WEB_PROTECTION = True" $PIA_CONF_FILE
fi
echo "Login is now enabled"
;;
unset_login)
## Check if PIALERT_WEB_PROTECTION exists
CHECK_PROT=$(grep "PIALERT_WEB_PROTECTION" $PIA_CONF_FILE | wc -l)
if [ $CHECK_PROT -eq 0 ]
then
## Create PIALERT_WEB_PROTECTION and disable it
sed -i "/^VENDORS_DB.*/a PIALERT_WEB_PROTECTION = False" $PIA_CONF_FILE
sed -i "/^PIALERT_WEB_PROTECTION.*/a PIALERT_WEB_PASSWORD = '8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92'" $PIA_CONF_FILE
else
## Switch PIALERT_WEB_PROTECTION to disable
sed -i "/PIALERT_WEB_PROTECTION/c\PIALERT_WEB_PROTECTION = False" $PIA_CONF_FILE
fi
echo "Login is now disabled"
;;
set_password)
PIA_PASS=$2
## Check if PIALERT_WEB_PROTECTION exists
CHECK_PROT=$(grep "PIALERT_WEB_PROTECTION" $PIA_CONF_FILE | wc -l)
if [ $CHECK_PROT -eq 0 ]
then
## Create PIALERT_WEB_PROTECTION and enable it
sed -i "/^VENDORS_DB.*/a PIALERT_WEB_PROTECTION = True" $PIA_CONF_FILE
fi
## Prepare Hash
PIA_PASS_HASH=$(echo -n $PIA_PASS | sha256sum | awk '{print $1}')
echo " The hashed password is:"
echo " $PIA_PASS_HASH"
## Check if the password parameter is set
CHECK_PWD=$(grep "PIALERT_WEB_PASSWORD" $PIA_CONF_FILE | wc -l)
if [ $CHECK_PWD -eq 0 ]
then
sed -i "/^PIALERT_WEB_PROTECTION.*/a PIALERT_WEB_PASSWORD = '$PIA_PASS_HASH'" $PIA_CONF_FILE
else
sed -i "/PIALERT_WEB_PASSWORD/c\PIALERT_WEB_PASSWORD = '$PIA_PASS_HASH'" $PIA_CONF_FILE
fi
echo ""
echo "The new password is set"
;;
set_autopassword)
## Check if PIALERT_WEB_PROTECTION exists
CHECK_PROT=$(grep "PIALERT_WEB_PROTECTION" $PIA_CONF_FILE | wc -l)
if [ $CHECK_PROT -eq 0 ]
then
## Create PIALERT_WEB_PROTECTION and enable it
sed -i "/^VENDORS_DB.*/a PIALERT_WEB_PROTECTION = True" $PIA_CONF_FILE
fi
## Create autopassword
PIA_AUTOPASS=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 8 | head -n 1)
echo " The password is: $PIA_AUTOPASS"
## Prepare Hash
PIA_AUTOPASS_HASH=$(echo -n $PIA_AUTOPASS | sha256sum | awk '{print $1}')
echo " The hashed password is:"
echo " $PIA_AUTOPASS_HASH"
## Check if the password parameter is set
CHECK_PWD=$(grep "PIALERT_WEB_PASSWORD" $PIA_CONF_FILE | wc -l)
if [ $CHECK_PWD -eq 0 ]
then
## Create password parameter
sed -i "/^PIALERT_WEB_PROTECTION.*/a PIALERT_WEB_PASSWORD = '$PIA_AUTOPASS_HASH'" $PIA_CONF_FILE
else
## Overwrite password parameter
sed -i "/PIALERT_WEB_PASSWORD/c\PIALERT_WEB_PASSWORD = '$PIA_AUTOPASS_HASH'" $PIA_CONF_FILE
fi
echo ""
echo "The new password is set"
;;
disable_scan)
## stop active scans
sudo killall arp-scan
touch ${SCRIPTPATH}/../db/setting_stoparpscan
echo "The arp-scan is disabled"
;;
enable_scan)
## stop active scans
rm ${SCRIPTPATH}/../db/setting_stoparpscan
echo "The arp-scan is enabled"
;;
*)
echo "pialert-cli v0.1 (https://github.com/leiweibau/Pi.Alert)"
echo "Use \"pialert-cli help\" for a list of supported commands."
esac

File diff suppressed because it is too large Load Diff

173
back/report_sample.html Executable file
View File

@@ -0,0 +1,173 @@
<!-- ---------------------------------------------------------------------------
# Pi.Alert
# Open Source Network Guard / WIFI & LAN intrusion detector
#
# repot_template.html - Back module. Template to email reporting in HTML format
#-------------------------------------------------------------------------------
# Puche 2021 pi.alert.application@gmail.com GNU GPLv3
#--------------------------------------------------------------------------- -->
<html>
<head></head>
<body>
<font face=sans-serif>
<table align=center width=100% cellpadding=0 cellspacing=0 style="border-radius: 5px;">
<tr>
<td bgcolor=#EFB956 align=center style="padding: 20px 10px 10px 10px; font-size: 30px; font-weight: bold; color:#000000; border-top-right-radius: 5px; border-top-left-radius: 5px; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2)">
Pi.Alert Report
</td>
</tr>
<tr>
<td bgcolor=#2656f1 width=100% align=center style="padding: 20px 10px 10px 10px; font-size: 20px; font-weight: bold; color:#ffffff; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2)">
<a style="color:#ffffff;cursor:pointer;" href="https://github.com/jokob-sk/Pi.Alert/releases">🆕 New version available 🆕</a>
</td>
</tr>
<tr>
<td>
<table width=100% border=0 bgcolor=#FFD966 cellpadding=5px cellspacing=0 style="border-collapse: collapse; font-size: 15px; text-align:center; color:#404040">
<tr>
<td width=100%> Report Date: <b>2023-01-30 22:17</b> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor=#F5F5F5 height=200 valign=top style="padding: 10px">
<table style="border-collapse: collapse; font-size: 12px; color:#70707" width="100%" cellspacing="0" cellpadding="3px" bordercolor="#C0C0C0" border="1">
<tr>
<th width='120px' style='color:blue; font-size: 12px;' bgcolor='#909090' >New devices</th>
</tr>
<tr>
<td>
<table style="border-collapse: collapse; font-size: 12px; color:#70707" width="100%" cellspacing="0" cellpadding="3px" bordercolor="#C0C0C0" border="1">
<tr>
<th width='120px' style='color:#F0F0F0' bgcolor='#909090' >MAC</th>
<th width='120px' style='color:#F0F0F0' bgcolor='#909090' >Datetime</th>
<th width='120px' style='color:#F0F0F0' bgcolor='#909090' >IP</th>
<th width='120px' style='color:#F0F0F0' bgcolor='#909090' >Event Type</th>
<th width='120px' style='color:#F0F0F0' bgcolor='#909090' >Device name</th>
<th width='120px' style='color:#F0F0F0' bgcolor='#909090' >Comments</th>
</tr>
<tr>
<td><a href="http://192.168.1.1:20211/deviceDetails.php?mac=00:00:00:ef:a5:6c">00:00:00:ef:a5:6c</a></td>
<td>2023-01-30 22:15:09</td>
<td>192.168.1.1</td>
<td>New Device</td>
<td>(name not found)</td>
<td></td>
</tr>
<tr>
<td><a href="http://192.168.1.1:20211/deviceDetails.php?mac=00:00:00:ef:a5:6c">00:00:00:ef:a5:6c</a></td>
<td>2023-01-30 22:17:59</td>
<td>192.168.1.82</td>
<td>New Device</td>
<td>(name not found)</td>
<td></td>
</tr>
</table>
</td>
</tr>
</table>
<table style="border-collapse: collapse; font-size: 12px; color:#70707" width="100%" cellspacing="0" cellpadding="3px" bordercolor="#C0C0C0" border="1">
<tr>
<th width='120px' style='color:blue; font-size: 12px;' bgcolor='#909090' >Events</th>
</tr>
<tr>
<td>
<ul>
<li>
<table style="border-collapse: collapse; font-size: 12px; color:#70707" width="100%" cellspacing="0" cellpadding="3px" bordercolor="#C0C0C0" border="1">
<tr>
<th width='120px' style='color:#F0F0F0' bgcolor='#909090' >MAC</th>
<th width='120px' style='color:#F0F0F0' bgcolor='#909090' >Datetime</th>
<th width='120px' style='color:#F0F0F0' bgcolor='#909090' >IP</th>
<th width='120px' style='color:#F0F0F0' bgcolor='#909090' >Event Type</th>
<th width='120px' style='color:#F0F0F0' bgcolor='#909090' >Device name</th>
<th width='120px' style='color:#F0F0F0' bgcolor='#909090' >Comments</th>
</tr>
<tr>
<td><a href="http://192.168.1.1:20211/deviceDetails.php?mac=00:00:00:ef:a5:6c">00:00:00:ef:a5:6c</a></td>
<td>2023-01-30 22:15:09</td>
<td>192.168.1.92</td>
<td>Disconnected</td>
<td>(name not found)</td>
<td></td>
</tr>
</table>
</li>
</ul>
</td>
</tr>
</table>
<table style="border-collapse: collapse; font-size: 12px; color:#70707" width="100%" cellspacing="0" cellpadding="3px" bordercolor="#C0C0C0" border="1">
<tr>
<th width='120px' style='color:blue; font-size: 12px;' bgcolor='#909090' >Changed or new ports</th>
</tr>
<tr>
<td>
<table style="border-collapse: collapse; font-size: 12px; color:#70707" width="100%" cellspacing="0" cellpadding="3px" bordercolor="#C0C0C0" border="1">
<tr>
<th>new</th>
</tr>
<tr>
<td>
<table style="border-collapse: collapse; font-size: 12px; color:#70707" width="100%" cellspacing="0" cellpadding="3px" bordercolor="#C0C0C0" border="1">
<tr>
<th width='120px' style='color:#F0F0F0' bgcolor='#909090' >Name</th>
<th width='120px' style='color:#F0F0F0' bgcolor='#909090' >MAC</th>
<th width='120px' style='color:#F0F0F0' bgcolor='#909090' >Port</th>
<th width='120px' style='color:#F0F0F0' bgcolor='#909090' >State</th>
<th width='120px' style='color:#F0F0F0' bgcolor='#909090' >Service</th>
<th width='120px' style='color:#F0F0F0' bgcolor='#909090' >Extra</th>
</tr>
<tr>
<td>New device</td>
<td><a href="http://192.168.1.1:20211/deviceDetails.php?mac=00:00:00:ef:a5:6c">00:00:00:ef:a5:6c</a></td>
<td>3263/tcp</td>
<td>open</td>
<td>ecolor-imager</td>
<td></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table style="border-collapse: collapse; font-size: 12px; color:#70707" width="100%" cellspacing="0" cellpadding="3px" bordercolor="#C0C0C0" border="1">
<tr>
<th width='120px' style='color:#F0F0F0' bgcolor='#909090' >Name</th>
<th width='120px' style='color:#F0F0F0' bgcolor='#909090' >MAC</th>
<th width='120px' style='color:#F0F0F0' bgcolor='#909090' >Port</th>
<th width='120px' style='color:#F0F0F0' bgcolor='#909090' >State</th>
<th width='120px' style='color:#F0F0F0' bgcolor='#909090' >Service</th>
<th width='120px' style='color:#F0F0F0' bgcolor='#909090' >Extra</th>
</tr>
<tr>
<td>New device</td>
<td><a href="http://192.168.1.1:20211/deviceDetails.php?mac=00:00:00:ef:a5:6c">00:00:00:ef:a5:6c</a></td>
<td>3264/tcp</td>
<td>open</td>
<td>ccmail</td>
<td></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<tr>
<td>
<table width=100% bgcolor=#46802e cellpadding=5px cellspacing=0 style="font-size: 13px; font-weight: bold; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px;">
<tr>
<td width=50% style="text-align:center"> Pi.Alert - Synology-NAS</td>
</tr>
</table>
</td>
</tr>
</table>
</font>
</body>
</html>

50
back/report_sample.txt Executable file
View File

@@ -0,0 +1,50 @@
Report Date: 2021-12-08 12:30
Server: Synology-NAS
New Devices
----------------------
Name: (name not found)
MAC: 2c:2c:2c:2c:2c:2c
IP: 192.168.1.121
Time: 2021-12-08 12:30
More Info: Micro-Star INTL CO., LTD.
Name: (name not found)
MAC: 2c:2c:2c:2c:2c:2c
IP: 192.168.1.151
Time: 2021-12-08 12:30
More Info: Espressif Inc.
Events
----------------------
Name: Samsung
MAC: 2c:2c:2c:2c:2c:2c
IP: 192.168.1.27
Time: 2021-12-08 12:30
Event: Connected
More Info:
Name: (name not found)
MAC: 2c:2c:2c:2c:2c:2c
IP: 192.168.1.6
Time: 2021-12-08 12:30
Event: Disconnected
More Info:
Name: Google-Home-Mini
MAC: 2c:2c:2c:2c:2c:2c
IP: 192.168.1.16
Time: 2021-12-08 12:30
Event: Disconnected
More Info:
Name: (name not found)
MAC: 2c:2c:2c:2c:2c:2c
IP: 192.168.1.119
Time: 2021-12-08 12:30
Event: Disconnected
More Info:

96
back/report_template.html Normal file → Executable file
View File

@@ -14,20 +14,17 @@
<body>
<font face=sans-serif>
<table align=center width=80% border=1 bordercolor=#909090 cellpadding=0 cellspacing=0 style="border-collapse: collapse; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.5)">
<table align=center width=100% cellpadding=0 cellspacing=0 style="border-radius: 5px;">
<tr>
<td bgcolor=#EFB956 align=center style="padding: 20px 10px 10px 10px; font-size: 36px; font-weight: bold; color:#7F6000; text-shadow: 4px 4px 6px #909090">
<td bgcolor=#EFB956 align=center style="padding: 20px 10px 10px 10px; font-size: 30px; font-weight: bold; color:#000000; border-top-right-radius: 5px; border-top-left-radius: 5px; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2)">
Pi.Alert Report
</td>
</tr>
<tr>
<td>
<table width=100% border=0 bgcolor=#FFD966 cellpadding=5px cellspacing=0 style="border-collapse: collapse; font-size: 16px; text-align:center; color:#5F5000">
<tr>
<td width=33%> Report Date: <b><REPORT_DATE></b> </td>
<td width=34%> Scan Cycle: <b><SCAN_CYCLE></b> </td>
<td width=33%> Server: <b><SERVER_NAME></b> </td>
<table width=100% border=0 bgcolor=#FFD966 cellpadding=5px cellspacing=0 style="border-collapse: collapse; font-size: 15px; text-align:center; color:#404040"> <tr>
<td width=100%> Report Date: <b><REPORT_DATE></b> </td>
</tr>
</table>
</td>
@@ -35,84 +32,21 @@
<tr>
<td bgcolor=#F5F5F5 height=200 valign=top style="padding: 10px">
<SECTION_INTERNET>
<p style="font-size: 24px; font-weight: bold; color:#C04040; text-shadow: 2px 2px 4px #A0A0A0"> Internet: </p>
<table width=100% border=1 bordercolor=#C0C0C0 cellpadding=3px cellspacing=0 style="border-collapse: collapse; font-size: 12px; color:#707070; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2)">
<tr bgcolor=#909090 style="color:#F0F0F0">
<th width=140> Event Type </th>
<th width=130> Datetime </th>
<th width=100> IP </th>
<th> Additional Info </th>
</tr>
<TABLE_INTERNET>
</table>
<br>
</SECTION_INTERNET>
<SECTION_NEW_DEVICES>
<p style="font-size: 14px; font-weight: bold; color:#C04040; text-shadow: 2px 2px 4px #A0A0A0"> New Devices: </p>
<table width=100% border=1 bordercolor=#C0C0C0 cellpadding=3px cellspacing=0 style="border-collapse: collapse; font-size: 12px; color:#707070; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2)">
<tr bgcolor=#909090 style="color:#F0F0F0">
<th width=140> MAC </th>
<th width=130> Datetime </th>
<th width=100> IP </th>
<th width=140> Device Name </th>
<th> Vendor </th>
</tr>
<TABLE_NEW_DEVICES>
</table>
<br>
</SECTION_NEW_DEVICES>
<SECTION_DEVICES_DOWN>
<p style="font-size: 14px; font-weight: bold; color:#C04040; text-shadow: 2px 2px 4px #A0A0A0"> Devices Down: </p>
<table width=100% border=1 bordercolor=#C0C0C0 cellpadding=3px cellspacing=0 style="border-collapse: collapse; font-size: 12px; color:#707070; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2)">
<tr bgcolor=#909090 style="color:#F0F0F0">
<th width=140> MAC </th>
<th width=130> Datetime </th>
<th width=100> IP </th>
<th> Device Name </th>
</tr>
<TABLE_DEVICES_DOWN>
</table>
<br>
</SECTION_DEVICES_DOWN>
<SECTION_EVENTS>
<p style="font-size: 14px; font-weight: bold; color:#409040; text-shadow: 2px 2px 4px #A0A0A0"> Events: </p>
<table width=100% border=1 bordercolor=#C0C0C0 cellpadding=3px cellspacing=0 style="border-collapse: collapse; font-size: 12px; color:#707070; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2)">
<tr bgcolor=#909090 style="color:#F0F0F0">
<th width=140> MAC </th>
<th width=130> Datetime </th>
<th width=100> IP </th>
<th width=100> Event Type </th>
<th width=140> Device Name </th>
<th> Additional Info </th>
</tr>
<TABLE_EVENTS>
</table>
</SECTION_EVENTS>
<INTERNET_TABLE>
<NEW_DEVICES_TABLE>
<DOWN_DEVICES_TABLE>
<EVENTS_TABLE>
<PORTS_TABLE>
<PLUGINS_TABLE>
</td>
</tr>
<tr>
<td>
<table width=100% border=0 bgcolor=#70AD47 cellpadding=5px cellspacing=0 style="border-collapse: collapse; font-size: 12px; font-weight: bold; color:#385723">
<table width=100% bgcolor=#46802e cellpadding=5px cellspacing=0 style="font-size: 13px; font-weight: bold; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px;">
<tr>
<td width=25% style="text-align:Left"> <span style="display:inline-block; transform: rotate(180deg)">&copy;</span> <PIALERT_YEAR> Puche</td>
<td width=50% style="text-align:center"> Pi.Alert <PIALERT_VERSION> &nbsp; &nbsp; (<PIALERT_VERSION_DATE>) </td>
<td width=25% style="text-align:right"> GNU GPLv3</td>
<td width=50% style="text-align:center"> Pi.Alert - <SERVER_NAME></td>
</tr>
</table>
</td>
@@ -120,4 +54,4 @@
</table>
</font>
</body>
</html>
</html>

32
back/report_template.txt Normal file → Executable file
View File

@@ -1,27 +1,9 @@
========================================
Pi.Alert Report
========================================
Report Date: <REPORT_DATE>
Scan Cycle: <SCAN_CYCLE>
Server: <SERVER_NAME>
Report Date: <REPORT_DATE>
Server: <SERVER_NAME>
<SECTION_NEW_DEVICES>
<SECTION_DEVICES_DOWN>
<SECTION_EVENTS>
<SECTION_INTERNET>
Internet
----------------------------------------------------------------------
<TABLE_INTERNET>
</SECTION_INTERNET><SECTION_NEW_DEVICES>
New Devices
----------------------------------------------------------------------
<TABLE_NEW_DEVICES>
</SECTION_NEW_DEVICES><SECTION_DEVICES_DOWN>
Devices Down
----------------------------------------------------------------------
<TABLE_DEVICES_DOWN>
</SECTION_DEVICES_DOWN><SECTION_EVENTS>
Events
----------------------------------------------------------------------
<TABLE_EVENTS>
</SECTION_EVENTS>
----------------------------------------------------------------------
(?) <PIALERT_YEAR> Puche Pi.Alert <PIALERT_VERSION> (<PIALERT_VERSION_DATE>) GNU GPLv3
<PORTS_TABLE>
<PLUGINS_TABLE>

View File

@@ -0,0 +1,61 @@
<!-- ---------------------------------------------------------------------------
# Pi.Alert
# Open Source Network Guard / WIFI & LAN intrusion detector
#
# repot_template.html - Back module. Template to email reporting in HTML format
#-------------------------------------------------------------------------------
# Puche 2021 pi.alert.application@gmail.com GNU GPLv3
#--------------------------------------------------------------------------- -->
<html>
<head>
</head>
<body>
<font face=sans-serif>
<table align=center width=100% cellpadding=0 cellspacing=0 style="border-radius: 5px;">
<tr>
<td bgcolor=#EFB956 align=center style="padding: 20px 10px 10px 10px; font-size: 30px; font-weight: bold; color:#000000; border-top-right-radius: 5px; border-top-left-radius: 5px; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2)">
Pi.Alert Report
</td>
</tr>
<tr>
<td bgcolor=#2656f1 width=100% align=center style="padding: 20px 10px 10px 10px; font-size: 20px; font-weight: bold; color:#ffffff; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2)">
<a style="color:#ffffff;cursor:pointer;" href="https://github.com/jokob-sk/Pi.Alert/releases">🆕 New version available 🆕</a>
</td>
</tr>
<tr>
<td>
<table width=100% border=0 bgcolor=#FFD966 cellpadding=5px cellspacing=0 style="border-collapse: collapse; font-size: 15px; text-align:center; color:#404040"> <tr>
<td width=100%> Report Date: <b><REPORT_DATE></b> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor=#F5F5F5 height=200 valign=top style="padding: 10px">
<INTERNET_TABLE>
<NEW_DEVICES_TABLE>
<DOWN_DEVICES_TABLE>
<EVENTS_TABLE>
<PORTS_TABLE>
<PLUGINS_TABLE>
<tr>
<td>
<table width=100% bgcolor=#46802e cellpadding=5px cellspacing=0 style="font-size: 13px; font-weight: bold; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px;">
<tr>
<td width=50% style="text-align:center"> Pi.Alert - <SERVER_NAME></td>
</tr>
</table>
</td>
</tr>
</table>
</font>
</body>
</html>

2013
back/speedtest-cli Executable file

File diff suppressed because it is too large Load Diff

32
back/vendors_db_update.sh → back/update_vendors.sh Normal file → Executable file
View File

@@ -3,9 +3,9 @@
# Pi.Alert
# Open Source Network Guard / WIFI & LAN intrusion detector
#
# vendors_db_update.sh - Back module. IEEE Vendors db update
# update_vendors.sh - Back module. IEEE Vendors db update
# ------------------------------------------------------------------------------
# Puche 2021 pi.alert.application@gmail.com GNU GPLv3
# Puche 2021 / 2022+ jokob jokob@duck.com GNU GPLv3
# ------------------------------------------------------------------------------
# ----------------------------------------------------------------------
@@ -23,19 +23,21 @@ cd /usr/share/ieee-data/
sudo mkdir -p 2_backup
sudo cp *.txt 2_backup
sudo cp *.csv 2_backup
sudo curl -# -O http://standards-oui.ieee.org/iab/iab.csv
sudo curl -# -O http://standards-oui.ieee.org/iab/iab.txt
sudo curl -# -O http://standards-oui.ieee.org/oui28/mam.csv
sudo curl -# -O http://standards-oui.ieee.org/oui28/mam.txt
sudo curl -# -O http://standards-oui.ieee.org/oui36/oui36.csv
sudo curl -# -O http://standards-oui.ieee.org/oui36/oui36.txt
sudo curl -# -O http://standards-oui.ieee.org/oui/oui.csv
sudo curl -# -O http://standards-oui.ieee.org/oui/oui.txt
echo ""
echo Download Start
echo ""
sudo curl $1 -LO https://standards-oui.ieee.org/iab/iab.csv \
-LO https://standards-oui.ieee.org/iab/iab.txt \
-LO https://standards-oui.ieee.org/oui28/mam.csv \
-LO https://standards-oui.ieee.org/iab/iab.txt \
-LO https://standards-oui.ieee.org/oui28/mam.csv \
-LO https://standards-oui.ieee.org/oui28/mam.txt \
-LO https://standards-oui.ieee.org/oui36/oui36.csv \
-LO https://standards-oui.ieee.org/oui36/oui36.txt \
-LO https://standards-oui.ieee.org/oui/oui.csv \
-LO https://standards-oui.ieee.org/oui/oui.txt
echo ""
echo Download Finished
# ----------------------------------------------------------------------
echo ""

87
back/webhook_json_sample.json Executable file
View File

@@ -0,0 +1,87 @@
[
{
"headers": {
"host": "192.168.1.82:5678",
"user-agent": "curl/7.74.0",
"accept": "*/*",
"content-type": "application/json",
"content-length": "872"
},
"params": {},
"query": {},
"body": {
"username": "Pi.Alert",
"text": "There are new notifications",
"attachments": [
{
"title": "Pi.Alert Notifications",
"title_link": "",
"text": {
"internet": [],
"new_devices": [{
"MAC": "74:ac:74:ac:74:ac",
"Datetime": "2023-01-30 22:15:09",
"IP": "192.168.1.1",
"Event Type": "New Device",
"Device name": "(name not found)",
"Comments": null
}],
"down_devices": [],
"events": [{
"MAC": "74:ac:74:ac:74:ac",
"Datetime": "2023-01-30 22:15:09",
"IP": "192.168.1.92",
"Event Type": "Disconnected",
"Device name": "(name not found)",
"Comments": null
}, {
"MAC": "74:ac:74:ac:74:ac",
"Datetime": "2023-01-30 22:15:09",
"IP": "192.168.1.150",
"Event Type": "Disconnected",
"Device name": "(name not found)",
"Comments": null
}],
"ports": [{
"new": {
"Name": "New device",
"MAC": "74:ac:74:ac:74:ac",
"Port": "22/tcp",
"State": "open",
"Service": "ssh",
"Extra": ""
}
}, {
"new": {
"Name": "New device",
"MAC": "74:ac:74:ac:74:ac",
"Port": "53/tcp",
"State": "open",
"Service": "domain",
"Extra": ""
}
}, {
"new": {
"Name": "New device",
"MAC": "74:ac:74:ac:74:ac",
"Port": "80/tcp",
"State": "open",
"Service": "http",
"Extra": ""
}
}, {
"new": {
"Name": "New device",
"MAC": "74:ac:74:ac:74:ac",
"Port": "443/tcp",
"State": "open",
"Service": "https",
"Extra": ""
}
}]
}
}
]
}
}
]

143
config/pialert.conf Normal file → Executable file
View File

@@ -1,37 +1,118 @@
#-------------------------------------------------------------------------------
# Pi.Alert
# Open Source Network Guard / WIFI & LAN intrusion detector
#-----------------AUTOGENERATED FILE-----------------#
# #
# Generated: 2022-12-30_22-19-40 #
# #
# Config file for the LAN intruder detection app: #
# https://github.com/jokob-sk/Pi.Alert #
# #
#-----------------AUTOGENERATED FILE-----------------#
# General
#---------------------------
# Scan using interface eth0
# SCAN_SUBNETS = ['192.168.1.0/24 --interface=eth0']
#
# pialert.conf - Back module. Configuration file
#-------------------------------------------------------------------------------
# Puche 2021 pi.alert.application@gmail.com GNU GPLv3
#-------------------------------------------------------------------------------
# Scan multiple interfaces (eth1 and eth0):
# SCAN_SUBNETS = [ '192.168.1.0/24 --interface=eth1', '192.168.1.0/24 --interface=eth0' ]
SCAN_SUBNETS=['192.168.1.0/24 --interface=eth1']
PRINT_LOG=False
TIMEZONE='Europe/Berlin'
PIALERT_WEB_PROTECTION=False
PIALERT_WEB_PASSWORD='8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92'
INCLUDED_SECTIONS=['internet','new_devices','down_devices','events']
SCAN_CYCLE_MINUTES=5
DAYS_TO_KEEP_EVENTS=90
# Used for generating links in emails. Make sure not to add a trailing slash!
REPORT_DASHBOARD_URL='http://pi.alert'
PIALERT_PATH = '/home/pi/pialert'
DB_PATH = PIALERT_PATH + '/db/pialert.db'
LOG_PATH = PIALERT_PATH + '/log'
VENDORS_DB = '/usr/share/arp-scan/ieee-oui.txt'
PRINT_LOG = False
SMTP_SERVER = 'smtp.gmail.com'
SMTP_PORT = 587
SMTP_USER = 'user@gmail.com'
SMTP_PASS = 'password'
# Email
#---------------------------
REPORT_MAIL=False
SMTP_SERVER='smtp.gmail.com'
SMTP_PORT=587
REPORT_TO='user@gmail.com'
REPORT_FROM='Pi.Alert <user@gmail.com>'
SMTP_SKIP_LOGIN=False
SMTP_USER='user@gmail.com'
SMTP_PASS='password'
SMTP_SKIP_TLS=False
REPORT_MAIL = False
REPORT_FROM = 'Pi.Alert <' + SMTP_USER +'>'
REPORT_TO = 'user@gmail.com'
REPORT_DEVICE_URL = 'http://pi.alert/deviceDetails.php?mac='
# QUERY_MYIP_SERVER = 'https://diagnostic.opendns.com/myip'
QUERY_MYIP_SERVER = 'http://ipv4.icanhazip.com'
DDNS_ACTIVE = False
DDNS_DOMAIN = 'your_domain.freeddns.org'
DDNS_USER = 'dynu_user'
DDNS_PASSWORD = 'A0000000B0000000C0000000D0000000'
DDNS_UPDATE_URL = 'https://api.dynu.com/nic/update?'
# Webhooks
#---------------------------
REPORT_WEBHOOK=False
WEBHOOK_URL='http://n8n.local:5555/webhook-test/aaaaaaaa-aaaa-aaaa-aaaaa-aaaaaaaaaaaa'
WEBHOOK_PAYLOAD='json' # webhook payload data format for the "body > attachements > text" attribute
# in https://github.com/jokob-sk/Pi.Alert/blob/main/docs/webhook_json_sample.json
# supported values: 'json', 'html' or 'text'
# e.g.: for discord use 'html'
WEBHOOK_REQUEST_METHOD='GET'
PIHOLE_ACTIVE = False
PIHOLE_DB = '/etc/pihole/pihole-FTL.db'
DHCP_ACTIVE = False
DHCP_LEASES = '/etc/pihole/dhcp.leases'
# Apprise
#---------------------------
REPORT_APPRISE=False
APPRISE_HOST='http://localhost:8000/notify'
APPRISE_URL='mailto://smtp-relay.sendinblue.com:587?from=user@gmail.com&name=apprise&user=user@gmail.com&pass=password&to=user@gmail.com'
# NTFY
#---------------------------
REPORT_NTFY=False
NTFY_HOST='https://ntfy.sh'
NTFY_TOPIC='replace_my_secure_topicname_91h889f28'
NTFY_USER='user'
NTFY_PASSWORD='passw0rd'
# PUSHSAFER
#---------------------------
REPORT_PUSHSAFER=False
PUSHSAFER_TOKEN='ApiKey'
# MQTT
#---------------------------
REPORT_MQTT=False
MQTT_BROKER='192.168.1.2'
MQTT_PORT=1883
MQTT_USER='mqtt'
MQTT_PASSWORD='passw0rd'
MQTT_QOS=0
MQTT_DELAY_SEC=2
# DynDNS
#---------------------------
DDNS_ACTIVE=False
DDNS_DOMAIN='your_domain.freeddns.org'
DDNS_USER='dynu_user'
DDNS_PASSWORD='A0000000B0000000C0000000D0000000'
DDNS_UPDATE_URL='https://api.dynu.com/nic/update?'
# PiHole
#---------------------------
# if enabled you need to map '/etc/pihole/pihole-FTL.db' in docker-compose.yml
PIHOLE_ACTIVE=False
# if enabled you need to map '/etc/pihole/dhcp.leases' in docker-compose.yml
DHCP_ACTIVE=False
# Pholus
#---------------------------
PHOLUS_ACTIVE=False
PHOLUS_TIMEOUT=120
PHOLUS_FORCE=False
PHOLUS_DAYS_DATA=7
PHOLUS_RUN='once'
PHOLUS_RUN_TIMEOUT=600
PHOLUS_RUN_SCHD='0 4 * * *'
#-------------------IMPORTANT INFO-------------------#
# This file is ingested by a python script, so if #
# modified it needs to use python syntax #
#-------------------IMPORTANT INFO-------------------#

View File

@@ -1,3 +0,0 @@
VERSION = '2.60'
VERSION_YEAR = '2021'
VERSION_DATE = '2021-01-20'

BIN
db/pialert.db Normal file → Executable file

Binary file not shown.

50
docker-compose.yml Executable file
View File

@@ -0,0 +1,50 @@
version: "3"
services:
pialert:
privileged: true
build: .
container_name: pialert
network_mode: "host"
restart: unless-stopped
volumes:
- ${APP_DATA_LOCATION}/pialert_dev/config:/home/pi/pialert/config
# - ${APP_DATA_LOCATION}/pialert/config:/home/pi/pialert/config
- ${APP_DATA_LOCATION}/pialert_dev/db:/home/pi/pialert/db
# - ${APP_DATA_LOCATION}/pialert/db:/home/pi/pialert/db
# (optional) useful for debugging if you have issues setting up the container
- ${LOGS_LOCATION}:/home/pi/pialert/front/log
# ---------------------------------------------------------------------------
# DELETE START anyone trying to use this file: comment out / delete BELOW lines, they are only for development purposes
- ${APP_DATA_LOCATION}/pialert/dhcp_samples/dhcp1.leases:/mnt/dhcp1.leases
- ${APP_DATA_LOCATION}/pialert/dhcp_samples/dhcp2.leases:/mnt/dhcp2.leases
# - ${DEV_LOCATION}/back/pialert.py:/home/pi/pialert/back/pialert.py
- ${DEV_LOCATION}/pialert:/home/pi/pialert/pialert
# - ${DEV_LOCATION}/back/report_template.html:/home/pi/pialert/back/report_template.html
# - ${DEV_LOCATION}/back/report_template_new_version.html:/home/pi/pialert/back/report_template_new_version.html
# - ${DEV_LOCATION}/back/report_template.txt:/home/pi/pialert/back/report_template.txt
- ${DEV_LOCATION}/pholus:/home/pi/pialert/pholus
- ${DEV_LOCATION}/dockerfiles:/home/pi/pialert/dockerfiles
- ${APP_DATA_LOCATION}/pialert/php.ini:/etc/php/7.4/fpm/php.ini
# - ${DEV_LOCATION}/front/api:/home/pi/pialert/front/api
- ${DEV_LOCATION}/front/css:/home/pi/pialert/front/css
- ${DEV_LOCATION}/front/lib/AdminLTE:/home/pi/pialert/front/lib/AdminLTE
- ${DEV_LOCATION}/front/js:/home/pi/pialert/front/js
- ${DEV_LOCATION}/front/php:/home/pi/pialert/front/php
- ${DEV_LOCATION}/front/deviceDetails.php:/home/pi/pialert/front/deviceDetails.php
- ${DEV_LOCATION}/front/devices.php:/home/pi/pialert/front/devices.php
- ${DEV_LOCATION}/front/events.php:/home/pi/pialert/front/events.php
- ${DEV_LOCATION}/front/plugins.php:/home/pi/pialert/front/plugins.php
- ${DEV_LOCATION}/front/help_faq.php:/home/pi/pialert/front/help_faq.php
- ${DEV_LOCATION}/front/index.php:/home/pi/pialert/front/index.php
- ${DEV_LOCATION}/front/maintenance.php:/home/pi/pialert/front/maintenance.php
- ${DEV_LOCATION}/front/network.php:/home/pi/pialert/front/network.php
- ${DEV_LOCATION}/front/presence.php:/home/pi/pialert/front/presence.php
- ${DEV_LOCATION}/front/settings.php:/home/pi/pialert/front/settings.php
- ${DEV_LOCATION}/front/plugins:/home/pi/pialert/front/plugins
# DELETE END anyone trying to use this file: comment out / delete ABOVE lines, they are only for development purposes
# ---------------------------------------------------------------------------
environment:
- TZ=${TZ}
- PORT=${PORT}
- HOST_USER_ID=${HOST_USER_ID}
- HOST_USER_GID=${HOST_USER_GID}

File diff suppressed because it is too large Load Diff

229
dockerfiles/README.md Executable file
View File

@@ -0,0 +1,229 @@
[![Docker](https://img.shields.io/github/actions/workflow/status/jokob-sk/Pi.Alert/docker_prod.yml?label=Build&logo=GitHub)](https://github.com/jokob-sk/Pi.Alert/actions/workflows/docker_prod.yml)
[![GitHub Committed](https://img.shields.io/github/last-commit/jokob-sk/Pi.Alert?color=40ba12&label=Committed&logo=GitHub&logoColor=fff)](https://github.com/jokob-sk/Pi.Alert)
[![Docker Size](https://img.shields.io/docker/image-size/jokobsk/pi.alert?label=Size&logo=Docker&color=0aa8d2&logoColor=fff)](https://hub.docker.com/r/jokobsk/pi.alert)
[![Docker Pulls](https://img.shields.io/docker/pulls/jokobsk/pi.alert?label=Pulls&logo=docker&color=0aa8d2&logoColor=fff)](https://hub.docker.com/r/jokobsk/pi.alert)
[![Docker Pushed](https://img.shields.io/badge/dynamic/json?color=0aa8d2&logoColor=fff&label=Pushed&query=last_updated&url=https%3A%2F%2Fhub.docker.com%2Fv2%2Frepositories%2Fjokobsk%2Fpi.alert%2F&logo=docker&link=http://left&link=https://hub.docker.com/repository/docker/jokobsk/pi.alert)](https://hub.docker.com/r/jokobsk/pi.alert)
# 🐳 A docker image for Pi.Alert
🐳 [Docker hub](https://registry.hub.docker.com/r/jokobsk/pi.alert) | 📄 [Dockerfile](https://github.com/jokob-sk/Pi.Alert/blob/main/Dockerfile) | 📚 [Docker instructions](https://github.com/jokob-sk/Pi.Alert/blob/main/dockerfiles/README.md) | 🆕 [Release notes](https://github.com/jokob-sk/Pi.Alert/releases)
<a href="https://raw.githubusercontent.com/jokob-sk/Pi.Alert/main/docs/img/devices_split.png" target="_blank">
<img src="https://raw.githubusercontent.com/jokob-sk/Pi.Alert/main/docs/img/devices_split.png" width="300px" />
</a>
<a href="https://raw.githubusercontent.com/jokob-sk/Pi.Alert/main/docs/img/network.png" target="_blank">
<img src="https://raw.githubusercontent.com/jokob-sk/Pi.Alert/main/docs/img/network.png" width="300px" />
</a>
## 📕 Basic Usage
- You will have to run the container on the host network, e.g:
```yaml
docker run -d --rm --network=host \
-v local/path/pialert/config:/home/pi/pialert/config \
-v local/path/pialert/db:/home/pi/pialert/db \
-e TZ=Europe/Berlin \
-e PORT=20211 \
jokobsk/pi.alert:latest
```
- The initial scan can take up-to 15min (with 50 devices and MQTT). Subsequent ones 3 and 5 minutes so wait that long for all of the scans to run.
### Docker environment variables
| Variable | Description | Default |
| :------------- |:-------------| -----:|
| `PORT` |Port of the web interface | `20211` |
|`TZ` |Time zone to display stats correctly. Find your time zone [here](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) | `Europe/Berlin` |
|`HOST_USER_GID` |User ID (UID) to map the user in the container to a server user with sufficient read&write permissions on the mapped files | `1000` |
|`HOST_USER_ID` |User Group ID (GID) to map the user group in the container to a server user group with sufficient read&write permissions on the mapped files | `1000` |
### Docker paths
| | Path | Description |
| :------------- | :------------- |:-------------|
| **Required** | `:/home/pi/pialert/config` | Folder which will contain the `pialert.conf` file (see below for details) |
| **Required** | `:/home/pi/pialert/db` | Folder which will contain the `pialert.db` file |
|Optional| `:/home/pi/pialert/front/log` | Logs folder useful for debugging if you have issues setting up the container |
|Optional| `:/etc/pihole/pihole-FTL.db` | PiHole's `pihole-FTL.db` database file. Required if you want to use PiHole |
|Optional| `:/etc/pihole/dhcp.leases` | PiHole's `dhcp.leases` file. Required if you want to use PiHole |
|Optional| `:/home/pi/pialert/front/api` | A simple [API endpoint](https://github.com/jokob-sk/Pi.Alert/blob/main/docs/API.md) containing static (but regularly updated) json and other files. |
### Config (`pialert.conf`)
- If unavailable, the app generates a default `pialert.conf` and `pialert.db` file on the first run.
- The preferred way is to manage the configuration via the Settings section in the UI.
- You can modify [pialert.conf](https://github.com/jokob-sk/Pi.Alert/tree/main/config) directly, if needed.
#### Important settings
These are the most important settings to get at least some output in your Devices screen. Usually, only one approach is used, but you should be able to combine these approaches.
##### For arp-scan: ENABLE_ARPSCAN, SCAN_SUBNETS
- ❗ To use the arp-scan method, you need to set the `SCAN_SUBNETS` variable.
* The adapter will probably be `eth0` or `eth1`. (Run `iwconfig` to find your interface name(s))
* Specify the network filter (which **significantly** speeds up the scan process). For example, the filter `192.168.1.0/24` covers IP ranges 192.168.1.0 to 192.168.1.255.
* Examples for one and two subnets (❗ Note the `['...', '...']` format):
* One subnet: `SCAN_SUBNETS = ['192.168.1.0/24 --interface=eth0']`
* Two subnets: `SCAN_SUBNETS = ['192.168.1.0/24 --interface=eth0', '192.168.1.0/24 --interface=eth1 -vlan=107']`
* More documentation on how to e.g. [setup vlans & limitations](https://github.com/jokob-sk/Pi.Alert/blob/main/docs/SUBNETS.md)
##### For pihole: PIHOLE_ACTIVE, DHCP_ACTIVE
* `PIHOLE_ACTIVE`: You need to map `:/etc/pihole/pihole-FTL.db in the docker-compose.yml` file if you enable this setting.
* `DHCP_ACTIVE` : You need to map `:/etc/pihole/dhcp.leases in the docker-compose.yml` file if you enable this setting.
### **Common issues**
💡 Before creating a new issue, please check if a similar issue was [already resolved](https://github.com/jokob-sk/Pi.Alert/issues?q=is%3Aissue+is%3Aclosed).
**Permissions**
* If facing issues (AJAX errors, can't write to DB, empty screen, etc,) make sure permissions are set correctly, and check the logs under `/home/pi/pialert/front/log`.
* To solve permission issues you can try setting the owner and group of the `pialert.db` by executing the following on the host system: `docker exec pialert chown -R www-data:www-data /home/pi/pialert/db/pialert.db`.
* Map to local User and Group IDs. Specify the enviroment variables `HOST_USER_ID` and `HOST_USER_GID` if needed.
* If still facing issues, try to map the pialert.db file (⚠ not folder) to `:/home/pi/pialert/db/pialert.db` (see Examples below for details)
**Container restarts / crashes**
* Check the logs for details. Often a required setting for a notification method is missing.
**unable to resolve host**
* Check that your `SCAN_SUBNETS` variable is using the correct mask and `--interface` as outlined in the instructions above.
Docker-compose examples can be found below.
## 📄 Examples
### Example 1
```yaml
version: "3"
services:
pialert:
container_name: pialert
image: "jokobsk/pi.alert:latest"
network_mode: "host"
restart: unless-stopped
volumes:
- local/path/pialert/config:/home/pi/pialert/config
- local/path/pialert/db:/home/pi/pialert/db
# (optional) useful for debugging if you have issues setting up the container
- local/path/logs:/home/pi/pialert/front/log
environment:
- TZ=Europe/Berlin
- HOST_USER_ID=1000
- HOST_USER_GID=1000
- PORT=20211
```
To run the container execute: `sudo docker-compose up -d`
### Example 2
Example by [SeimuS](https://github.com/SeimusS).
```yaml
pialert:
container_name: PiAlert
hostname: PiAlert
privileged: true
image: jokobsk/pi.alert:latest
environment:
- TZ=Europe/Bratislava
restart: always
volumes:
- ./pialert/pialert_db:/home/pi/pialert/db
- ./pialert/pialert_config:/home/pi/pialert/config
network_mode: host
```
To run the container execute: `sudo docker-compose up -d`
### Example 3
`docker-compose.yml`
```yaml
version: "3"
services:
pialert:
container_name: pialert
image: "jokobsk/pi.alert:latest"
network_mode: "host"
restart: unless-stopped
volumes:
- ${APP_DATA_LOCATION}/pialert/config:/home/pi/pialert/config
- ${APP_DATA_LOCATION}/pialert/db/pialert.db:/home/pi/pialert/db/pialert.db
# (optional) useful for debugging if you have issues setting up the container
- ${LOGS_LOCATION}:/home/pi/pialert/front/log
environment:
- TZ=${TZ}
- HOST_USER_ID=${HOST_USER_ID}
- HOST_USER_GID=${HOST_USER_GID}
- PORT=${PORT}
```
`.env` file
```yaml
#GLOBAL PATH VARIABLES
APP_DATA_LOCATION=/path/to/docker_appdata
APP_CONFIG_LOCATION=/path/to/docker_config
LOGS_LOCATION=/path/to/docker_logs
#ENVIRONMENT VARIABLES
TZ=Europe/Paris
HOST_USER_ID=1000
HOST_USER_GID=1000
PORT=20211
#DEVELOPMENT VARIABLES
DEV_LOCATION=/path/to/local/source/code
```
To run the container execute: `sudo docker-compose --env-file /path/to/.env up`
### Example 4
Courtesy of [pbek](https://github.com/pbek). The volume `pialert_db` is used by the db directory. The two config files are mounted directly from a local folder to their places in the config folder. You can backup the `docker-compose.yaml` folder and the docker volumes folder.
```yaml
pialert:
image: jokobsk/pi.alert
ports:
- "80:20211/tcp"
environment:
- TZ=Europe/Vienna
networks:
local:
ipv4_address: 192.168.1.2
restart: unless-stopped
volumes:
- pialert_db:/home/pi/pialert/db
- ./pialert/pialert.conf:/home/pi/pialert/config/pialert.conf
```
## 🏅 Recognitions
Big thanks to <a href="https://github.com/Macleykun">@Macleykun</a> for help and tips&tricks for Dockerfile(s):
<a href="https://github.com/Macleykun">
<img src="https://avatars.githubusercontent.com/u/26381427?size=50">
</a>
## ☕ Support me
<a href="https://github.com/sponsors/jokob-sk" target="_blank"><img src="https://i.imgur.com/X6p5ACK.png" alt="Sponsor Me on GitHub" style="height: 30px !important;width: 117px !important;" width="150px" ></a>
<a href="https://www.buymeacoffee.com/jokobsk" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 30px !important;width: 117px !important;" width="117px" height="30px" ></a>
<a href="https://www.patreon.com/user?u=84385063" target="_blank"><img src="https://upload.wikimedia.org/wikipedia/commons/thumb/8/82/Patreon_logo_with_wordmark.svg/512px-Patreon_logo_with_wordmark.svg.png" alt="Support me on patreon" style="height: 30px !important;width: 117px !important;" width="117px" ></a>
BTC: 1N8tupjeCK12qRVU2XrV17WvKK7LCawyZM

33
dockerfiles/start.sh Executable file
View File

@@ -0,0 +1,33 @@
#!/bin/sh
/home/pi/pialert/dockerfiles/user-mapping.sh
# # if custom variables not set we do not need to do anything
# if [ -n "${TZ}" ]; then
# FILECONF=/home/pi/pialert/config/pialert.conf
# if [ -f "$FILECONF" ]; then
# sed -ie "s|Europe/Berlin|${TZ}|g" /home/pi/pialert/config/pialert.conf
# else
# sed -ie "s|Europe/Berlin|${TZ}|g" /home/pi/pialert/back/pialert.conf_bak
# fi
# fi
if [ -n "${PORT}" ]; then
sed -ie 's/listen 20211/listen '${PORT}'/g' /etc/nginx/sites-available/default
fi
# I hope this will fix DB permission issues going forward
FILEDB=/home/pi/pialert/db/pialert.db
if [ -f "$FILEDB" ]; then
chown -R www-data:www-data /home/pi/pialert/db/pialert.db
fi
chmod -R a+rw /home/pi/pialert/front/log
chmod -R a+rw /home/pi/pialert/config
/etc/init.d/php7.4-fpm start
/etc/init.d/nginx start
# cron -f
#python /home/pi/pialert/back/pialert.py
# echo "[DEBUG] DATA MONKEY VERSION ..."
python /home/pi/pialert/pialert/

29
dockerfiles/user-mapping.sh Executable file
View File

@@ -0,0 +1,29 @@
#!/bin/bash
if [ -z "${USER}" ]; then
echo "We need USER to be set!"; exit 100
fi
# if both not set we do not need to do anything
if [ -z "${HOST_USER_ID}" -a -z "${HOST_USER_GID}" ]; then
echo "Nothing to do here." ; exit 0
fi
# reset user_?id to either new id or if empty old (still one of above
# might not be set)
USER_ID=${HOST_USER_ID:=$USER_ID}
USER_GID=${HOST_USER_GID:=$USER_GID}
LINE=$(grep -F "${USER}" /etc/passwd)
# replace all ':' with a space and create array
array=( ${LINE//:/ } )
# home is 5th element
USER_HOME=${array[4]}
sed -i -e "s/^${USER}:\([^:]*\):[0-9]*:[0-9]*/${USER}:\1:${USER_ID}:${USER_GID}/" /etc/passwd
sed -i -e "s/^${USER}:\([^:]*\):[0-9]*/${USER}:\1:${USER_GID}/" /etc/group
chown -R ${USER_ID}:${USER_GID} ${USER_HOME}
exec su - "${USER}"

98
docs/API.md Executable file
View File

@@ -0,0 +1,98 @@
## API endpoints
PiAlert comes with a simple API. These API endpoints are static files, that are periodically updated based on your settings.
### When are the endpoints updated
Once you enable the API (`ENABLE_API` setting), the endpoints are updated when objects in the API endpoints are changed:
### Location of the endpoints
In the container, these files are located under the `/home/pi/pialert/front/api/` folder and thus on the `<pialert_url>/api/<File name>` url.
### Available endpoints
You can access the following files:
| File name | Description |
|----------------------|----------------------|
| `notification_text.txt` | The plain text version of the last notification. |
| `notification_text.html` | The full HTML of the last email notification. |
| `notification_json_final.json` | The json version of the last notification (e.g. used for webhooks - [sample JSON](https://github.com/jokob-sk/Pi.Alert/blob/main/back/webhook_json_sample.json)). |
| `table_devices.json` | The current (at the time of the last update as mentioned above on this page) state of all of the available Devices detected by the app. |
| `table_nmap_scan.json` | The current state of the discovered ports by the regular NMAP scans. |
| `table_pholus_scan.json` | The latest state of the [pholus](https://github.com/jokob-sk/Pi.Alert/tree/main/pholus) (A multicast DNS and DNS Service Discovery Security Assessment Tool) scan results. |
| `table_plugins_events.json` | The list of the unprocessed (pending) notification events (plugins_events DB table). |
| `table_plugins_history.json` | The list of notification events history. |
| `table_plugins_objects.json` | The content of the plugins_objects table. Find more info on the [Plugin system here](https://github.com/jokob-sk/Pi.Alert/tree/main/front/plugins)|
| `language_strings.json` | The content of the language_strings table, which in turn is loaded from the plugins `config.json` definitions. |
| `table_custom_endpoint.json` | A custom endpoint generated by the SQL query specified by the `API_CUSTOM_SQL` setting. |
| `table_settings.json` | The content of the settings table. |
Current/latest state of the aforementioned files depends on your settings.
### JSON Data format
The endpoints starting with the `table_` prefix contain most, if not all, data contained in the corresponding database table. The common format for those is:
```JSON
{
"data": [
{
"db_column_name": "data",
"db_column_name2": "data2"
},
{
"db_column_name": "data3",
"db_column_name2": "data4"
}
]
}
```
Example JSON of the `table_devices.json` endpoint with two Devices (database rows):
```JSON
{
"data": [
{
"dev_MAC": "Internet",
"dev_Name": "Net - Huawei",
"dev_DeviceType": "Router",
"dev_Vendor": null,
"dev_Group": "Always on",
"dev_FirstConnection": "2021-01-01 00:00:00",
"dev_LastConnection": "2021-01-28 22:22:11",
"dev_LastIP": "192.168.1.24",
"dev_StaticIP": 0,
"dev_PresentLastScan": 1,
"dev_LastNotification": "2023-01-28 22:22:28.998715",
"dev_NewDevice": 0,
"dev_Network_Node_MAC_ADDR": "",
"dev_Network_Node_port": "",
"dev_Icon": "globe"
},
{
"dev_MAC": "a4:8f:ff:aa:ba:1f",
"dev_Name": "Net - USG",
"dev_DeviceType": "Firewall",
"dev_Vendor": "Ubiquiti Inc",
"dev_Group": "",
"dev_FirstConnection": "2021-02-12 22:05:00",
"dev_LastConnection": "2021-07-17 15:40:00",
"dev_LastIP": "192.168.1.1",
"dev_StaticIP": 1,
"dev_PresentLastScan": 1,
"dev_LastNotification": "2021-07-17 15:40:10.667717",
"dev_NewDevice": 0,
"dev_Network_Node_MAC_ADDR": "Internet",
"dev_Network_Node_port": 1,
"dev_Icon": "shield-halved"
}
]
}
```

47
docs/DATABASE.md Executable file
View File

@@ -0,0 +1,47 @@
# A high-level description of the datbase structure
⚠ Disclaimer: As I'm not the original author, some of the information might be inaccurate. Feel free to submit a PR to correct anything within this page or documentation in general.
The MAC address is used as a foreign key in most cases.
## 🔍Tables overview
| Table name | Description | Sample data |
|----------------------|----------------------| ----------------------|
| CurrentScan | Result of the current scan | ![Screen1][screen1] |
| Devices | The main devices database that also contains the Network tree mappings. | ![Screen2][screen2] |
| DHCP_Leases | Used for importing devices from DHCP_Leases files. Also leveraged by some plugins. | ![Screen3][screen3] |
| Events | Used to collect connection/disconnection events. | ![Screen4][screen4] |
| Nmap_Scan | Contains results of the scheduled Nmap scan, taht is also displayed in the Nmap tab on each device. | ![Screen5][screen5] |
| Online_History | Used to display the `Device presence over time` chart | ![Screen6][screen6] |
| Parameters | Used to pass values between the frontend and backend. | ![Screen7][screen7] |
| Pholus_Scan | Scan results of the Pholus python network penetration script. | ![Screen8][screen8] |
| PiHole_Network | Table to copy the devices from the PiHole database | ![Screen9][screen9] |
| Plugins_Events | For capturing events exposed by a plugin via the `last_result.log` file. If unique then saved into the `Plugins_Objects` table. Entries are deleted once processed and stored in the `Plugins_History` and/or `Plugins_Objects` tables. | ![Screen10][screen10] |
| Plugins_History | History of all entries from the `Plugins_Events` table | ![Screen11][screen11] |
| Plugins_Language_Strings | Language strings colelcted from the plugin `config.json` files used for string resolution in the frontend. | ![Screen12][screen12] |
| Plugins_Objects | Unique objects detected by individual plugins. | ![Screen13][screen13] |
| ScanCycles | (obsolete) Used to determine and identify different scan cycles. | ![Screen14][screen14] |
| Sessions | Used to display sessions in the charts | ![Screen15][screen15] |
| Settings | Database representation of the sum of all settings from `pialert.conf` and plugins coming from `config.json` files. | ![Screen16][screen16] |
[screen1]: /docs/img/DATABASE/CurrentScan.png
[screen2]: /docs/img/DATABASE/Devices.png
[screen3]: /docs/img/DATABASE/DHCP_Leases.png
[screen4]: /docs/img/DATABASE/Events.png
[screen5]: /docs/img/DATABASE/Nmap_Scan.png
[screen6]: /docs/img/DATABASE/Online_History.png
[screen7]: /docs/img/DATABASE/Parameters.png
[screen8]: /docs/img/DATABASE/Pholus_Scan.png
[screen9]: /docs/img/DATABASE/PiHole_Network.png
[screen10]: /docs/img/DATABASE/Plugins_Events.png
[screen11]: /docs/img/DATABASE/Plugins_History.png
[screen12]: /docs/img/DATABASE/Plugins_Language_Strings.png
[screen13]: /docs/img/DATABASE/Plugins_Objects.png
[screen14]: /docs/img/DATABASE/ScanCycles.png
[screen15]: /docs/img/DATABASE/Sessions.png
[screen16]: /docs/img/DATABASE/Settings.png

31
docs/DEBUG_INVALID_JSON.md Executable file
View File

@@ -0,0 +1,31 @@
# How to debug the Invalid JSON response error
Check the the HTTP response of the failing backend call by following these steps:
- Open developer console in your browser (usually, e. g. for Chrome, key F12 on the keyboard).
- Follow the steps in this screenshot:
![F12DeveloperConsole][F12DeveloperConsole]
- Copy the URL causing the error and enter it in the address bar of your browser directly and hit enter. The copied URLs could look something like this (notice the query strings at the end):
- `http://<pialert URL>:20211/php/server/devices.php?action=getDevicesTotals`
- `http://<pialert URL>:20211/php/server/devices.php?action=getDevicesList&status=all`
- Post the error response in the existing issue thread on GitHub or create a new issue and include the redacted response of the failing query.
For reference, the above queries should return results in the following format:
First URL:
![array][array]
Second URL:
![json][json]
You can copy and paste any JSON result (result of the second query) into an online JSON checker, such as [this one](https://jsonchecker.com/) to check if it's valid.
[F12DeveloperConsole]: ./img/DEBUG/Invalid_JSON_repsonse_debug.png "F12DeveloperConsole"
[array]: ./img/DEBUG/array_result_example.png "array"
[json]: ./img/DEBUG/JSON_result_example.png "json"

2
docs/DEVICE_MANAGEMENT.md Normal file → Executable file
View File

@@ -18,7 +18,7 @@ To edit device information:
- **Owner**: Device owner (The list is self-populated with existing owners)
- **Type**: Select a device type from the dropdown list (Smartphone, Table,
Laptop, TV, router, ....) or type a new device type
- **Vendor**: Automatically updated by Pi.Alert
- **Vendor**: Automatically updated by Pi.Alert when empty or unknown
- **Favorite**: Mark the device as favorite and then it will appears at the
begining of the device list
- **Group**: Select a grouper ('Always on', 'Personal', Friends') or type

30
docs/ICONS.md Executable file
View File

@@ -0,0 +1,30 @@
## Icons overview
Icons are used to visually distinguish devices in the app in most of the device listing tables and the [network tree](/docs/NETWORK_TREE.md). Currently only free [Font Awesome](https://fontawesome.com/search?o=r&m=free) icons (up-to v 6.4.0) are supported (I have an unblockable [sponsorship goal](https://github.com/sponsors/jokob-sk) to add the material design icon pack).
![Raspberry Pi with a brand icon](/docs/img/ICONS/devices-icons.png)
## ⚙ How to use custom device Icons
You can assign icons individually on each device in the Details tab.
![Raspberry Pi device details](/docs/img/ICONS/device-icon.png)
- You can click into the `Icon` field or click the Pencil (2) icon in the above screenshot to enter any text. Only [free Font Awesome](https://fontawesome.com/search?o=r&m=free) icons in the following format will work:
1. For any value that is only prefixed with `fa-`, you can enter the value directly, such as `server`, `tv`, `ethernet`.
2. If you want to add another classname, e.g. `fa-brands`, you can enter `brands fa-[fontawesome-icon-name]`, so for `apple` that is using the syntax`fa-brands fa-apple`, you would enter `brands fa-apple`.
- If you want to mass-apply an icon to all devices of the same device type (Field marked (4) in the above screenshot), you can click the copy button (Marked (1) in the above screenshot). A confirmation prompt is displayed. If you proceed, icons of all devices set to the same device type as the current device, will be overwritten with the current device's icon.
- The dropdown (3) contains all icons already used in the app for device icons. You need to navigate away or refresh the page once you add a new icon.
## 🌟 Pro Font Awesome icons
If you own the premium package of Font Awesome icons you can mount it in your Docker container the following way:
```yaml
/font-awesome:/home/pi/pialert/front/lib/AdminLTE/bower_components/font-awesome:ro
```
You can use the full range of Font Awesome icons afterwards.

View File

@@ -1,299 +0,0 @@
# Pi.Alert Installation Guide
<!--- --------------------------------------------------------------------- --->
Initially designed to run on a Raspberry PI, probably it can run on many other
Linux distributions.
Estimated time: 20'
### Dependencies
| Dependency | Comments |
| ---------- | -------------------------------------------------------- |
| Lighttpd | Probably works on other webservers / not tested |
| arp-scan | Required for Scan Method 1 |
| Pi.hole | Optional. Scan Method 2. Check devices doing DNS queries |
| dnsmasq | Optional. Scan Method 3. Check devices using DHCP server |
| IEEE HW DB | Necessary to identified Device vendor |
# Installation process
<!--- --------------------------------------------------------------------- --->
## Raspberry Setup
<!--- --------------------------------------------------------------------- --->
1.1 - Install 'Raspberry Pi OS'
- Instructions https://www.raspberrypi.org/documentation/installation/installing-images/
- *Lite version (without Descktop) is enough for Pi.Alert*
1.2 - Activate ssh
- Create a empty file with name 'ssh' in the boot partition of the SD
1.3 - Start the raspberry
1.4 - Login to the system with pi user
```
user: pi
password: raspberry
```
1.5 - Change the default password of pi user
```
passwd
```
1.6 - Setup the basic configuration
```
sudo raspi-config
```
1.7 - Optionally, configure a static IP in raspi-config
1.8 - Update the OS
```
sudo apt-get update
sudo apt-get upgrade
sudo shutdown -r now
```
## Pi-hole Setup (optional)
<!--- --------------------------------------------------------------------- --->
2.1 - Links & Doc
- https://pi-hole.net/
- https://github.com/pi-hole/pi-hole
- https://github.com/pi-hole/pi-hole/#one-step-automated-install
2.2 - Login to the system with pi user
2.3 - Install Pi-hole
```
curl -sSL https://install.pi-hole.net | bash
```
- Select "Install web admin interface"
- Select "Install web server lighttpd"
2.4 - Configure Pi-hole admin password
```
pihole -a -p PASSWORD
```
2.5 - Connect to web admin panel
```
hostname -I
```
- http://192.168.1.x/admin/
- (*replace 192.168.1.x with your Raspberry IP*)
2.6 - Activate DHCP server
- Pi-hole admin portal -> Settings -> DHCP -> Mark "DHCP server enabled"
2.7 - Add pi.alert DNS Record
```
hostname -I
```
- Pi-hole admin portal -> Local DNS -> DNS Records -> Add new domain /IP
- pi.alert 192.168.1.x
- (*replace 192.168.1.x with your Raspberry IP*)
2.8 - Deactivate your current DHCP Server (*Normaly at your router or AP*)
2.9 - Renew your computer IP to unsure you are using the new DHCP and DNS server
- Windows: cmd -> ipconfig /renew
- Linux: shell -> sudo dhclient -r; sudo dhclient
- Mac: Apple menu -> System Preferences -> Network -> Select the network
-> Advanced -> TCP/IP -> Renew DHCP Lease
## Lighttpd & PHP
<!--- --------------------------------------------------------------------- --->
If you have installed Pi.hole, lighttpd and PHP are already installed and this
block is not necessary
3.1 - Install lighttpd
```
sudo apt-get install lighttpd -y
```
3.2 - If Pi.Alert will be the only site available in this webserver, you can
redirect the default server page to pialert subfolder
```
sudo mv /var/www/html/index.lighttpd.html /var/www/html/index.lighttpd.html.old
sudo ln -s ~/pialert/install/index.html /var/www/html/index.html
```
3.3 - Install PHP
```
sudo apt-get install php php-cgi php-fpm php-sqlite3 -y
```
3.4 - Activate PHP
```
sudo lighttpd-enable-mod fastcgi-php
sudo /etc/init.d/lighttpd restart
```
## arp-scan & Python
<!--- --------------------------------------------------------------------- --->
4.1 - Install arp-scan utility and test
```
sudo apt-get install arp-scan -y
sudo arp-scan -l
```
4.2 - Test Python
New versions of 'Raspberry Pi OS' includes Python. You can check that
Python is installed with the command:
```
python -V
```
New versions of Ubuntu includes Python 3. You can choose between use `python3`
command or to install Python 2 (that includes `python` command).
If you prefer to use Python 3, in the next installation block, you must update
`pialert.cron` file with the correct command: `python3` instead of `python`.
```
python3 -V
```
4.3 - If Python is not installed in your system, you can install it with this
command:
```
sudo apt-get install python
```
Or this one if you prefer Python 3:
```
sudo apt-get install python3
```
## Pi.Alert
<!--- --------------------------------------------------------------------- --->
5.1 - Download Pi.Alert and uncompress
```
cd
curl -LO https://github.com/pucherot/Pi.Alert/raw/main/tar/pialert_latest.tar
tar xvf pialert_latest.tar
rm pialert_latest.tar
```
5.2 - Public the front portal
```
sudo ln -s ~/pialert/front /var/www/html/pialert
```
5.3 - Configure web server redirection
If you have configured your DNS server (Pi.hole or other) to resolve pi.alert
with the IP of your raspberry, youy must configure lighttpd to redirect these
requests to the correct pialert web folder
```
sudo cp ~/pialert/install/pialert_front.conf /etc/lighttpd/conf-available
sudo ln -s ../conf-available/pialert_front.conf /etc/lighttpd/conf-enabled/pialert_front.conf
sudo /etc/init.d/lighttpd restart
```
5.4 - If you want to use email reporting with gmail
- Go to your Google Account https://myaccount.google.com/
- On the left navigation panel, click Security
- On the bottom of the page, in the Less secure app access panel,
click Turn on access
- Click Save button
5.5 - Config Pialert parameters
```
sed -i "s,'/home/pi/pialert','$HOME/pialert'," ~/pialert/config/pialert.conf
nano ~/pialert/config/pialert.conf
```
- If you want to use email reporting, configure this parameters
```ini
REPORT_MAIL = True
SMTP_USER = 'user@gmail.com'
SMTP_PASS = 'password'
REPORT_TO = 'user@gmail.com'
```
- If you want to update your Dynamic DNS, configure this parameters
```ini
DDNS_ACTIVE = True
DDNS_DOMAIN = 'your_domain.freeddns.org'
DDNS_USER = 'dynu_user'
DDNS_PASSWORD = 'A0000000B0000000C0000000D0000000'
DDNS_UPDATE_URL = 'https://api.dynu.com/nic/update?'
```
- If you have installed Pi.hole and DHCP, activate this parameters
```ini
PIHOLE_ACTIVE = True
DHCP_ACTIVE = True
```
5.6 - Update vendors DB
```
python ~/pialert/back/pialert.py update_vendors
```
or
```
python3 ~/pialert/back/pialert.py update_vendors
```
5.7 - Test Pi.Alert Scan
```
python ~/pialert/back/pialert.py internet_IP
python ~/pialert/back/pialert.py 1
```
or
```
python3 ~/pialert/back/pialert.py internet_IP
python3 ~/pialert/back/pialert.py 1
```
5.8 - Update crontab template with python3
If you prefer to use Python 3 (installed in the previous block), you must
update `pialert.cron` file with the correct command: `python3` instead of
`python`
```
sed -i 's/python/python3/g' ~/pialert/install/pialert.cron
```
5.9 - Add crontab jobs
```
(crontab -l 2>/dev/null; cat ~/pialert/install/pialert.cron) | crontab -
```
5.10 - Add permissions to the web-server user
```
sudo chgrp -R www-data ~/pialert/db
chmod -R 770 ~/pialert/db
```
5.11 - Check DNS record for pi.alert (explained in point 2.7 of Pi.hole
installation)
- Add pi.alert DNS Record
```
hostname -I
```
- Pi-hole admin portal -> Local DNS -> DNS Records -> Add new domain /IP
- pi.alert 192.168.1.x
- (*replace 192.168.1.x with your Raspberry IP*)
5.12 - Use admin panel to configure the devices
- http://pi.alert/
- http://192.168.1.x/pialert/
- (*replace 192.168.1.x with your Raspberry IP*)
## Device Management
<!--- --------------------------------------------------------------------- --->
- [Device Management instructions](./DEVICE_MANAGEMENT.md)
### License
GPL 3.0
[Read more here](../LICENSE.txt)
### Contact
pi.alert.application@gmail.com

54
docs/NETWORK_TREE.md Executable file
View File

@@ -0,0 +1,54 @@
## How to setup your Network page
Make sure you have a root device with the MAC `Internet` (No other MAC addresses are currently supported as the root node).
## ⚡Quick setup:
* Go to Devices > Device Details.
* Find the device(s) you want to use as network devices (network nodes).
* Set the Type of such a device to one of the following: AP, Firewall, Gateway, PLC, Powerline, Router, Switch, USB LAN Adapter, USB WIFI Adapter and WLAN.
* Save and go to Network where the devices you've marked as network devices (by selecting the Type as mentioned above) will show up as tabs.
* You can now assign the Unassigend devices to the correct network node.
## 🔍Detailed example:
In this example you will setup a device named `rapberrypi` as a `Switch` in our network.
### 1) Device details page
- Go to the `Devices` (1) page:
![Device details](/docs/img/NETWORK_TREE/Device_Details_Network_Type.png)
- In the (2) `Details` tab navigate to the the `Type` (3) dropdown and select the type `Switch` (4).
> Note: Only the following device types will show up as selectable Network nodes ( = devices you can connect other devices to):
> AP, Firewall, Gateway, PLC, Powerline, Router, Switch, USB LAN Adapter, USB WIFI Adapter and WLAN.
- Assign a device to your root device from the `Node` (5) dropdown which has the MAC `Internet` (6) (Your name may differ, but the MAC needs to be set to `Internet` - this is done by default).
- Save your changes (7)
### 1) Network page
- Navigate to your `Network` (1) page:
![Network page](/docs/img/NETWORK_TREE/Network_Page.png)
- Notice the newly added `raspberrypi` (2) tab which now represents a network node, also showing up in the tree (3).
- As we asssigned the `raspberrypi` in the previous 1) Device details page section to the `Internet` parent network node in step (6), the link is also showing up in the tree diagram (4)
- We can now assign the device `(AppleTV)` (5) to this `raspberrypi` node, representing a network Switch in this example
### 1) Network page with 2 levels
- After clicking the `Assign` button in the previous section, the `(AppleTV)` (1) device is now connected to our `raspberrypi` (2).
![Network page with 2 levels](/docs/img/NETWORK_TREE/Network_Page_2_Levels.png)
- You can see the `raspberrypi` represents the Network node type `Switch` (3)
- The `(AppleTV)` to `raspberrypi` connection is also displayed in the table of `Connected devices` (4).
- You can also see that our `raspberrypi` node is connected to it's Parent network device node with the MAC `Internet` (5). This connection again shows up in the tree (6) as well.

2
docs/RAMDOM_MAC.md → docs/RANDOM_MAC.md Normal file → Executable file
View File

@@ -4,7 +4,7 @@
The latest versions of some operating systems (IOS and Android) incorporate a
new & interesting functionality to improve privacy: **Random MACs**.
This functionality allows you to **hide the true MAC** of the device and
This functionality allows you to **hide the real MAC** of the device and
**assign a random MAC** when we connect to WIFI networks.
This behavior is especially useful when connecting to WIFI's that we do not

102
docs/README.md Executable file
View File

@@ -0,0 +1,102 @@
## Documentation overview
In the app hover-over settings or fields/labels or click blue in-app ❔ (question-mark) icons to get to relevant documentation pages.
![In-app help](/docs/img/GENERAL/in-app-help.png)
There is also an in-app Help / FAQ section that should be answering frequently asked questions.
### 📥 Installation
⚠ Only tested as a [docker container - follow these instructions here](https://github.com/jokob-sk/Pi.Alert/blob/main/dockerfiles/README.md).
> Check out [leiweibau's fork](https://github.com/leiweibau/Pi.Alert/) if you want to install Pi.Alert on the server directly or original instructions for [pucherot's original code](https://github.com/pucherot/Pi.Alert/)
### 📚 Table of contents
#### Popular/Suggested
- [API endpoints details](/docs/API.md)
- [Plugin system details and how to develop your own](/front/plugins/README.md)
- [Network tree map configuration](/docs/NETWORK_TREE.md)
- [Gmail as SMTP server for sending emails](/docs/SMTP_GMAIL.md)
- [Subnets and vlans configuration for arp-scan](/docs/SUBNETS.md)
#### System Management
- [Manage devices (legacy docs)](/docs/DEVICE_MANAGEMENT.md)
- [Random MAC/MAC icon meaning (legacy docs)](/docs/RANDOM_MAC.md)
- [Custom Icons configuration and support](/docs/ICONS.md)
#### Examples
- [N8N webhook example](/docs/WEBHOOK_N8N.md)
#### Misc
- [New Version notifications](/docs/VERSIONS.md)
- [Version history (legacy)](/docs/VERSIONS_HISTORY.md)
- [Invalid JSON errors debug help](/docs/DEBUG_INVALID_JSON.md)
- [Database structure](/docs/DATABASE.md)
Feel free to suggest or submit new docs via a PR.
## 👨‍💻 Development priorities
Highest to lowest:
* Fixing core functionality bugs not solvable with workarounds
* New core functionality unlocking other opportunities (e.g.: plugins)
* Refactoring enabling faster implementation of future functionality
* UI improvements
Design philosophy: Focus on core functionality and leverage existing apps and tools to make PiAlert integratable into other workflows.
Examples:
1. Supporting apprise makes more sense than implementing multiple individual notification gateways
2. Implementing regular expressions support across settings for validation makes more sense than validating one setting with a specific expression.
UI specific requests are low priority as the framework picked by the original developer is not very extensible (and afaik doesn't support components) and has limited mobile support. Also I argue the value proposition is smaller than working on something else.
Feel free to submit PRs if interested. try to **keep the PRs small/on topic** so they are easier to review and approve.
That being said, I'd reconsider if more people and or recurring sponsors file a request 😉.
## 🙏 Feature requests
Please be as detailed as possible with **workarounds** you considered and why a native feature is the better way. This gives me better context and will make it more likely to be implemented. Ideally a feature request should be in the format "I want to be able to do XYZ so that ZYX. I considered these approaches XYZ".
## Pull-requests (PRs)
If you submit a PR please:
1. Check that your changes are backward compatible with existing installations and with a blank setup.
2. Existing features should always be preserved.
3. Keep the PR small, on-topic and don't change code that is not necessary for the PR to work
4. New features code should ideally be re-usable for different purposes, not be for a very narrow use-case.
5. New functionality should ideally be implemented via the Plugins system, if possible.
Suggested test cases:
- Blank setup with no DB or config
- Existing DB / config
- Sending a notification (e. g. Delete a device and wait for a scan to run) and testing all notification gateways, especially:
- Email, Apprise (e.g. via Telegram), webhook (e.g. via Discord), MQTT (e.g. via HomeAssitant)
- Saving settings
- Test a couple of plugins
- Check the Error log for anything unusual
Some additional context:
* Permanent settings/config is stored in the `pialert.conf` file
* Currently temporary (session?) settings are stored in the `Parameters` DB table as key - value pairs. This table is wiped during a container rebuild/restart and it's values re-initialized from cookies / session data from the browser.
## 🐛 Submitting an issue or bug
Before submitting a new issue please spend a couple of minutes on research:
* Check [🛑 Common issues](https://github.com/jokob-sk/Pi.Alert/tree/main/dockerfiles#-common-issues)
* Check [💡 Closed issues](https://github.com/jokob-sk/Pi.Alert/issues?q=is%3Aissue+is%3Aclosed) if a similar issue was solved in the past.
⚠ Please follow the pre-defined issue template to resolve your issue faster.

15
docs/SMTP_GMAIL.md Executable file
View File

@@ -0,0 +1,15 @@
## Use the Gmail SMTP server
1) Create an app password by following the instructions from Google, you need to Enable 2FA for this to work.
[https://support.google.com/accounts/answer/185833](https://support.google.com/accounts/answer/185833)
2) Specify the following settings:
```python
SMTP_SKIP_TLS=True
SMTP_FORCE_SSL=True
SMTP_PORT=465
SMTP_SERVER='smtp.gmail.com'
SMTP_PASS='16-digit passcode from google'
```

21
docs/SUBNETS.md Executable file
View File

@@ -0,0 +1,21 @@
## Subnets configuration
The arp-scan time itself depends on the number of IP addresses to check.
The number of IPs to check depends on the [network mask](https://www.calculator.net/ip-subnet-calculator.html) you set on the `SCAN_SUBNETS` setting.
For example, a `/24` mask results in 256 IPs to check, where as a `/16` mask checks around 65,536. Every IP takes a couple seconds. This means that with an incorrect configuration the arp-scan will take hours to complete instead of seconds.
- Specify the network mask. For example, the filter `192.168.1.0/24` covers IP ranges 192.168.1.0 to 192.168.1.255
- Run `iwconfig` in your container to find your interface name(s) (e.g.: `eth0`, `eth1`).
- Append e.g.: ` -vlan=107` to the interface field (e.g.: `eth0 -vlan=107`) for multiple vlans. More details in this [comment in this issue](https://github.com/jokob-sk/Pi.Alert/issues/170#issuecomment-1419902988)
### 🔍Example:
![Vlan configuration example](/docs/img/SUBNETS/subnets_vlan.png)
### Support for VLANS
Please note about the accessibility of the macvlans when they are configured on the same computer. My understanding this is a general networking behavior, but feel free to clarify via a PR/issue.
- Pi.Alert does not detect the macvlan container when it is running on the same computer.
- Pi.Alert recognizes the macvlan container when it is running on a different computer.

25
docs/VERSIONS.md Executable file
View File

@@ -0,0 +1,25 @@
## Am I running the latest released version?
Since version 23.01.14 PiAlert uses a simple timestamp-based version check to verify if a new version is available. You can check the [current and past releases here](https://github.com/jokob-sk/Pi.Alert/releases), or have a look at what I'm [currently working on](https://github.com/jokob-sk/Pi.Alert/issues/138).
If you are not on the latest version, the app will notify you, that a new released version is avialable the following way:
### 📧 Via email on a notification event
If any notification occurs and an email is sent, the email will contain a note that a new version is available. See the sample email below:
![Sample email if a new version is available](/docs/img/VERSIONS/new-version-available-email.png)
### 🆕 In the UI
In the UI via a notification Icon and via a custom message in the Maintenance section.
![UI screenshot if a new version is available](/docs/img/VERSIONS/new-version-available-maintenance.png)
For a comparison, this is how the UI looks like if you are on the latest stable image:
![UI screenshot if on latest version](/docs/img/VERSIONS/latest-version-maintenance.png)
## Implementation details
During build a [/home/pi/pialert/front/buildtimestamp.txt](https://github.com/jokob-sk/Pi.Alert/blob/092797e75ccfa8359444ad149e727358ac4da05f/Dockerfile#L44) file is created. The app then periodically checks if a new release is available with a newer timestamp in GitHub's rest-based JSON endpoint (check the `def isNewVersion():` method in `pialert.py` for details).

52
docs/VERSIONS_HISTORY.md Normal file → Executable file
View File

@@ -3,6 +3,9 @@
| Version | Description |
| ------- | --------------------------------------------------------------- |
| v3.00 | Major set of New features & Enhancements |
| v2.70 | New features & Usability improvements in the web prontal |
| v2.61 | Bug fixing |
| v2.60 | Improved the compability of installation process (Ubuntu) |
| v2.56 | Bug fixing |
| v2.55 | Bug fixing |
@@ -11,6 +14,54 @@
| v2.50 | First public release |
# 🆕 2022+ [Newest Release notes](https://github.com/jokob-sk/Pi.Alert/issues/138)
## Pi.Alert v3.02
<!--- --------------------------------------------------------------------- --->
**PENDING UPDATE DOC**
- Fixed: UNIQUE constraint failed with Local MAC #114
## Pi.Alert v3.01
<!--- --------------------------------------------------------------------- --->
**PENDING UPDATE DOC**
- Fixed: Problem with local MAC & IP (raspberry) #106
## Pi.Alert v3.00
<!--- --------------------------------------------------------------------- --->
**PENDING UPDATE DOC**
- `arp-scan` config options: interface, several subnets. #101 #15
- Next/previos button while editing devices #66 #37
- Internet presence/sessions monitoring #63
- Logical delete / archive / hide Device #93
- Flag to mark device with random MAC's #87
- New Device Types predefined in combobox #92
- Ask before leave the page with unsaved changes #104
- Option to don't mark devices as new during installation #94
- Uninstall script #62
- Fixed: Error updating name of devices w/o IP #97
- Fixed: Deleted devices reappear #84
- Fixed: Device running Pi.Alert must be marked as "on-line" #76
- Fixed: Incorrect calculation of presence hours #102
- Fixed: Problem redirect to homepage clicking in logo #103
## Pi.Alert v2.70
<!--- --------------------------------------------------------------------- --->
- Added Client names resolution #43
- Added Check to mark devices as "known" #16
- Remember "Show XXX entries" dropdown value #16 #26
- Remember "sorting" in devices #16
- Remember "Device panel " in device detail #16
- Added "All" option to "Show x Entries" option #16
- Added optional Location field (Door, Basement, etc.) to devices #16
- "Device updated successfully" message now is not modal #16
- Now is possible to delete Devices #16
- Added Device Type Singleboard Computer (SBC) #16
- Allowed to use " in device name #42
## Pi.Alert v2.60
<!--- --------------------------------------------------------------------- --->
- `pialert.conf` moved from `back` to `config` folder
@@ -18,6 +69,7 @@
- Added compatibility with Python 3 (default version installed with Ubuntu)
- Added compatibility in the Installation guide with Ubuntu server
- Eliminated some unnecessary packages from the installation
### License

18
docs/WEBHOOK_N8N.md Executable file
View File

@@ -0,0 +1,18 @@
### Create a simple n8n workflow
![n8n workflow](/docs/img/WEBHOOK_N8N/n8n_workflow.png)
### Specify your email template
See [sample JSON](https://github.com/jokob-sk/Pi.Alert/blob/main/back/webhook_json_sample.json) if you want to see the JSON paths used in the email template below
![Email template](/docs/img/WEBHOOK_N8N/n8n_send_email_settings.png)
```
Events count: {{ $json["body"]["attachments"][0]["text"]["events"].length }}
New devices count: {{ $json["body"]["attachments"][0]["text"]["new_devices"].length }}
```
### Get your webhook in n8n
![n8n webhook URL](/docs/img/WEBHOOK_N8N/n8n_webhook_settings.png)
### Configure PiAlert to point to the above URL
![PiAlert config](/docs/img/WEBHOOK_N8N/Webhook_settings.png)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 168 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 129 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 106 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 135 KiB

BIN
docs/img/2_4_device_nmap.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 172 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 198 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 136 KiB

0
docs/img/4_report_1.jpg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 43 KiB

After

Width:  |  Height:  |  Size: 43 KiB

BIN
docs/img/4_report_2.jpg Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 78 KiB

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
docs/img/DATABASE/CurrentScan.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

BIN
docs/img/DATABASE/DHCP_Leases.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

BIN
docs/img/DATABASE/Devices.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

BIN
docs/img/DATABASE/Events.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
docs/img/DATABASE/Nmap_Scan.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

BIN
docs/img/DATABASE/Parameters.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

BIN
docs/img/DATABASE/Pholus_Scan.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

BIN
docs/img/DATABASE/ScanCycles.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

BIN
docs/img/DATABASE/Sessions.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

BIN
docs/img/DATABASE/Settings.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 197 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

BIN
docs/img/GENERAL/in-app-help.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

BIN
docs/img/ICONS/device-icon.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

BIN
docs/img/ICONS/devices-icons.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

BIN
docs/img/SUBNETS/subnets_vlan.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

0
docs/img/android_random_mac.jpg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 551 KiB

After

Width:  |  Height:  |  Size: 551 KiB

BIN
docs/img/device_details.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 132 KiB

BIN
docs/img/device_nmap.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 157 KiB

BIN
docs/img/devices_dark.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 187 KiB

Some files were not shown because too many files have changed in this diff Show More