Hi everyone,
I’m trying to add temporary tags, my idea is put a tag for a week, for exemple, any suggestion?
Hi everyone,
I’m trying to add temporary tags, my idea is put a tag for a week, for exemple, any suggestion?
This is not possible out of the box. You will need to manually track the tags you want to remove at a specific date. My suggestion is to use a VParam to track this and store the data in the vparam as encoded JSON. Then in your provision script read back the vparam, turn the string back into a json object, do what is needed and update your vparam as necessary. I’ve used this tactic to track which diagnostic comands are currently running on the CPE so I know which values to refresh, capture and send to the server when a 8 DIAGNOSTICS COMPLETE
message comes in.
Here is a vparam that will allow you to store any data.
let value;
if ("value" in args[1]) {
// Set declared value
value = args[1].value;
} else if ("value" in args[3]) {
// No declared value, keep current value
value = args[3].value;
} else {
// No current value, use default
value = ['{}', 'xsd:string'];
}
return {writable: true, value: value};
where can I learn about VParam? GenieACS documentation is too generic
VParams are a GenieACS concept, so you would need to read the documentation. I didn’t find the docs on vparams to be generic.
Can you help me to do that? where should I start? I’m totally lost.
How do I call my VParam to device?
I got it, thanks for you help