How to send data to a website, what would be a general approach? #868
-
Hello I have a question that is not only related to Yellow. I hope it's ok if I ask it here. I have a Yellow website outside my home network. I want the Pico to send these data directly to my Yellow website. I have no idea how to do this. Can you think of anything? |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
I'm afraid there's no general solution without further information about the data, the format etc. If this data is stored in e.g csv files you could write a shell script which automatically uploads the file via FTP/SFTP from the Pi to your website, then use an appropriate file parser to display them as needed. You could use My CSV extension, or have a look at the extensions by @GiovanniSalmeri, he has some parsers for YAML and other markup languages if I remember right. |
Beta Was this translation helpful? Give feedback.
-
Just another idea, if you are talking about a small amount of data (some numbers, for example), and if these data are not your bank credentials or the secret codes for beginning a nuclear war: you could simply transmit them with a GET request, for example In page |
Beta Was this translation helpful? Give feedback.
-
Thank you both! @GiovanniSalmeri My bank credentials may see everyone, there is nothing to get and my nuclear missiles I have sold years ago. 😄 |
Beta Was this translation helpful? Give feedback.
-
Here are two alternatives for sending data to a website:
Hope this helps and happy coding. |
Beta Was this translation helpful? Give feedback.
-
Hello Mark Thank you very much for the information! Because the Raspberry Pi Pico W is an 8 Euro microcontroller and not a real computer, the possibilities are limited. The But I now have enough ideas to continue. Thanks again. 😊 |
Beta Was this translation helpful? Give feedback.
-
Tip: You can let us know when your question has been answered, click on |
Beta Was this translation helpful? Give feedback.
Here are two alternatives for sending data to a website:
Send a
POST
request via HTTP/HTTPS. You can send arbitrary data to a web server. This can be done in any programming language and at the command line. There are three HTTP request methods you should know: GET, POST and HEAD. The first one is for displaying pages and retrieving data from a web server. The second is for contact forms, uploading files and sending data to a web server. The third is for obtaining meta data and testing links. Datenstrom Yellow supports these HTTP request methods. Have a look atgetRequest()
,isRequest()
in extensions and the API for developers.Use the
rsync
command on Mac or Linux. You can sync files…