-
Notifications
You must be signed in to change notification settings - Fork 0
/
covid.js
74 lines (68 loc) · 1.96 KB
/
covid.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
const fs = require("fs"),
spawn = require("child_process").spawn;
let covid = {};
covid.update_data = () =>
{
const process = spawn('python', [
"-u",
"C:/Users/qasim/Desktop/Exigence/COVID-19/CoronaBluetooth/Diagnostics/get_updates.py"
]);
process.stdout.on('data',async(data)=>{
console.log(`data: ${data}`);
});
process.stderr.on('error', async(data) => {
console.log(`error: ${data}`);
});
process.stderr.on('close', async() => {
console.log("Closed");
});
}
covid.GitHub_Push = () =>
{
const process = spawn('python', [
"-u",
"C:/Users/qasim/Desktop/Exigence/COVID-19/CoronaBluetooth/Diagnostics/github_push.py"
]);
process.stdout.on('data',async(data)=>{
console.log(`data: ${data}`);
});
process.stderr.on('error', async(data) => {
console.log(`error: ${data}`);
});
process.stderr.on('close', async() => {
console.log("Closed");
});
}
covid.Image_Update = () =>
{
const process = spawn('python', [
"-u",
"C:/Users/qasim/Desktop/Exigence/Track-COVID/Track-COVID/visual.py"
]);
process.stdout.on('data',async(data)=>{
console.log(`data: ${data}`);
});
process.stderr.on('error', async(data) => {
console.log(`error: ${data}`);
});
process.stderr.on('close', async() => {
console.log("Closed");
});
}
covid.GitHub_Image_Upload = () =>
{
const process = spawn('python', [
"-u",
"C:/Users/qasim/Desktop/Exigence/Track-COVID/Track-COVID/image_upload.py"
]);
process.stdout.on('data',async(data)=>{
console.log(`data: ${data}`);
});
process.stderr.on('error', async(data) => {
console.log(`error: ${data}`);
});
process.stderr.on('close', async() => {
console.log("Closed");
});
}
module.exports = covid;