What's the best way to transfer data continuously from a Raspberry Pi to my droplet?

I have a Raspberry Pi and I have connected two different sensors to my Raspberry Pi. Now I need to send the data I’ve received from my R-Pi to my droplet to get access to it from everywhere. My knowledge about Digital Ocean is limited so now I need some help how I should do this in the best way. To sum it up:

  • I want to send stored information from my R-Pi to my Digital Ocean droplet continuously and automatically
  • What do I need to do, what programs do I need?
  • I prefer to use Python code
  • One option is to put it on a web browser, but I’m not sure what I have to do in order to make that work

Thankful for any help I can get!

// Jenny

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

I know this question is now 3 years old but the system I have been using is a program called INLETS which can be found at Inlets Documentation.

I have been using it for awhile but for some reason it has stopped working recently.

Not the fanciest solution, but I think you can do that with netcat. That is how the hackers steal data.

Here is the first google hit I found on this, but there are many examples of how to transfer data with netcat. Note that you will have to harden this service with systemd or similar to restore the link should it crash.

It depends on how you want to digest your RaspberryPi data. Lets say you would like to present it on a website. A possible solution could be to setup a URL:Endpoint with your Python Application that presents JSON data and then digest and display it using a simple Angular application.

Here is a place to start: