Skip to content

mzabriskie/node-dronestatus

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 

node-dronestatus

AR.Drone 2.0 status in the browser via WebSocket

Requirements

You will need a browser that supports WebSockets.

Installing

npm install dronestatus

Using

In node you simply need to attach dronestatus to your server:

require('dronestatus').listen(server);

In your HTML include the client script, then add a listener to handle status change from the drone:

<script src="/dronestatus/nodecopter-client.js"></script>
<script>
	new NodecopterStatus().on('change', function (message) {
		console.log(JSON.parse(message.data));
	});
</script>

You can find a more detailed example under examples/.

Message

The payload that is provided from the server provides a lot of data about the state of the drone. I will attempt to document this more fully at some point. In the meantime example/message.json provides an example of what the message looks like.

License

MIT

About

AR.Drone 2.0 status in the browser via WebSocket

Resources

Stars

Watchers

Forks

Packages

No packages published