npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@gokturk413/myalarmviewer

v1.0.0

Published

Alarm viewer web components for ioBroker WebUI

Readme

@gokturk413/iobroker.webui-myalarmviewer

MyAlarm Viewer Web Components for ioBroker WebUI - Real-time and historical alarm viewing with export functionality.

Features

  • Real-time Alarm Viewer - Live alarm monitoring with sound notification
  • Historical Alarm Viewer - View past alarms with date range selection
  • Export Functionality - Export to PDF, Excel (XLSX), or CSV
  • Tabulator.js - Advanced table with sorting, filtering, pagination
  • Flatpickr - Modern date range picker (replaces Syncfusion)
  • Web Components - Custom elements for easy integration
  • TypeScript - Type-safe development
  • Themeable - Light, Dark, Midnight themes

Installation

npm install @gokturk413/iobroker.webui-myalarmviewer

Usage in ioBroker WebUI

1. Install Package

cd /opt/iobroker/iobroker-data/files/webui.0/
npm install @gokturk413/iobroker.webui-myalarmviewer

2. Import in WebUI

Create a custom control or add to your project:

import '@gokturk413/iobroker.webui-myalarmviewer';

3. Use Components in HTML

Real-time Alarm Viewer:

<alarm-viewer
  oid-json="myalarm.0.alarms"
  oid-is-alarm="myalarm.0.isAlarmActive"
  oid-sound="myalarm.0.soundEnabled"
  oid-ack="myalarm.0.acknowledge"
  theme="midnight"
  auto-scroll="true"
  max-rows="100">
</alarm-viewer>

Historical Alarm Viewer:

<historical-alarm-viewer
  oid-json="myalarm.0.historicalAlarms"
  theme="midnight"
  default-days="7">
</historical-alarm-viewer>

Properties

AlarmViewer Properties

| Property | Type | Default | Description | |----------|------|---------|-------------| | oid-json | string | "" | State ID for alarm JSON data | | oid-is-alarm | string | "" | State ID for alarm status | | oid-sound | string | "" | State ID for sound control | | oid-ack | string | "" | State ID for acknowledge | | sound-file | string | "sounds/alarm.mp3" | Custom sound file path | | theme | string | "midnight" | Theme: light, dark, midnight | | auto-scroll | boolean | true | Auto-scroll to new alarms | | max-rows | number | 100 | Maximum rows to display |

HistoricalAlarmViewer Properties

| Property | Type | Default | Description | |----------|------|---------|-------------| | oid-json | string | "" | State ID for historical alarm data | | theme | string | "midnight" | Theme: light, dark, midnight | | default-days | number | 7 | Default days range |

Alarm Data Format

interface AlarmData {
  id: string;
  timestamp: number | string;  // ISO date string or Unix timestamp
  message: string;
  type: 'alarm' | 'warning' | 'info';
  acknowledged: boolean;
  source?: string;
  priority?: number;
}

Example:

[
  {
    "id": "alarm-001",
    "timestamp": "2026-03-08T10:00:00Z",
    "message": "High temperature detected",
    "type": "alarm",
    "acknowledged": false,
    "source": "Sensor-A1",
    "priority": 1
  }
]

Development

Build

npm run build

Watch Mode

npm run watch

Dev Server

npm run dev

Dependencies

  • @node-projects/base-custom-webcomponent - Base for web components
  • tabulator-tables - Advanced table (replaces jQuery)
  • flatpickr - Date picker (replaces Syncfusion)
  • jspdf + jspdf-autotable - PDF export
  • xlsx - Excel export

Differences from VIS Widget

| Feature | VIS Widget | WebUI Component | |---------|------------|-----------------| | Framework | jQuery + EJS | Web Components + TypeScript | | Date Picker | Syncfusion (paid) | Flatpickr (free) | | Build | Manual files | npm package with Vite | | Distribution | Local files | npm registry | | Theming | CSS classes | Dynamic theming | | Reusability | VIS only | Any web project |

License

MIT © gokturk413

Author

Kamran Mustafayev ([email protected])