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

thing-it-device-browser

v3.3.0

Published

[thing-it-node] Device Plugin to show a website

Downloads

14

Readme

thing-it-device-browser

NPM NPM

[thing-it-node] Device Plugin for a custom Website.

Thing-IT browser device

1 Introdution
2 Configuration
2.1 device
2.2 instance
3 How to use it?
3.1 Navigate to URL
3.2 Authenticate device

1

The general purpose of the browser device is to easily manage displays.
The functionality is categorized into three parts:
a) Custom - URL
b) Template - HTML Template with placeholders
c) Kiosk – Pretty visualized information
a. Calendar
b. Dashboard
c. Events
d. Welcome
e. Wiki

In the Custom mode you are able to show a predefined URL.
The Template mode can show HTML templates, filled with placeholders in JSON format.
Kiosk mode provides you our Calendar, Dashboard, Events, Welcome and Wiki pages.

2.1

The device configuration has two properties:

  • Host
  • External Host

Host: The host field is for the local host, if you are using docker fill it with the container address.
Format: 0.0.0.0:10101

External Host:
The external host field contains the address, that the display can access.
Format: 0.0.0.0:10101

2.2

The instance configuration has six properties:

  • Identifier
  • URL
  • Template
  • Template Markup
  • Thing-IT username
  • Thing-IT password

Identifier:
The identifier is the first argument in the URL to identify the instance.

URL:
The URL to be shown in Custom/Kiosk mode, leave it empty for template mode.

Template: In this property you can fill an HTML page, with placeholders.
Examples for placeholders:
- {{firstName}}
- {{age}}

Template Markup:
In the template markup you can specify an JSON with to replace the placeholders.
Example for markups:
- { “firstName”: “Max”, “age”: 3 }

Thing-IT username/password:
This field is only for the kiosk mode! To authenticate clients for the kiosk pages, we have to generate an JWT.
The clients will not receive this information only the JWT!

3.2

The URL of the instance is in this syntax:

3.1

If you navigate to the URL you should see a six-digit token. To authenticate the client, you have to go to the Thing-IT Portal and call the instance service ‘Add one off token’ and enter as parameter the token. Now you’re client should be authenticated.