MATLAB Answers

Use Thingspeak to read data from a password protected website

3 views (last 30 days)
Andreas Neul
Andreas Neul on 22 Mar 2020
Commented: Vinod on 27 Mar 2020
I want to read data from a password protected website to my Thingspeak channel. Can somebody help an provide some sample code which opens a website in a browser, enter login ID and password then get the resulting page content automatically?
Vinod on 27 Mar 2020
You may be able to use the cookie generated when you log in to the website using a browser and pass it in to thingHTTP. This will keep you logged in to the site, and able to parse the content.
If you are reach out to me directly, I may be able to set up some time to screenshare with you and help you out.

Sign in to comment.

Answers (1)

Christopher Stapels
Christopher Stapels on 26 Mar 2020
Edited: Christopher Stapels on 26 Mar 2020
I tried to visit my.solytic and the apge timed out, but that might be because I dont have an account. I went to but I didnt find API doc.
You may be able to create a new ThingHTTP and enter the url you gave above with your credentials. Persing the result can sometimes be difficult, so leave the parse string part empty for now. Id start with the GET method, but also try the post since you have to supply credentials. Leave the host blank or use
If solytic has a documented API, you should be able to read their doc to get it working. If its not an open aPI, ThingHTTP probably wont work for you, Im sorry.


More Answers in the  ThingSpeak Community




Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!