diff --git a/allhands_fact_max.js b/allhands_fact_max.js index 8a8188c..67663d1 100644 --- a/allhands_fact_max.js +++ b/allhands_fact_max.js @@ -237,6 +237,23 @@ if (mode === "server"){ // console.log(msg) switch (msg.cmd){ // in case you want to receive other data and route it elsewhere + case 'locationReport': + let points = Object.keys(msg.data) + // Max.post(points) + for(i=0;i { + if (err) console.error(err); + }); + // Max.post(newTTS) + } + + + break + case 'OSC': // send formatted OSC message locally (i.e. a pd patch) // console.log(msg.addressPattern.split('/')[1]) diff --git a/location.js b/location.js index a1274fb..8937fdc 100644 --- a/location.js +++ b/location.js @@ -10,4 +10,5 @@ satelize.satelize({ip:'46.19.37.108'}, function(err, payload) { // res.send(payload); // res.json... console.log(payload) + let locationMsg = [msg.name, payload.ip, payload.latitude, payload.longitude, payload.timezone, payload.continent_code, payload.country.en, payload.country_code] }); \ No newline at end of file