This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function watchPosition(agent) { | |
agent.dataRef.child("coords").once("value", function(coords) { | |
if (coords.val()) { | |
console.log("Has coords!"); | |
agent.dataRef.child("coords").on("value", function(coords) { | |
var lat = coords.child("lat").val(); | |
var lon = coords.child("lon").val(); | |
var patch = getPatchAt(lat, lon, 3); | |
if (patch) agent.setData("patch", patch.url); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
info: Creating snapshot 0.1.0-28 | |
info: Updating app agentcloud | |
info: Activating snapshot 0.1.0-28 for agentcloud | |
info: Starting app agentcloud | |
error: Error running command deploy | |
error: Nodejitsu Error (500): Internal Server Error | |
warn: Error returned from Nodejitsu | |
error: Error: connect ECONNREFUSED | |
error: at errnoException (net.js:768:11) | |
error: at Object.afterConnect [as oncomplete] (net.js:759:19) |
NewerOlder