mirror of
https://github.com/KevinMidboe/fanController.git
synced 2025-10-29 09:30:23 +00:00
Changed directory for the python scripts
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
border-radius: 4px;
|
||||
|
||||
text-align: center;
|
||||
font-size: 40px;
|
||||
font-size: 55px;
|
||||
}
|
||||
.state_display h4 {
|
||||
position: absolute;
|
||||
|
||||
@@ -26,7 +26,7 @@ app.get('/state', function(req, res) {
|
||||
app.post('/on', function (req, res) {
|
||||
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;
|
||||
console.log('finished');
|
||||
});
|
||||
@@ -36,7 +36,7 @@ app.post('/on', function (req, res) {
|
||||
app.post('/off', function (req, res) {
|
||||
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;
|
||||
console.log('finished');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user