Jump to content
  • 0

HTTP request every 1 minute


Oleksii87
 Share

Question

Hi dear forum Community,

Please advise if it's possible to do HTTP requests say every 1 minute from Keenetic devices.

I'd like to be able to monitor availability of my home electricity and internet provider via https://healthchecks.io/ .


This is what they do https://healthchecks.io/docs/configuring_checks/ :

Healthchecks.io is a service for monitoring cron jobs (see guide) and similar periodic processes:

  • Healthchecks.io listens for HTTP requests ("pings") from your cron jobs and scheduled tasks.
  • It keeps silent as long as pings arrive on time.
  • It raises an alert as soon as a ping does not arrive on time.

Healthchecks.io works as a dead man's switch for processes that need to run continuously or on a regular, known schedule. 

This is what they need https://healthchecks.io/docs/http_api/ :
 

All ping endpoints support:

  • HTTP and HTTPS
  • HTTP 1.0, HTTP 1.1 and HTTP 2
  • IPv4 and IPv6
  • HEAD, GET, and POST requests methods. The HTTP POST requests can optionally include diagnostic information in the request body. If the request body looks like a UTF-8 string, Healthchecks.io stores the request body (limited to the first 100KB for each received ping).

Successful responses will have the "200 OK" HTTP response status code and a short "OK" string in the response body.


It's possible on Mikrotik routers and my friends set it up,  it's possible from even old Android smartphone, but is it possible from Keenetic? I'm sure it should be, but please advise - how!

I tried to dig into usage of https://curl.se/ with Keenetic, but little luck. I found https://community.openhab.org/t/presence-detection-with-keenetic-or-maybe-other-opkg-routers/125250 , I installed OPKG packages in System Components, but - since I am using Keenetic Air - I don't have a USB flash drive port to execute opkg install curl :( Is it dead end? Is there any other way to do this, maybe simpler, from CLI or any other?

Thanks forward for any advice! 

image.png

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...