Gps device is the adafruit Ultimate gps build around the MTK3339 chipset.
Plug your device on the UART of the rpi or with a usb adaptator (you have to change serial port config /dev/ttyAMA0 to /dev/ttyUSB0).
Look the raw at the debug node. Send command to gps like STANDBY. Look at http://learn.adafruit.com. to complete documentation.
Mkdir /home/pi/mygps on your raspberry and paste this html example
<!DOCTYPE HTML>
<html>
<head>
<title>AdafruitUltimateGps</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<script type="text/javascript">
var server = window.location.hostname;
var topics = {};
var wsUriC = "ws://"+server+":1880/admin/ws/example";
function wsConnectC() {
console.log("connect",wsUriC);
var ws = new WebSocket(wsUriC);
ws.onmessage = function(msg) {
var line = "";
var msggps = JSON.parse(msg.data);
//console.log(msggps);
for (var cle in msggps) {
line += "<tr><td>" + cle + "</td><td>" + msggps[cle] + "</td></tr>";
}
document.getElementById('gps').innerHTML = line;
// document.getElementById('lon').innerHTML = msg.data.lon;
}
ws.onopen = function() {
document.getElementById('status').innerHTML = "connected";
console.log("connected");
}
ws.onclose = function() {
document.getElementById('status').innerHTML = "not connected";
setTimeout(wsConnectC,1000);
}
}
</script>
<body onload="wsConnectC();" onunload="ws.disconnect;">
<div data-role = "page" id="one">
<h1>GPS from rapsberry</h1>
<table id="gps">
<tr>
<th>Attribut</th>
<th>Valeur</th>
</tr>
</div>
<div id="status">unknown</div>
</body>
Uncomment this sentences on your ~/node-red/setting.js file
...
//When httpAdminRoot is used to move the UI to a different root path, the
// following property can be used to identify a directory of static content
// that should be served at http://localhost:1880/.
httpStatic: '/home/pi/mygps/',
// To password protect the static content, the following property can be used.
// The password must be an md5 hash eg.. 5f4dcc3b5aa765d61d8327deb882cf99 ('password')
//httpStaticAuth: {user:"user",pass:"5f4dcc3b5aa765d61d8327deb882cf99"},
// The following property can be used in place of 'httpAdminRoot' and 'httpNodeRoot',
// to apply the same root to both parts.
httpRoot: '/admin',
...
Then access at http://yourraspberryIP:1880 or http://yourraspberryIP:1880/admin