KevinMidboe
1c22661c32
Completed example for systemd services.
2020-06-09 16:30:33 +02:00
KevinMidboe
34ee9d13bf
Update README.md
2020-06-08 23:21:29 +02:00
KevinMidboe
b79a5f7590
Update README.md
2020-06-08 23:10:45 +02:00
KevinMidboe
502530bf7c
Update README.md
2020-06-08 23:07:12 +02:00
KevinMidboe
0a12034086
Extended duration have hour, day & week
2020-06-08 22:38:27 +02:00
KevinMidboe
33d45c8e22
Refined email html content & text.
2020-06-08 22:24:08 +02:00
KevinMidboe
7cca05cbe7
Formatting and error handling
2020-06-08 22:21:58 +02:00
KevinMidboe
c5815e931f
Any send email if first incident of month
...
New db function for getting all events for this month that also have
isOk as false. We use this to resolve into notifyIfDown function if this
is first incident this period.
2020-06-08 22:21:34 +02:00
KevinMidboe
18f996b35f
Ignore all files contained in pdfExports/
2020-06-08 21:48:20 +02:00
KevinMidboe
41fa4aaaae
Merge branch 'master' of github.com:KevinMidboe/ISPDowntimeMonitor
2020-06-08 00:57:32 +02:00
KevinMidboe
1662b32843
Don't want pdfExports contents but it's folder.
2020-06-08 00:57:22 +02:00
KevinMidboe
17ab191e50
Merge branch 'master' of github.com:KevinMidboe/ISPDowntimeMonitor
2020-06-08 00:49:28 +02:00
KevinMidboe
d2226ab028
Merge branch 'master' of github.com:KevinMidboe/ISPDowntimeMonitor
2020-06-08 00:49:16 +02:00
KevinMidboe
178c38cf05
Merge branch 'master' of github.com:KevinMidboe/ISPDowntimeMonitor
2020-06-08 00:45:41 +02:00
KevinMidboe
978d925e32
Don't want pdfExports contenst buy folder.
2020-06-08 00:45:36 +02:00
KevinMidboe
34f3b4be70
Update README.md
2020-06-08 00:42:04 +02:00
KevinMidboe
a8bfc84e29
Updated yarn lock
2020-06-08 00:01:19 +02:00
KevinMidboe
55e0dab528
Updated styling.
2020-06-08 00:01:09 +02:00
KevinMidboe
d1963ea728
Cleaned up formatting
2020-06-07 23:58:44 +02:00
KevinMidboe
89d4148a2c
Include node package Fetch from cdn.
2020-06-07 23:57:58 +02:00
KevinMidboe
448a542882
Moved popover to separate file.
2020-06-07 23:57:13 +02:00
KevinMidboe
7ac6993fee
Use endpoint for uptime for bar graph.
2020-06-07 23:56:42 +02:00
KevinMidboe
924cdf4b2d
Use new endpoint to fetch table content.
2020-06-07 23:55:25 +02:00
KevinMidboe
c6b98a9588
Page now completes loading before scraping.
2020-06-07 23:53:58 +02:00
KevinMidboe
4a1f51769f
Moved pdf save location to pdfExports/
2020-06-07 23:53:35 +02:00
KevinMidboe
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
KevinMidboe
fd340449e1
Cmd's for server start & scraper run.
2020-06-07 23:47:38 +02:00
KevinMidboe
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
KevinMidboe
3af4c99eb3
Resolved merge conflict
2020-06-07 16:34:00 +02:00
KevinMidboe
39ecbb117b
Include express package. Server serving files and later fetch from mongo.
2020-06-07 16:33:18 +02:00
KevinMidboe
b2e4a46d10
clseBrowser func extended to exit w/ code.
2020-06-03 00:20:26 +02:00
KevinMidboe
cce9c0d6ea
After we get serviceMessages, save internet to db.
2020-06-03 00:19:55 +02:00
KevinMidboe
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
KevinMidboe
7fd5a5b049
Added mongoose dependency
2020-06-03 00:18:11 +02:00
KevinMidboe
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
KevinMidboe
61d98cd420
Info where to create gmail app password.
2020-05-27 20:41:33 +02:00
KevinMidboe
5040b0eb8d
Added setup, config and usage sections.
2020-05-27 20:37:14 +02:00
KevinMidboe
b2e6d6341b
Example config and ignore config.js.
2020-05-27 20:04:20 +02:00
KevinMidboe
1d2409036f
Require nodemailer and puppeteer.
2020-05-27 20:02:51 +02:00
KevinMidboe
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
KevinMidboe
216a2bb106
Updated with DS_Store and *.swp files.
2020-05-27 19:57:54 +02:00
KevinMidboe
2054ed642f
Initial commit
2020-05-26 22:48:13 +02:00