fixed tag writing
This commit is contained in:
@@ -756,7 +756,7 @@ exports.statusTagData = (req, res) ->
|
||||
|
||||
readTag = (tagName, cb) ->
|
||||
exec = require('child_process').exec
|
||||
exec 'python /home/poconsole/src/dataLogger/readTag.py ' + tagName, (error, stdout, stderr) ->
|
||||
exec 'python /home/poconsole/src/datalogger/readTag.py ' + tagName, (error, stdout, stderr) ->
|
||||
if error
|
||||
cb
|
||||
error:error
|
||||
@@ -777,7 +777,7 @@ writeTag = (tagName, value, godMode, cb) ->
|
||||
if allowedTags.indexOf(tagName) > 0
|
||||
inAllowedTags = true
|
||||
if inAllowedTags || godMode
|
||||
exec 'python /home/poconsole/src/dataLogger/writeTag.py ' + tagName + " " + value, (error, stdout, stderr) ->
|
||||
exec 'python /home/poconsole/src/datalogger/writeTag.py ' + tagName + " " + value, (error, stdout, stderr) ->
|
||||
if error
|
||||
cb
|
||||
error:error
|
||||
|
||||
Reference in New Issue
Block a user