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

tilt-send-data

v1.0.2

Published

Nodejs Command Line Utility to read Tilt Hydrometers and Post data to a Cloud Service

Downloads

20

Readme

tilt-send-data

Nodejs Command Line Utility to read Tilt Hydrometers and Post data to a Cloud Service (ubidots.com)

NOTE: The source code of this repository is available at Github.

Requirements

Installations Required

Using npm, install the utility:

$ npm install -g tilt-send-data                                                                                                                                                                                                                                                

Command Line

The command requires the following arguments to be able to handle data data with Ubidots:

-T --token [token] -> Ubidots TOKEN
-t --timeout [timeout] -> Interval timeout to send the request (in minutes)

Reference to the following guide to know where is located the TOKEN of your Ubidots Account.

To run the command reference to the structure below:

$ tilt-send-data -T "{Ubidots_TOKEN}" -t {timeout_in_minutes} 

Command example:

$ tilt-send-data -T "BBFF-KvcUDRGARBkUDR5bogMVuKVcKigvsYAMvVVr9H278H2u2M34KvSne8R" -t 1

The command above will handle a request with temperature, gravity, and rssi values every one minute.

Server Response:

{ 
  rssi: [ { status_code: 201 } ],
  temperature: [ { status_code: 201 } ],
  gravity: [ { status_code: 201 } ] 
}

Optional Arguments

  • Data values optional arguments:

As optional arguments you can handle measured power, accuracy, and proximity values:

-m, --measuredPower [measuredPower] -> add measured power reading to the request
-a, --accuracy [accuracy] -> add accuracy reading to the request
-p, --proximity [proximity] -> add reading to the request

To run the command with the optional arguments reference to the structure below:

$ tilt-send-data -T "{Ubidots_TOKEN}" -t {timeout_in_minutes} -m "{device_label_mesuredPower}" -a "{device_label_accuracy}" -p "{device_label_proximity}"

Command example:

$ tilt-send-data -T "BBFF-KvcUDRGARBkUDR5bogMVuKVcKigvsYAMvVVr9H278H2u2M34KvSne8R" -t 1 -m "mesuredPower" -a "accuracy" -p "proximity"

The command above will handle a request with the default data (temperature, gravity, and rssi), plus the measured power, accuracy, and proximity values every one minute.

Server Response:

{ 
  temperature: [ { status_code: 201 } ],                                                                                                                                                                                                                                       
  proximity: [ { status_code: 201 } ],                                                                                                                                                                                                                                         
  gravity: [ { status_code: 201 } ],                                                                                                                                                                                                                                           
  rssi: [ { status_code: 201 } ],                                                                                                                                                                                                                                              
  mesuredpower: [ { status_code: 201 } ],                                                                                                                                                                                                                                      
  accuracy: [ { status_code: 201 } ] 
} 
  • Ubidots Server optional argument:

The host assigned by default is industrial.api.ubidots.com which is the one assigned for the Ubidots Business License. If you are under the Ubidots Education License, you should use the host things.ubidots.com. To replace it, you ought to assign it as argument:

-u, --url [url] -> post to specified url 

Addtionals Resources

For more information about the Ubidots Cloud visualization with the incoming data, reference to the following guide