Use environment variable to set path for nodes....

This commit is contained in:
Dave C-J
2013-10-25 18:22:45 +01:00
parent f1bc8c3f56
commit 5ec8147eb1
6 changed files with 166 additions and 165 deletions

View File

@@ -13,7 +13,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
**/
var RED = require("../../red/red");
var RED = require(process.env.NODE_RED_HOME+"/red/red");
var SunCalc = require('suncalc');
function SunNode(n) {