diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..029a5e8 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.nodester.appconfig diff --git a/boatduinode.js b/boatduinode.js index 33d47eb..5ab9fd1 100644 --- a/boatduinode.js +++ b/boatduinode.js @@ -1,24 +1,5 @@ -/* Copyright (C) 2011 by ath (@supertunaman) - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. */ - var http = require('http'); +<<<<<<< HEAD var io = require('socket.io'); var express = require('express'); @@ -50,3 +31,9 @@ socket.on('connection', function(client) { }) }); +======= +http.createServer(function (req, res) { + res.writeHead(200, {'Content-Type': 'text/plain'}); + res.end('Hello World\nApp (boatduinode) is running..'); +}).listen(8617); +>>>>>>> 35234ccb07ae7934a5b974b1db955cd8a1401075 diff --git a/boatduinode.rb b/boatduinode.rb index 5631e56..db0689a 100644 --- a/boatduinode.rb +++ b/boatduinode.rb @@ -24,7 +24,7 @@ @serial = SerialPort.new("/dev/ttyUSB0", 9600, 8, 1, SerialPort::NONE) #@ws = WebSocket.new "ws://localhost:8080/socket.io/websocket" -@ws = WebSocket.new "ws://boatduinode.nodester.com/socket.io/websocket" +@ws = WebSocket.new "ws://boatduinode.nodester.com:80/socket.io/websocket" puts "Connected" def up diff --git a/public/index.html b/public/index.html index ed8d1aa..c15a49d 100644 --- a/public/index.html +++ b/public/index.html @@ -18,7 +18,7 @@

Use arrow keys to control the boat!