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

kiot-cordova-plugin-home-console

v1.4.0

Published

This plugin provides multiple functionalities including APK updates, kiosk mode, battery status monitoring, brightness control, and more for Android and iOS apps.

Readme

KIOT Cordova Plugin Home Console

This plugin allows your Android app to download and install compressed updates without the Google Play Store.

Features

  • ApkUpdater: Download and install APK updates
  • KioskPlugin: Kiosk mode functionality
  • RockChipInterface: RockChip specific interface
  • Haptic: Haptic feedback control
  • RelayControl: Relay control functionality
  • Insomnia: Keep device awake
  • SystemControls: Battery status monitoring and brightness control
  • EdgeToEdge: Edge-to-edge display detection and view adjustment for Android

Installation

cordova plugin add kiot-cordova-plugin-home-console

SystemControls Plugin

The SystemControls plugin provides battery status monitoring and brightness control functionality.

Battery Status

Get current battery status:

// Get current battery status
SystemControls.getBatteryStatus().then(function(status) {
    console.log('Battery level: ' + status.level + '%');
    console.log('Is plugged: ' + status.isPlugged);
}).catch(function(error) {
    console.error('Error getting battery status:', error);
});

Monitor battery status changes:

// Start monitoring battery status
SystemControls.startBatteryMonitoring().then(function(status) {
    console.log('Initial battery status:', status);
}).catch(function(error) {
    console.error('Error starting battery monitoring:', error);
});

// Listen for battery status changes
SystemControls.addEventListener('batterystatus', function(status) {
    console.log('Battery status changed:', status);
});

// Listen for power connection events
SystemControls.addEventListener('powerconnected', function(status) {
    console.log('Device plugged in');
});

SystemControls.addEventListener('powerdisconnected', function(status) {
    console.log('Device unplugged');
});

// Stop monitoring when done
SystemControls.stopBatteryMonitoring().then(function() {
    console.log('Battery monitoring stopped');
}).catch(function(error) {
    console.error('Error stopping battery monitoring:', error);
});

Brightness Control

Control screen brightness:

// Get current brightness (0.0 to 1.0)
SystemControls.getBrightness().then(function(brightness) {
    console.log('Current brightness: ' + brightness);
}).catch(function(error) {
    console.error('Error getting brightness:', error);
});

// Set brightness (0.0 to 1.0)
SystemControls.setBrightness(0.5).then(function() {
    console.log('Brightness set to 50%');
}).catch(function(error) {
    console.error('Error setting brightness:', error);
});

// Get system brightness (0 to 255)
SystemControls.getSystemBrightness().then(function(brightness) {
    console.log('System brightness: ' + brightness);
}).catch(function(error) {
    console.error('Error getting system brightness:', error);
});

// Set system brightness (0 to 255)
SystemControls.setSystemBrightness(128).then(function() {
    console.log('System brightness set to 128');
}).catch(function(error) {
    console.error('Error setting system brightness:', error);
});

Ionic/Angular Usage

import { SystemControls } from 'kiot-cordova-plugin-home-console';

// Battery status
const status = await SystemControls.getBatteryStatus();
console.log(`Battery: ${status.level}%, Plugged: ${status.isPlugged}`);

// Brightness control
await SystemControls.setBrightness(0.7); // 70% brightness
const brightness = await SystemControls.getBrightness();
console.log(`Current brightness: ${brightness}`);

API Reference

SystemControls

Battery Methods

  • getBatteryStatus(): Returns current battery status
  • startBatteryMonitoring(): Start monitoring battery changes
  • stopBatteryMonitoring(): Stop monitoring battery changes
  • addEventListener(event, callback): Listen for battery events
  • removeEventListener(event, callback): Remove battery event listener

Brightness Methods

  • getBrightness(): Get current app brightness (0.0-1.0)
  • setBrightness(brightness): Set app brightness (0.0-1.0)
  • getSystemBrightness(): Get system brightness (0-255)
  • setSystemBrightness(brightness): Set system brightness (0-255)

Events

  • batterystatus: Fired when battery level or charging status changes
  • powerconnected: Fired when device is plugged in
  • powerdisconnected: Fired when device is unplugged

Permissions

The SystemControls plugin requires the following permissions:

  • android.permission.WRITE_SETTINGS (for system brightness control)

Supported Platforms

  • Android
  • iOS

License

MIT