Commit Graph

16 Commits

Author SHA1 Message Date
fd340449e1 Cmd's for server start & scraper run. 2020-06-07 23:47:38 +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
3af4c99eb3 Resolved merge conflict 2020-06-07 16:34:00 +02:00
39ecbb117b Include express package. Server serving files and later fetch from mongo. 2020-06-07 16:33:18 +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
7fd5a5b049 Added mongoose dependency 2020-06-03 00:18:11 +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
61d98cd420 Info where to create gmail app password. 2020-05-27 20:41:33 +02:00
5040b0eb8d Added setup, config and usage sections. 2020-05-27 20:37:14 +02:00
b2e6d6341b Example config and ignore config.js. 2020-05-27 20:04:20 +02:00
1d2409036f Require nodemailer and puppeteer. 2020-05-27 20:02:51 +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
216a2bb106 Updated with DS_Store and *.swp files. 2020-05-27 19:57:54 +02:00
2054ed642f Initial commit 2020-05-26 22:48:13 +02:00