I am getting this alarm on Cumulocity through Mqtt now i want to show these alarm on my custom widget i mean how i can listen these alarm on this widget which i have develop in cunulocity using html
not sure where to start
First of all your alarms and devices look awkward.
The alarm type seems to a a total mess and should follow the principal “prefix_” Instead it seems you have a json string used as a type which makes it very hard to use within the Cumulocity IoT platform.
Your device name also looks strange. You should have a common naming pattern how you would name your device. Using blanks and underscores and also special characters in the name like % makes it very hard to read and work with the platform.
Mainly you cannot just use HTML but you need to write a web app (angular preferred) with a component using @c8y/client to retrieve the alarm and visualize it in your widget.
Thank You @Stefan_Witschel , I will follow your suggestion it will help me to develop web app , but how i will able to retrieve alarms for this ,what I will use either from API or from Cumulocity which I have in JSON format on Cumulocity?
Hi @Stefan_Witschel I have gone through the above link which u have provided me ,
I am getting confuse with this web sdk docs ,
I want to develop custom widget using angular so that I can show my alarms on Cumulocity using those custom widget , I have alarm API I want to integrate it in my angular application once custom widget work done and then want to deploy this application on Cumulocity “cloud you please refer me some step by step guide or example” so that I can easily develop my custom widget in angular and deploy it on Cumulocity it will be Helpfull for me ,this will give me clear under standing .