fixed tag writing

This commit is contained in:
Patrick McDonagh
2016-03-29 21:43:54 -05:00
parent f923f8f9a1
commit edf73c81fc

View File

@@ -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