Changed directory for the python scripts

This commit is contained in:
2017-01-30 22:52:40 +01:00
parent 80f30352ae
commit 345a63ca6b
2 changed files with 3 additions and 3 deletions

View File

@@ -43,7 +43,7 @@
border-radius: 4px; border-radius: 4px;
text-align: center; text-align: center;
font-size: 40px; font-size: 55px;
} }
.state_display h4 { .state_display h4 {
position: absolute; position: absolute;

View File

@@ -26,7 +26,7 @@ app.get('/state', function(req, res) {
app.post('/on', function (req, res) { app.post('/on', function (req, res) {
console.log("Got a POST request for ON"); console.log("Got a POST request for ON");
PythonShell.run('led-csid0-on.py', function (err) { PythonShell.run('pyscripts/led-csid0-on.py', function (err) {
if (err) throw err; if (err) throw err;
console.log('finished'); console.log('finished');
}); });
@@ -36,7 +36,7 @@ app.post('/on', function (req, res) {
app.post('/off', function (req, res) { app.post('/off', function (req, res) {
console.log("Got a POST request for OFF"); console.log("Got a POST request for OFF");
PythonShell.run('led-csid0-off.py', function (err) { PythonShell.run('pyscripts/led-csid0-off.py', function (err) {
if (err) throw err; if (err) throw err;
console.log('finished'); console.log('finished');
}); });