78 Commits

Author SHA1 Message Date
7242392233 Added an on hover history button to display history chart. 2025-09-06 10:52:21 +02:00
55e8356b1b Added TODO notes 2025-09-05 21:17:47 +02:00
8023978307 Changed timeout to 1s which will make it ping every 2s. This is to test 2025-09-05 21:12:31 +02:00
5617440013 Did some chart stuff (ugly) 2025-09-05 21:09:31 +02:00
7c5e15af99 gets all logs from past hour rather than past 300 logs 2025-09-05 21:00:05 +02:00
89f5c4ef0b MAJOR REFACTOR P4 FINAL 2025-09-05 20:47:11 +02:00
e7cf9edde9 Update routes.py 2025-09-05 20:45:00 +02:00
a2b13f3d32 MAJOR REFACTOR P3 2025-09-05 20:44:41 +02:00
12af4e7bbe MAJOR REFACTOR P2 2025-09-05 20:41:37 +02:00
4cfd5b2dbe MAJOR REFACTOR P1 2025-09-05 20:39:42 +02:00
3b87da9292 log.dateCreated didn't contain any UTC metadata so now log.dateCreatedUTC() return the datetime object with correct metadata 2025-09-05 18:57:21 +02:00
2ab46f1994 Switched from manual tming to using trace request context. 2025-09-05 18:05:50 +02:00
afd6383daa Added a global config.py 2025-09-05 12:27:01 +02:00
8a5ff68f23 Renamed split_graph() to prepare_chart_data() 2025-09-05 12:11:03 +02:00
05d9ea1104 Fixed graph not being split when over threshold. Added route arg so services can be charted by id. 2025-09-05 12:08:35 +02:00
139be129ee Added a bool timeout to logs. This indicated whether or not the request timed out. Preparing data for the frontend graph is put into it's own function. When data is more than 6 s apart it is considered a break in connectivity and a None point is added. 2025-09-05 11:57:34 +02:00
e1b0ab4dc5 Refactor check_service, split the different ping types to a function called ping 2025-09-05 09:19:04 +02:00
cab5c3b7ec More chart experimentation. Managed to make a chart of ping history display 2025-09-05 08:25:51 +02:00
9e4d2e031d Experimenting with chart.js 2025-09-04 08:18:26 +02:00
e355999c53 Disabled auto decompression for security reasons 2025-09-03 19:47:52 +02:00
39b4ee7a00 Polling of services is done based on services in DB 2025-09-03 18:32:02 +02:00
5ddafd3b98 First big step in moving towards DB storage instead of memory storage 2025-09-03 18:28:08 +02:00
5a7aa44d6c Creates logs when services are pinged 2025-09-03 17:11:02 +02:00
dea5278731 Migrate db to connect logs to service. Deleted any previous logs as they are useless 2025-09-03 16:44:27 +02:00
9908683e45 Added a function that turns a service instance into a dictionary. 2025-09-03 16:05:01 +02:00
96c8c2d5c8 Update requirements.txt 2025-09-03 15:43:44 +02:00
87aacaa08a Add services to db if they don't exist 2025-09-03 15:43:28 +02:00
bb8f3e6c71 Removed packages that aren't used and assed a script to generate db upgrade 2025-09-03 15:20:49 +02:00
bf43999d36 aiohttp seems to have fixed an issue with Plex HEAD requests 2025-09-03 09:01:18 +02:00
3f4dc83929 Forgot to update requirements.txt 2025-09-03 08:19:36 +02:00
5b1b43f9ad Switched from httpx to aiohttp. Hopefully fixes some SSL handshake issues 2025-09-03 08:17:07 +02:00
324f75d100 Fixed margin and padding top 2025-09-02 22:09:52 +02:00
a63e313036 Increased wait bar size and fixed mobile viewing 2025-09-02 22:01:55 +02:00
0c580bc9f1 Improved the progress bar / waiting bar 2025-09-02 21:43:20 +02:00
5a42d998d6 Scuffed progress bar 2025-09-02 20:26:32 +02:00
7ad601fc14 Increased timeout to 4s and runs every 5s. Added a 5s wait in parralel with the pings to set it to a minimum of 5s but allows it to go longer. 2025-09-02 20:26:23 +02:00
446f36fc5b Another small mistake 2025-09-02 10:25:44 +02:00
07325125f1 Fixed build error where permissions were being applied to a deleted file 2025-09-02 10:22:18 +02:00
7d8b5df046 Creates db and assumes it's up to date. This replaces init() 2025-09-02 10:00:12 +02:00
3eb066922d Removed entrypoint as migration is handled by app 2025-09-02 09:43:45 +02:00
1f88bcf396 Added logs for each ping. Contains no data yet and estimates 15.7 mil rows a year. Considering adding log aggregation. Moved some folders and files into mem folder due to circular import. 2025-09-02 09:34:46 +02:00
28493e5790 Moved basic db class/model to models.py 2025-09-01 10:12:50 +02:00
826cf6a26a Update requirements.txt 2025-09-01 10:10:58 +02:00
7ee6ed88c1 Added an SQLite database that will host ping logs. DB file is automatically created and upgraded 2025-09-01 10:05:39 +02:00
f685e2b705 Change Plex from HEAD ping to GET ping, hopefully fixes random disconnect issue 2025-08-31 17:21:02 +02:00
16c61fa482 Added two services 2025-08-31 17:11:05 +02:00
93bc1d7f04 Added option to ping with a different method (HEAD and GET) 2025-08-31 16:28:38 +02:00
b8c5114335 Added a little padding to fix text issues 2025-08-31 15:53:21 +02:00
9c7f6e9a01 Changed page title and added a favicon 2025-08-31 15:45:49 +02:00
b7f32c2bce Hide ping when offline 2025-08-31 15:36:24 +02:00