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 🙏

© 2024 – Pkg Stats / Ryan Hefner

pimatic-stats

v0.1.14

Published

Get Pimatic statistics from a Pimatic home automation system

Downloads

2

Readme

pimatic-stats

Getting statistics from a Pimatic home automation system. This plugin provides information on the configuration of your Pimatic system. This information is normally only available via the api. The number of devices, rules, variables, pages and groups can be selected and will be available as a variable and visible via the GUI. For comparison the 'size' of Pimatic is added. The size shows how big the configuration is. The higher the size the more devices and rules are used.

Installation

To enable the Stats plugin add this to the plugins section via the GUI or add it in the config.json file.

...
{
  "plugin": "Stats"
}
...

Stats device

When the plugin is installed (including restart) a Stats device can be added. Below the settings, with the items that are available.

{
  "id": "<stats-device-id>",
  "class": "StatsDevice",
  "show": ["none", "all"]
  "statistics":
    "items": [
       "devices", "rules", "variables", "pages", "groups", "plugins", "database",
       "index", "pluginsOutdated", "pimaticVersion", pimaticOutdated", "npmVersion",
       "nodeVersion"
     ]
}

Usage

The following variables are available to you in Pimatic for the StatsDevice. All variables are initially visible. In the device config you can remove/add them.

  • ${stats device id}.devices - number of devices
  • ${stats device id}.rules - number of rules
  • ${stats device id}.variables - number of variables. Devices specific and custom
  • ${stats device id}.pages - number of pages
  • ${stats device id}.groups - number of groups
  • ${stats device id}.index - the size of the Pimatic system, based on total number of devices and rules
  • ${stats device id}.pluginsOutdated - number of outdated Plugins. This is checked every day at midnight.
  • ${stats device id}.database - number of errors in the pimatic database. The number of errors is shown or if none "ok". This is checked every day.
  • ${stats device id}.pimaticVersion - Pimatic version. This is checked every day.
  • ${stats device id}.pimaticOutdated - whether Pimatic is outdated. This is checked every day.
  • ${stats device id}.npmVersion - Npm version. This is checked every day.
  • ${stats device id}.nodeVersion - actual Node version Pimatic is using

All variables are available and can be used without adding the variable to the GUI. In the device config you can set "show" to "all". All variables will become visible except the variables you add in "statistics". When you set "show" to "none" only the variables that are added in "statistics" are shown. After changing the config, reload the page to make the change visible. Sparklines are disabled by default. When you remove errors in the database the number of errors shown in this device is not updated until midnight.


The plugin is Node v10 compatible and in development. You could backup Pimatic before you are using this plugin!