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

giri-system-control

v2.2.2

Published

Garden irrigator System - system control module

Downloads

14

Readme

giri-system-control

npm version Build Status Coveralls

This is a seneca plugin, that contains the system level microservices of the giri system.

Prerequisites

None.

Installation

Run the install command:

npm install

Run tests:

npm test

To see the coverage, run:

npm run coverage

Usage

To load the plugin:

    seneca.use('giri-system-control')

Options

There are no options for this plugin.

Actions

All actions provide results via the standard callback format: function(error,data){ ... }.

role: giri-system-control, cmd: createSystem

Create a new system, with a generated unique id. If name is not defined, then it will give the id as the name too.

Parameters:

  • payload: The system object, to create:
    • name: the system object may have a name property.

Response:

  • The system object, incl. the id and the name properties.

role: giri-system-control, cmd: updateSystem

Updates the properties of a system, selected by its id. If there is no system found with the given id, then it creates a new system with this id, and sets its actual properties according to the input parameters.

Parameters:

  • payload: The system object to be updated (or created):
    • id: the unique id of the system,
    • name: the system object may have a name property.

Response:

  • The updated system object.

role: giri-system-control, cmd: getSystems

Get a list on all of the systems available.

Parameters:

  • None

Response:

  • The array of available system objects.

role: giri-system-control, cmd: getSystem

Get a system selected by its id.

Parameters:

  • payload: An object, which holds the id of the system to find.
    • id. The id of the system to find.

Response:

  • The system found, or null if the system is not found.

role: giri-system-control, cmd: resetSystem

Reset the whole system selected by its id. Clusters and sectors belong to the system will be reset.

Parameters:

  • payload: An object, which holds the id of the system to reset.
    • id. The id of the system to reset.

Response:

  • An empty {} object.

role: giri-system-control, cmd: getTime

Get the actual time used by the systems.

Parameters:

  • None

Response:

  • An object, with time property, which contains the actual time in UTC.

role: giri-system-control, cmd: setTime

Set the actual time to use by the systems.

Parameters:

  • An object, with time property, which contains the actual time to set in UTC.

Response:

  • An object, with time property, which contains the actual time in UTC.

References