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

gqgeiger

v1.0.7

Published

An abstraction library for communicating with the GQ Electronics GMC range of Geiger counters

Readme

node-gqgeiger

NPM

An abstraction library for communicating with the GQ Electronics GMC range of Geiger counters

Note for Windows users

If you are having trouble connecting your Geiger counter via USB, it's possible that the latest Prolific drivers on your PC are rejecting the chip in the device. Click here for a fix!

Confirmed compatibility

  • GMC-320 Plus

Please make a pull request for this README if the library works on your (different) counter!

Install

npm install --save gqgeiger

Quick Example

const GQGeiger = require('gqgeiger');

const myGeiger = new GQGeiger("COM4", 9600);

setInterval(function(){
	myGeiger.getCPM(function(err, cpm){
		if(err){
			console.log(err);
			return;
		}
		console.log(cpm);
	});
}, 2000);

API

new GQGeiger(string portName, number baudRate)

Connects to the Geiger counter.

Arguments

  • portName - The name of the port to open. Windows ports are typically labeled COMn, where n is the port number.
  • baudRate - The baud rate of the device. The default for the GMC-320 is 9600.

getCPM(function callback)

Gets the current counts-per-minute value from the Geiger counter.

Arguments

  • callback(mixed err, number cpm)

getDoseRate(function callback)

Gets the current dose rate from the Geiger counter in μSv/h.

Arguments

  • callback(mixed err, number doseRate)

getVoltage(function callback)

Gets the current Geiger counter battery voltage.

Arguments

  • callback(mixed err, number voltage)

getSerial(function callback)

Gets the Geiger counter's serial number.

Arguments

  • callback(mixed err, string serial)

getTemp(function callback)

Gets the current temperature from the Geiger counter in degrees Celsius.

Arguments

  • callback(mixed err, number temp)

getGyro(function callback)

Gets the current gyroscope values from the Geiger counter in two-byte buffers.

Arguments

  • callback(mixed err, object gyro)
    • gyro.x - Two-byte buffer of the x value of the gyroscope
    • gyro.y - Two-byte buffer of the y value of the gyroscope
    • gyro.z - Two-byte buffer of the z value of the gyroscope

reboot()

Restarts (or starts if off) the Geiger counter.

powerOff()

Powers off the Geiger counter.

powerOn()

Powers on the Geiger counter.