mirror of
https://github.com/KevinMidboe/fanController.git
synced 2025-10-29 17:40:22 +00:00
Changed so that the fanstate is reloaded when application starts
This commit is contained in:
8
server.js
Executable file → Normal file
8
server.js
Executable file → Normal file
@@ -66,5 +66,11 @@ var server = app.listen(3000, function () {
|
||||
var host = server.address().address
|
||||
var port = server.address().port
|
||||
|
||||
console.log("Example app listening at http://%s:%s", host, port)
|
||||
console.log("Example app listening at http://%s:%s", host, port);
|
||||
console.log('Setting fan to previous state');
|
||||
var options = {
|
||||
pythonOptions: ['-u'],
|
||||
args: 'reload'
|
||||
};
|
||||
PythonShell.run('scripts/fanController.py', options);
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user