Replies: 4 comments 15 replies
-
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 @lbRaytec , This may give you an idea about the changes in manifest.json Snapshot of code diff from 2.0.0 and 3.0.0 Once you build a new rootless ACAP you can sign the ACAP again using ACAP Service Portal |
Beta Was this translation helpful? Give feedback.
-
Hi @lbRaytec , I used following manifest.json to host HTML pages from here {
"schemaVersion": "1.3",
"acapPackageConf": {
"setup": {
"appName": "hello_world",
"vendor": "Axis Communications",
"version": "1.0.0",
"runMode": "never",
"embeddedSdkVersion": "3.0"
},
"configuration": {
"settingPage": "index.html"
}
}
}
Just used the hello-world example and added the html folder.HTML(index.html) code from here in case if you need to recreate the example which I have tested.<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Clock and Date</title>
<style>
.clockdate-wrapper {
background-color: #333;
padding: 25px;
max-width: 350px;
width: 100%;
text-align: center;
border-radius: 5px;
margin: 0 auto;
}
#clock {
background-color: #333;
font-family: sans-serif;
font-size: 60px;
text-shadow: 0px 0px 1px #fff;
color: #fff;
}
#clock span {
color: #888;
text-shadow: 0px 0px 1px #333;
font-size: 50px;
position: relative;
top: -5px;
left: 10px;
}
#date {
letter-spacing: 3px;
font-size: 14px;
font-family: arial, sans-serif;
color: #fff;
}
</style>
</head>
<body onload="startTime()">
<div id="clockdate">
<div class="clockdate-wrapper">
<div id="clock"></div>
<div id="date"></div>
</div>
</div>
<script>
function startTime() {
var today = new Date();
var hr = today.getHours();
var min = today.getMinutes();
var sec = today.getSeconds();
var ap = (hr < 12) ? "<span>AM</span>" : "<span>PM</span>";
hr = (hr == 0) ? 12 : hr;
hr = (hr > 12) ? hr - 12 : hr;
hr = checkTime(hr);
min = checkTime(min);
sec = checkTime(sec);
document.getElementById("clock").innerHTML = hr + ":" + min + ":" + sec + " " + ap;
var months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
var days = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];
var curWeekDay = days[today.getDay()];
var curDay = today.getDate();
var curMonth = months[today.getMonth()];
var curYear = today.getFullYear();
var date = curWeekDay + ", " + curDay + " " + curMonth + " " + curYear;
document.getElementById("date").innerHTML = date;
setTimeout(startTime, 500);
}
function checkTime(i) {
if (i < 10) {
i = "0" + i;
}
return i;
}
</script>
</body>
</html>
Another best example you can follow as per my understanding:Regarding "package.conf": It is replaced by manifest.jsonRead more: What’s new in release 3.3.0 |
Beta Was this translation helpful? Give feedback.
-
Hi @lbRaytec , most likely is that some logic in your application is trying to do something it is not allowed to as the less privileged user. There are two ways you can get a 500 error from the application when using To find a segfault, the easiest way is to use the GDB debugger. But logging to the systemlog can also help you. This is most likely due to your code not checking return codes for success/failure (for e.g. Posix commands dealing with the filesystem). I have verified that the transferCgi works with a dynamic user. I did this in SDK 3.5 and with this manifest: {
"schemaVersion": "1.1",
"acapPackageConf": {
"setup": {
"friendlyName": "LegacyWeb AxHTTP",
"appName": "LegacyWeb",
"vendor": "FixedIT Consulting AB",
"embeddedSdkVersion": "2.18",
"vendorUrl": "fixedit.ai",
"runMode": "never",
"version": "0.0.1"
},
"configuration": {
"settingPage": "settings",
"httpConfig": [
{"access": "admin","name": "settings","type": "transferCgi"}
]
}
}
} |
Beta Was this translation helpful? Give feedback.
-
I am working with Axis camera where our plugin can be installed within Axis camera. Our plugin is already signed by Axis ACAP and thus it will work with Axis os 12 as well. However, our application uses root - previlages to be installed within Axis. In order to remove that I changed in the manifest file related to user and group, I set that empty. I was able to install our plugin but our plugin goes unsigned and does not work either!
Beta Was this translation helpful? Give feedback.
All reactions