mirror of
https://github.com/KevinMidboe/fanController.git
synced 2025-10-29 17:40:22 +00:00
Changed directory for the python scripts
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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');
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user