Small bug fixes

This commit is contained in:
Samer Albahra
2015-07-01 00:26:07 -05:00
parent 3d6c7d6da3
commit 91b429c1dd
2 changed files with 8 additions and 2 deletions

View File

@@ -3,6 +3,10 @@ var express = require( "express" ),
port = process.env.PORT || 3000;
app = express();
if ( !process.env.PORT ) {
require( "dotenv" ).load();
}
// Handle requests matching /weatherID.py where ID corresponds to the
// weather adjustment method selector.
// This endpoint is considered deprecated and supported for prior firmware