Settings Page for Shell Script #220
-
Hi, I'm trying to write a simple shell script that should periodically check a URL and play a sound for a defined HTTP response (it's an axis audio device). The shell script with the URL query works. I would just like to have a GUI to enter the parameters. I tried the hint in this answer #163 (comment). Unfortunately, I don't have a link to the HTML page for the apps in the Axis device. I have a Settings submenu, but there are no fields there. I would be very happy about advice. Shell Script Base: https://github.com/AxisCommunications/acap-native-sdk-examples/tree/main/shell-script-example |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Excuse me. my mistake. I took hidden:string from another code in the paramConfig. That was the error of the blank seeing screen. And the button for the html page is only displayed when the app is running. Sorry. I could have figured that out myself. I have one more question. What is the best way to query the app parameters via shell? I currently do this by calling /usr/local/packages/urlcheck/conf/urlcheck.conf |
Beta Was this translation helpful? Give feedback.
There's no supported way to query parameters from a shell script today.
The supported way to query parameters from an ACAP application is to use the solution in axparameter or the one from vapix example. Both are examples in C.