Community discussions

MikroTik App
 
ubikrotik
Member Candidate
Member Candidate
Topic Author
Posts: 158
Joined: Wed May 25, 2016 3:56 am

webset string in an URL using api?

Sun Dec 10, 2023 6:14 pm

I use a board based on microchip 32bit to push data over thingspeak server and make graphs and trigger event.

It works great, the thing that is cool is that you can send url string to the right channel. For exemple: api.thingspeak.com/update?api_key=MY_API_TOKEN&field3=92, this command send the number "92" to the field #3 of my channel (api token).

I'd like to know if i can use mikrotik to replace thingspeak server and send data to it instead.

Is ther a way to send a command in the URL directly? My microchip board doesnt allow cURL or json or anything like that, it has a webUI and options are limited.

Thanks
 
ubikrotik
Member Candidate
Member Candidate
Topic Author
Posts: 158
Joined: Wed May 25, 2016 3:56 am

Re: webset string in an URL using api?

Sun Dec 10, 2023 6:55 pm

im lookinf for something like that : http://192.168.10.1/ip/address/add=addr ... rface=asdf
 
optio
Long time Member
Long time Member
Posts: 696
Joined: Mon Dec 26, 2022 2:57 pm

Re: webset string in an URL using api?

Sun Dec 10, 2023 7:06 pm

ROS REST API uses json, there is no simple unauthorized HTTP GET with query params to control ROS. You can create external http service (container can be used for this) that wraps REST API requests for things that you need to control or fetch.

Who is online

Users browsing this forum: boocko, malks and 4 guests