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

heatingpro-efficiency

v1.0.7

Published

Utility functions for MonitoringPro efficiency calculations with flexible unit support (GJ, kWh, MWh)

Readme

MonitoringPro Utils

Utility functions for MonitoringPro efficiency calculations with flexible unit support.

Installation

npm install heatingpro-efficiency

Usage

const { computeEfficiency, areMetersBeingWrittenOff } = require('heatingpro-efficiency');

// Compute efficiency for data in GJ (default)
const result1 = computeEfficiency(row, prevRow, monthlyEffectivityConstant);

// Compute efficiency with field units mapping
const result2 = computeEfficiency(row, prevRow, monthlyEffectivityConstant, fieldUnits);

// Check if meters are being written off
const metersActive = areMetersBeingWrittenOff(valuesData, fieldUnits);

Functions

computeEfficiency(row, prevRow, monthlyEffectivityConstant, fieldUnits)

Computes efficiency based on heat meter readings and gas consumption.

Parameters:

  • row - Current row data object
  • prevRow - Previous row data object
  • monthlyEffectivityConstant - Monthly effectivity constant value
  • fieldUnits (optional) - Object mapping field names to their units (e.g., { "VO1": "mwh" })

Returns: Object with ucinnost (efficiency) and heatUnits values

areMetersBeingWrittenOff(valuesData, fieldUnits)

Checks if heat meters (VO1-VO8, MT TUV) exist and are being written off.

Parameters:

  • valuesData - Array of row data objects
  • fieldUnits (optional) - Object mapping field names to their units

Returns: true if meters exist and are being written off, false otherwise

Supported Heat Units

  • GJ (Gigajoules) - Default unit, converts using 1 GJ = 277.778 kWh
  • kWh (Kilowatt-hours) - No conversion needed
  • MWh (Megawatt-hours) - Converts using 1 MWh = 1000 kWh

Version History

  • 1.0.7 - Added areMetersBeingWrittenOff function to check if heat meters exist and are being written off
  • 1.0.6 - Previous version
  • 1.0.5 - Added flexible unit support for heat calculations

License

ISC