AR Drone over the internet - node.js

I have an ar drone that i want to fly via the browser. It currently works on localhost but as the live server is not using my machine, the drone doesn't react to the commands.
How do I get the drone to fly while connected from my machine but controlled over the internet?
I'm not worried about latency as i only need it to take off and land.

I have a signalR project about ArDrone it's control drone over internet and it works. I can send you codes

#Chris you might want to check the NVextender at http://developers.NVdrones.com. There will be a Javascript SDK that you can run in Node that maybe will allow you to achieve what you are looking for.

Related

The most secure server data transfer?

I'm running an Ubuntu Server somewhere, 24/7. It's used to host a webpage, a shoutcast radio, some other stuff. I'm planning to buy a Raspberry Pi 1B to use it as a "backup" server, in the following way :
Whenever the Raspberry Pi is powered up and connected to the internet, it checks if the server is online (by pinging it)
If it is, it copies via internet a precise folder from the server and backs it up on the Raspberry Pi drive. Then the Raspberry Pi powers off / reboots once the transfer is completed.
As you can see the "via internet" part is emphasized, as I don't know which data transfer method to use to make this the most simplest / stable (easy to automatize via shell scripts, not going to crash or fail) and more secure (no one can intercept and read the data which is transferred between the two machines) way. If it's slow, no problem, just want it done via automated script.
So what's the best way to do that ? WGET a HTTPS page of the server from the RPi with some credentials ? Automated SFTP ? Third-server-based transfer ? Anything else ?
Edit : People seem to downvote this post. This is fine, but I'd really appreciate to know why, so don't hesitate to comment if you disapprove to tell me what I did wrong. Thanks.
I would suggest to use rsync for that kind of stuff.
How to use rsync:
https://www.digitalocean.com/community/tutorials/how-to-use-rsync-to-sync-local-and-remote-directories-on-a-vps#how-to-use-rsync-to-sync-with-a-remote-system
It also works with ssh-keys so you do not need a password which makes it great for backups.

Passing data within an app between devices in same network

I am currently developing a Universal Windows 10 application that is planned to run both on the PC + Mobile and the Raspberry Pi 2.
I was wondering what would be the best way for these two apps to pass data from one another through a local network and not using Azure. It is required that for every transaction done on each device, it gets transmitted over to another.
We also need to remote control the Raspberry Pi 2, like manage the data and shut it down using the app.
We are planning to build a RESTful API that will run on the same local network to facilitate this but I'm not pretty sure what APIs to use for this.
What are the necessary APIs that will be good for this requirement?
Thank you very much for your help!
Depending on the size of what you transfer, I found this:
BackgroundUploader class
Windows.Web.Http namespace.
See https://msdn.microsoft.com/library/windows/apps/br207140?cs-save-lang=1&cs-lang=csharp#code-snippet-2

How can I test a OPC-UA server running on Raspberry Pi from a Windows computer?

As a part of a job assignment where I am to implement and test an OPC server on a Raspberry Pi, I found and implemented a node.js server found at this Github repository (sample_server.js).
Now, being new to OPC in general, I tried downloading the MatrikonOPC Explorer to connect to the server, but it refused to find the server. At first I thought I was just not putting in the right things (endpoint URL goes somewhere?) into the connect prompt, but having read some more, (I think) I now understand that the explorer uses the regular OPC specification while my server is a OPC-UA server. Please correct me if I'm wrong here.
Anyway, I would like to see if this server actually works and can be accessed. What is a good way of testing this? If possible, I would like to test it over the network, from my Windows PC (they are both on the same network, and I have ensured they are pingable from eachother).
It turns out my suspicion was right - the problem was solved by adding a UA proxy that translated the OPC-UA to OPC Classic, allowing the explorer to detect and access the server.

What are the different ways you can communicate with USB port through Browser

I want to create a webpage that will access the USB port of the client. Intent is to configure the hardware connected the USB port. I can do a desktop application because the configuration option is different for different hardware. connected and I need to pull this code dynamically from the server. I am not a web programmer. It will great to find the best way to do this.
It ends up that I am attempting to write an app that performs something similar. What I am doing, instead is writing both the web server and the web page. Use something simple, like DLib for the web server, to serve the data to the end user.
This is how it works:
The web server handles the USB connection. If written in C++ or some other native language, you will have much more control over the device. The web page is then loaded from the web server that you have written. In the web page, you can have some sort of javascript worker, etc. to constantly pull new data from the server and push data from the web interface to the USB device. This also adds a layer of protection because you can ensure that the user has not made any modifications to the web page.
The main drawback to this possibility is that you will be required to install the server on the client's machine. However, this can be circumvented by writing this as a applet that can be embedded within the page!
It is possible to write a browser plugin that communicates with USB devices. An example of an app that does that is MyTrezor.com, but unfortunately I don't think you can see the source of their plugin.
Another option might be to use the chrome.usb or chrome.serial Javascript API, but this means your app would only work in Google Chrome, and it would have to be installed as a Chrome packaged app, a special thing that looks more like a native app than a web page.

Local pi server running node and websockets

I'm just wondering is it possible to run a local server using node (node would be running on a raspberry pi) and communicate with it via a web browser on a different machine on the same network using websockets? I'm looking into using a browser as a control system for a project I'm working on. If it is possible is there any references I can look at?
Thank you,
Techhead55.
EDIT
I already have node up and running on the pi, it's just that I'm not sure if you can and how you implement a local server and use sockets to communicate with it in a bowser on the same network.
Not sure if you specifically ask about Node, but here is an example of a WebSocket server running on Pi, and browsers connecting to that server: http://tavendo.com/blog/post/pypy-on-the-pi/
The example does Publish & Subscribe over WebSocket using WAMP (http://wamp.ws).
Here is a similar example running on Arduino Yun that shows how to connected hardware, and publish data in real-time via WebSocket, receiving data in a browser, and real-time rendering a chart: http://tavendo.com/blog/post/arduino-yun-with-autobahn/
Disclosure: I am original author of Autobahn and work for Tavendo.
Yes.
Here is great manual from Matthias Rüedlinger:
http://blog.rueedlinger.ch/2013/03/raspberry-pi-and-nodejs-basic-setup/
Also installation of ghost with node on RPI is very nice :)
http://bit.ly/1cFwFAQ

Resources