20 Commits

Author SHA1 Message Date
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
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
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
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
87aacaa08a Add services to db if they don't exist 2025-09-03 15:43:28 +02:00
7d8b5df046 Creates db and assumes it's up to date. This replaces init() 2025-09-02 10:00:12 +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
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
9c7f6e9a01 Changed page title and added a favicon 2025-08-31 15:45:49 +02:00
6103a34ae1 Switched from browser refresh to update webpage with API fetch
Added an ID field to the API. Added a fetch script that updates the webpage every second.
2025-08-31 14:06:55 +02:00
4876f16760 Run on all addresses 2025-08-31 12:36:53 +02:00
67cad7f8a9 Set port to 80 and disable the reloader 2025-08-31 12:34:38 +02:00
e0349ab058 Set up docker auto build, copied from another project 2025-08-31 12:18:08 +02:00