Custom settings page and parameter modifying #797
-
Hi there, first of all, I'm new to AXIS ACAP, but I have already got my own easy test application running on an axis camera. I want to add some parameters and axparameter API seems to be the key for this. However, it seems that there is no native option for dependency or plausibility check. For example, I want to setup a schedule with start and end time as parameters. It is clear that the end time must be greater than the start time. Since, I can't check those values in the settings page of the axis camera itself, I have to check those values in the callback functions of my application and update those values if they are not valid. Is this true? My other idea is building a custom settings page like the AXIS Video Motion Detection app has already built in. There is a button where I can open the settings of this app and I get relocated to http:///local/vmd/config.html . Is this just a regular HTML/JS website and is there any "framework" that give us the ability to build those too? The other question is: how to update the parameter of my app over this custom settings page? At the moment, my conclusion would be to use the VAPIX HTTP API and make HTTP requests with Javascript. Since, I can use Javascript, I can check the values before sending them to the VAPIX api. Is this also the way other ACAP apps with custom settings do this? I'm glad for any help and input! Thank you very much! Br |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
This automatically generated reply acts as a friendly reminder. Answers to your questions will most often come from the community, from developers like yourself. You will, from time to time, find that Axis employees answers some of the questions, but this is not a guarantee. Think of the discussion forum as a complement to other support channels, not a replacement to any of them. If your question remains unanswered for a period of time, please revisit it to see whether it can be improved by following the guidelines listed in Axis support guidelines. |
Beta Was this translation helpful? Give feedback.
-
Hi @bselc , |
Beta Was this translation helpful? Give feedback.
Hi @bselc ,
I suggest you take a look at this example: opc-ua-colorchecker-acap/blob/main/html/settings.html