Commit Graph

7 Commits

Author SHA1 Message Date
6cfdbd6983 Db functions as resources for endpoints.
Db functoins for:
 - getting event by id.
 - getting events where secuential statues are truncated.
 - get events, but w/ select on date & isOk status.
2020-06-07 23:52:03 +02:00
24384527b2 New endpoints and move server.js to src/.
New endpoints include:
 - /logs : all events logged in the database
 - /logs/alternating : events where the same consecutive status is
 filtered out.
 - /logs/:id : get a log message by mongo id.
 - /uptime : get all events, but w/ selected on date & isOk.
 - /pdf/:id : get the pdf file by id.

TODO: Error handling. This is all best case. Should be properly logged.
2020-06-07 23:46:36 +02:00
b2e4a46d10 clseBrowser func extended to exit w/ code. 2020-06-03 00:20:26 +02:00
cce9c0d6ea After we get serviceMessages, save internet to db. 2020-06-03 00:19:55 +02:00
9cc4218bf2 Db functions and event Schema w/ mongoose.
Create mongoose schema for Event and db.js to export ways we want to
interface with the database.
2020-06-03 00:19:07 +02:00
06b01e5a3a /site contains static start of frontend.
Started a frontend for displaying the information collected.
 - Need dynamic data.
 - Needs a webserver to serve page.
2020-06-01 23:22:25 +02:00
12a039930b Check ISP website & send mail if services are down
Scrape, navigate and print ISP's status page for a given address. This
only works with telenor and the URL must be a search for a given
address.
If any services are found to be down a mail is sent from and to accounts
set in config.js.
2020-05-27 20:02:25 +02:00