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

osh-js

v2.1.0

Published

OSH javascript Toolkit

Downloads

80

Readme

OpenSensorHub Web Client Toolkit Documentation

OpenSensorHub Web Client toolkit allows you to visualize data from OSH. It provides the necessary tools to build your own web application for monitoring your sensors. It is pure javascript framework and does not require third party libraries. A set of external libraries is also available to easily build some part of your views such as Leaflet, OpenLayer, Cesium, Chart.js etc..

It's an event based architecture suitable for real-time or playback. It allows one to make temporal synchronization or multiple data stream. It provides a styling overlay using configurable layers as well as an advanced support for video (H264/MJPEG). It has been designed to integrate any map engines such as Lealfet, OpenLayer or Cesium.

Moreover, it offers support for SOS & SPS services, discovery function, uses the HTTP or WebSocket API. Several modules already exist to allow one to setup quickly an application such as Orientation, DataSourceChart, Video, Map etc..

Please report all problems related to the SensorHub software including documentation errors via the GitHub Issue Tracker of the osh-js repository.

Features

  • Supports for data parsing:
    • Video (with roll) data with codecs H265, H264, VP9, VP8
    • Any Swe generic JSON such as GPS, Quaternion etc.
    • Spectrogram, ImageDraping, Nexrad
  • Supports for data Synchronization
  • Supports WebSocket and HttpRequest Connector
  • Supports SWE JSON generic requests:
    • GetCapabilities
    • GetFeatureOfInterest
    • GetResultTemplate
    • DescribeSensor
  • Supports some dedicated visualizer:
    • OpenLayer, Leaflet or Cesium for Map data
    • FFMPeg for Video
    • Chart
    • Spectrogram
  • Supports for Vue.js components

Installation

Releases

Binary and Source distributions archives can be downloaded directly from the Releases Section of our GitHub account.

The release contains a vendor directory (needed for some pre-coded views), the minified osh-js library and its corresponding stylesheet. You can use both the all-in-one vendor minified script(vendor.js & vendor.css) or the separate ones.

You can import the source directory directly into your APP application and refer to it. The Toolkit is ES6 compliant.

Showcase

The showcase can be run using npm and webpack configuration:

$ cd ./showcase
$ yarn install
$ yarn dev

or

$ cd ./showcase
$ npm install
$ npm run dev

Production

$ yarn install
$ yarn prod

or

$ npm install
$ npm run prod

Dependencies

Cesium

If you use the CesiumView, don't forget to install the corresponding npm package 'cesium'. Moreover, you can apply a path to fix texture issue while using image draping. The patch is located into the patches directory. To apply the patch,you can use patch-package:

$ npm i -D patch-package

Add the corresponding patch into your source folder and apply the patch using npm i.

package.json:


"scripts": {
    "postinstall": "patch-package",
    ...
  },

You can add any external dependencies using npm. For example, if you attempt to use some OpenLayer features, don't forget to install OpenLayer as node module dependency.

Build site

Because there are 2 environments, you must pass the ENV variable to build the corresponding target: 'dev' | 'latest'

$ ENV=dev yarn vuepress

or

$ ENV=latest yarn vuepress

The official website (latest): http://opensensorhub.github.io/osh-js/dev/site/ The official website (development): http://opensensorhub.github.io/osh-js/dev/site/