An open API service indexing awesome lists of open source software.

https://github.com/simbo/track-online-status

A simple tool to track the online status of my home internet connection.
https://github.com/simbo/track-online-status

Last synced: over 1 year ago
JSON representation

A simple tool to track the online status of my home internet connection.

Awesome Lists containing this project

README

          

# track-online-status

[![Package Dependencies](https://img.shields.io/david/simbo/track-online-status?label=deps)](https://www.npmjs.com/package/track-online-status?activeTab=dependencies)
[![GitHub last Commit](https://img.shields.io/github/last-commit/simbo/track-online-status/master)](https://github.com/simbo/track-online-status/commits/master)
[![GitHub Repo](https://img.shields.io/badge/repo-public-87ceeb)](https://github.com/simbo/track-online-status)
[![License MIT](https://img.shields.io/badge/license-MIT-4cc552)](http://simbo.mit-license.org/)

> A simple tool to track the online status of my home internet connection.

---

## About

I run this little thing on one of my raspberry pis at my home to keep track of
the internet connection state.

### Screenshot

![Screenshot](./preview.png)

## Requirements

A small server in your LAN with…

- nginx (or any other webserver)
- nvm with node.js >= 14
- yarn

## Setup

```sh
cd ~
git clone git@github.com:simbo/track-online-status.git
cd track-online-status
yarn
yarn build
```

### nginx

```sh
sudo nano /etc/nginx/sites-available/default
```

```nginx
location /online-status {
alias /home/simbo/track-online-status/public/;
}
```

```sh
sudo nginx -s reload
```

### cron

```sh
crontab -e # create/edit user crontab
```

```cron
# run online status test every minute
* * * * * /home/simbo/track-online-status/bin/cron-test-online-status
```

### update script

```sh
touch ~/bin/update-track-online-status
chmod +x ~/bin/update-track-online-status
nano ~/bin/update-track-online-status
```

```sh
#!/bin/bash
cd /home/simbo/track-online-status
git fetch
git pull
yarn
yarn build
```

## License

[MIT © Simon Lepel](http://simbo.mit-license.org/)