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

ospi-controller

v0.0.1

Published

A Web Controller and REST interface for Raspberry Pi based irrigation system's sprinkler valve control

Downloads

3

Readme

###REST API and Web Controller interface for Raspberry Pi based irrigation systems valves

This project provides

  • A REST API for your Raspberry pi based irrigation system
  • A Easy to use Web controller interface to control the irrigation system valves

REST API and the Web UI are built using Node JS, Express JS, JQuery, Backbone JS, Twitter Bootstrap, Require JS

Using the REST API you can build your own custom UI. REST Interface allows you to add, modify,delete and list zones. More importantly it provides control operations to open and shut the irrigation valves.

Web UI uses the REST API to provide simple and easy to use user interface to manage irrigation zones and ctrolling of their valves. This Web UI is also mobile friendly.

Phone-1 Phone-1

Prerequisite

Installation

Once the above setup is done, proceed to install the ospi controller

sudo npm install -g ospi-controller
# -g will install ospi-controller globally

Usage

Once the isntallation is successful try

  
sudo /opt/sw/node/bin/ospi-controller --help

  Usage: ospi-controller [options]

  Options:

    -h, --help                 output usage information
    -V, --version              output the version number
    -p, --port <port>          HTTP Port to use. Default is 8000
    -c, --config <configFile>  Config file location. Default is config.json
    -l, --log <logFile>        Log file. Default is logs/ospic-server.log
    
# /opt/sw/node is the where the Node is installed. 

for example you can start the contoller

sudo /opt/sw/node/bin/ospi-controller --config $HOME/ospic-config.json --port 8888

This will start the controller at port 8888 and will use /opt/ospic/ospic-config.json as the config file that would provide irrigation zone information. If the file does not exist, a new fill will be saved at this location with zone information created using the web ui.

#####Screenshots ######First time access

So for the very fist time when you login, you need to setup the zones. This the screenshot of no zones scenario. No Zones

######After adding couple of zones Following screenshots show creation of two zones. You can click on "Add zone" button to create a zone. Alternatively you can click Settings > Add zone at the top right corner. Add Zone

One more

Add Another Zone

######After zones are setup. (Default Screen)

Once these two zones are created successfully the home screen would look like.

Add Another Zone

######Open Zone.

Now you can click on the open button for a specific zone to open the irrigation valve. Once you clicked on it, it will show the currently opened zones at the top and also it will idicate for how long the zone was open

Open Zone

Similarly you can select a particular zone using the nav bar and click on the open button for that zone. That way you can open multiple zones and all the open zones will show at the top. You can either select a single zone and shut or shut all the zones at onces.

Open Zone

######Update Zone It is also possible to update and delete a zone. Open Zone