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

rev-service

v0.0.5-8

Published

A webservice for controlling and monitoring micro-controllers

Downloads

3

Readme

| Branch | Build status | Code coverage | Tests | | :------ | :------------------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | :------------------------------------------------------------------------------ | | develop | Gitlab pipeline status (branch) | coverage report | Report | | master | Gitlab pipeline status (branch) | coverage report | Report |

GitHub tag (latest by date)

npm

Gitlab repository  Github repository 

Rev

Rev is a platform that allows you to control and monitor micro-controllers real-time. All micro-controllers capable of running firmware with an implementation of the firmata protocol can be connected using either a serial or ethernet connection. Useful for sensor readouts, home-automation or other projects that require real-time communication with your homemade hardware.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

  • A micro-controller running firmware with an implementation of the firmata protocol.
    • A more detailed explanation on how to achieve this is given here.
  • Nodejs. Tested on 11.14.0.
  • NPM (this usually comes with the Nodejs installation).

Installing

Using GIT

Clone the repository

$ git clone https://github.com/daftfox/rev-service

Install dependencies

$ cd rev-service
$ npm install

If you want to use rev in conjunction with sqlite, you seem to have to install the required package manually according to their documentation.

$ npm install sqlite3

You should now be able to execute the rev service by running:

$ npm start

If you want to execute the rev service from other directories, run the following command in the root of the project directory to make a symbolic link to rev in your global node_modules:

$ npm link

Using NPM

Install the package

$ npm install -g rev-service

After which you should be able to execute the rev service anywhere by running the following command:

$ rev [options]

Options

The following options can be added as flags when executing rev.

| flag | purpose | default | | :------------- | :---------------------------------------------------------------------- | :-------- | | --ethernetPort | Port from which the ethernet service will be served | 3001 | | --debug | Enable debug logging | false | | --serial | Enable serial interface | false | | --ethernet | Enable ethernet interface | false | | --dbSchema | The default schema to use | rev | | --dbHost | The database server's host address | localhost | | --dbPort | Port on which the database server is running | 3306 | | --dbUsername | Username to log in to the database server | null | | --dbPassword | Password to log in to the database server | null | | --dbDialect | The database server's dialect (mysql, postgres, mariadb, sqlite, mssql) | sqlite | | --dbPath | Path to the database file (only when using sqlite) | :memory: |

Interfaces

Rev is able to connect to micro-controllers using the following interfaces:

Serial

The rev scans all host serial interfaces for plugged in devices running the firmata protocol.

Ethernet

Devices are able to connect using nothing but a regular network connection. Wireless or wired. Rev binds to port 9000 by default.

Running the tests

The rev service contains an extensive suite of unit tests executed by Jest. These tests can be executed using:

$ npm test

Break down into end to end tests

Todo

todo

And coding style tests

Todo

todo

Deployment

Todo

Flashing a micro-controller with firmata firmware

A comprehensible guide flashing firmata firmware onto your micro-controller

Prerequisites

Open the firmware downloaded from firmatabuilder using the Arduino IDE and connect your board. Select the correct board type under 'tools' and hit 'upload'.

Built With

Todo

Contributing

Todo Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

  • Timothy Claassens - Owner - daftfox

See also the list of contributors who participated in this project.

License

License

This project is licensed under the GNU General Public License.

Acknowledgments

Todo