This repository has been archived by the owner on Oct 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 3e05949
Showing
8 changed files
with
667 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
] |
Oops, something went wrong.