Good evening, I have 3 questions about Attributes in assets that would help me a lot in the configuration:
-Is it possible to group attributes in an asset? I have some data that i receive and some data that i send, i’d like two make 2 groups of attributes in the same asset
-From the previous question, i’d like to change order of the attributes. For now i’m using the default alfabetical order with Rx and Tx at the beginning of attribute name to group them, but i need to order them like a csv that was given to me
-Is it possible to import attributes, at least the names?
p.s. i’m also having problems with attribute names, what’s the maximum length and any forbidden symbol? Can’t find it in the documentation
It is possible to add/change panels that are shown on the Assets page. This can be done through the manager_configuration per asset type. Note that the admin user will not see these ‘restrictions’, but any other user will. See: User Guide: Configuring the Manager UI · openremote/openremote Wiki · GitHub the section labeled Asset - viewer
Currently its alphabetical per panel
Import from a csv? This can be done with a custom agent but is not very straightforward if you are new to the codebase.
p.s. we always use camelcase for attributenames. The UI shows them friendly/in sentence case in view mode. E.g. myAttribute > My attribute. Do not use symbols/white spaces.
If you would like some more help it could be useful if you explain a bit more about your use case.
For the use case, i add some PLCs that send/receive data from OpenRemote, so i’d like to group attributes by sent and received. Also i’d like to order them for DB address without having to write it in the attribute name
1: I’ll try to add 2 panels for Send/Receive attributes. I wonder, when i add a new attribute where does it ask me in which panel it has to be put?
2: ok, thanks
3: Import from anything possible, i have 30+ attributes for every asset, if i could avoid to write them manually it would be a huge boost to the configuration speed
Hi Don
i checked the link you gave me - many thanks - but seems that i need to declare in the include which attributes I want in every panel and this means rebuilding the instance every time i set a new asset (my assets have all different attributes). Can i use some sort of wildcard - like RX* - or is there another way to group them up?
Hi Don
thanks again for your help
I tried editing the json but now I have blank page. Do i need to write the full code or can i just modify the things that I need?
I edited as follows
edited: It works now for the attributes many thanks!
However. if i write an attribute that doesn’t begin with any of rx* or tx* it doesn’t show. Should i make a new panel like “generic” and include [*] ?
Hi Don, it’s me again
I didn’t open a new topic because it’s still related.
My assets have tons of attributes, different every asset.
Is there a way to import a json/csv/anything to the instance to automate the creation of a full asset?
Something like:
any way i can do this? I’d like to write some code to automate this process and preformat everything so I can just take the file and upload it to OpenRemote