What's new

http to https

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

mantielero

New Around Here
I have a microcontroller (ESP8266). It can make http calls, but not https. I would like to log the data into a google spreadsheet. To do that, I create a script in google so that I can send data like this:

Bash:
curl -L https://script.google.com/macros/s/<my_script_id>/exec?temperature=13

Is there something that I can do with asuswrt, so that I can use a http call from the microcontroller and get the router calling above url instead? I would like being able to do something like:

Bash:
curl -L http://192.168.0.1/exec?temperature=13
 
Basically you are trying to use your router as a server for a reverse proxy. There should be some packages in Entware that implement it.




But honestly, if it can execute the curl command, why don't you try to use it to log into the router via SSH and then execute the curl command.
 
To build on @Yota, if you have SSH setup on your router with a key, then from your other client machines;

ssh -p <port> -i <keyfile> admin@IP "exec?temperature=13"
 

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top