# How to get alarm in my html custom widget

**URL:** <https://community.cumulocity.com/t/how-to-get-alarm-in-my-html-custom-widget/3323>\
**Category:** Forum\
**Tags:** device-connectivity, cumulocity\
**Created:** [March 28, 2023, 5:47am UTC](https://community.cumulocity.com/t/how-to-get-alarm-in-my-html-custom-widget/3323 "2023-03-28T05:47:49Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Stefan\_Witschel](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/stefan_witschel/32/31955_2.png) [@Stefan\_Witschel](https://community.cumulocity.com/u/Stefan_Witschel)\
**Post date:** [March 29, 2023, 9:29am UTC](https://community.cumulocity.com/t/how-to-get-alarm-in-my-html-custom-widget/3323/4 "2023-03-29T09:29:47Z")

</div>

Please have a look here: [Cumulocity IoT Web Development Tutorial - Part 3: Query data from Cumulocity IoT](https://community.cumulocity.com/t/cumulocity-iot-web-development-tutorial-part-3-query-data-from-cumulocity-iot/7678#query-data-using-c8yclient-4)

The c8y/client comes with an AlarmService:  
[http://resources.cumulocity.com/documentation/websdk/client/classes/alarmservice.html](http://resources.cumulocity.com/documentation/websdk/client/classes/alarmservice.html)

So you can easily query any data (also alarms) with it and visualize that data accordingly.

---

_[View the full topic](https://community.cumulocity.com/t/how-to-get-alarm-in-my-html-custom-widget/3323)._
