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

@rakwireless/ltr-390uv

v1.0.0

Published

A Node-RED node providing access to the LTR-390UV I2C digital UV sensor

Downloads

7

Readme

@rakwireless/ltr-390uv

A node providing access to ltr-390uv, measuring and calculating lux and uvi(ultraviolet index).

version downloads

Install from Node-RED

From within NodeRED, visit the top right menu, select Manage palette and then the Install tab. Look for @rakwireless/ltr-390uv and install it.

Manual installation (development)

Please install @rakwireless/ltr-390uv node with the following commands. If you use docker of Node-RED, you may need to replace ~/.node-red with /usr/src/node-red,

git clone https://github.com/RAKWireless/node-red-nodes.git

then copy node-red-contrib-ltr-390uv directory to the node_modules directory,

cp -rf node-red-nodes/node-red-contrib-ltr-390uv ~/.node-red/node_modules

lastly, change to the node-red-contrib-ltr-390uv directory and install the node,

cd ~/.node-red/node_modules/node-red-contrib-ltr-390uv && npm install

Tips: After the installation of @rakwireless/ltr-390uv is finished, please restart your Node-RED service. Otherwise, the node cannot be found/added to the new flow.

Usage

NOTE: Please make sure that user has the permissions to access i2c devices, otherwise user can not read from the ltr-390uv chip.

To get the lux and uvi reading from the ltr-390uv, you need to select the correct setting for @rakwireless/ltr-390uv node.

Name

Define the msg name if you wish to change the name displayed on the node.

/dev/i2c-?

The i2c bus number, the default value is 1 , it means '/dev/i2c-1'.

i2c_Address

The i2c slave address for the ltr-390uv, by default is set to 0x53.

gain

Define the als/uvs measuring gain range. the default value is 1x

resolution

Define the als/uvs measuring resolution, the default value is 16 Bit

The output of the node is a payload contains the raw als data, raw uvs data, the calculated lux and the calculated uvi.

image-20220512120228997

Examples

  • rak12019-reading - Measure lux and uvi using WisBlock UV sensor RAK12019 from Node-RED.

License

This project is licensed under MIT license.