Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbe7730 committed May 1, 2019
0 parents commit 3e05949
Show file tree
Hide file tree
Showing 8 changed files with 667 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# PingDing

Utility for checking 12urenloop counting stations and graphically displaying them.

## Setup

1. Set up stations.json:

```
[
{
"address": "10.0.20.3", // The address to check
"canvasX": 350, // The X-location on the html5 canvas (600 by 400)
"canvasY": 50, // The Y-location on the html5 canvas (600 by 400)
"name": "Mr. White", // The name of the station
"color": "#bbbbbb", // The color of the station
"pingOnly": true // If true, only ping the address, else check if the http response is 200
},
// ...
]
```

2. Start the server:

```
npm install
npm start
```

3. Check out localhost:3000
58 changes: 58 additions & 0 deletions oldConfigs/stations-2019.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
[
{
"address": "10.0.20.3",
"canvasX": 350,
"canvasY": 50,
"name": "Mr. White",
"color": "#bbbbbb",
"pingOnly": true
},
{
"address": "10.0.20.4",
"canvasX": 503,
"canvasY": 95,
"name": "Nice Guy",
"color": "#a9a9a9",
"pingOnly": true
},
{
"address": "10.0.20.5",
"canvasX": 200,
"canvasY": 350,
"name": "Mr. Orange",
"color": "#ff7f00",
"pingOnly": true
},
{
"address": "10.0.20.6",
"canvasX": 400,
"canvasY": 350,
"name": "Mr. Blue",
"color": "#1e75a9",
"pingOnly": true
},
{
"address": "10.0.20.7",
"canvasX": 95,
"canvasY": 95,
"name": "Mr. Pi",
"color": "#ff0000",
"pingOnly": true
},
{
"address": "https://live.12urenloop.be/scores",
"canvasX": 300,
"canvasY": 200,
"name": "Live",
"color": "#000000",
"pingOnly": false
},
{
"address": "https://materiaal.12urenloop.be",
"canvasX": 200,
"canvasY": 200,
"name": "Saruman",
"color": "#000000",
"pingOnly": false
}
]
Loading

0 comments on commit 3e05949

Please sign in to comment.