Page 1 of 1

Accessing cgi-bin page from Dashboard

Posted: Mon 02 Nov 2020 2:34 am
by radilly
This might be a dumb question but is there a straightforward way to add a "relative" link into interface/index.html to a cgi-bin script sevred by apache on the same host? For the most part I'm running a pretty "stock" installation of CMX.

Why "relative"? Because I'm often tinkering, and switching Pis around ... and I avoid static IP addresses (so IP addresses tend to follow the hardware, rather than the SD card). :o

I am running on a Pi, and I typically test my cgi-bin installation with:

Code: Select all

curl localhost/cgi-bin/pi_health.py
I have been working on a Python script that collects some information about the state of the Pi which I run on most of my Pis. It's not terribly sophisticated but helpful in getting a quick overview...


2020-11-01_21-26-07.jpg
Thanks,
Bob

Re: Accessing cgi-bin page from Dashboard

Posted: Mon 02 Nov 2020 1:26 pm
by radilly
In fairness, if I use absolute addresses I should be able to write some bash / sed scripting to fix up the headers across the files in interface...