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

mornin

v0.2.2

Published

Check-in! Mornin'!

Downloads

9

Readme

Mornin

Check-in! Mornin'!

mornin was made for a simple check-in system for our coworkers, and this is just a kind of data logger, and the data will be posted into Google Forms directly.

Imagine that there's a card reader connected to a RasPi at the counter in your office. In the morning, you will come to the office and touch your card to the reader. That's it!

Here're basic building blocks for example:

  • Mifare card for each coworker
  • Mifare card reader (USB HID)
  • mornin on Raspberry Pi (or Mac)
  • Google Forms

You could use a barcode scanner instead of Mifare. We can use any devices which is recognized as a HID device.

Install

Install mornin globally:

$ npm install -g mornin

Create a form

  1. Create a new form on Google Forms
  2. Add a Short answer field to store a card id. Take a field name as you like: ex. "User Token"

create a form

Note: you don't have to add a timestamp field because it will automatically appear in its spreadsheet.

Configure

Save your own configuration file as ~/.mornin.json like below:

{
  "formId": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "fieldId": "entry.000000000",
  "vendorId": 65535,
  "productId": 53
}
  • formId: the id of Google Forms. If your form's public URL is https://docs.google.com/forms/d/e/XXXX/viewform?usp=sf_link, formId would be XXXX.
  • fieldId: the id of the field to post. You can find it from your form's public page. If the page has <input type="text" ... name="entry.000000000">, fieldId would be entry.000000000.
  • vendorId: see below.
  • productId: see below.

vendorId and productId

To study your device's vendorId and productId, run the command below:

$ sudo mornin check

You would get results like this:

Checking your HID devices...

# Apple Internal Keyboard / Trackpad by n/a
- vendorId:  1452
- productId: 626

# SYC ID&IC USB Reader by Sycreader RFID Technology Co., Ltd
- vendorId:  65535
- productId: 53

Note: be sure that your device is connected before running this command.

Start

Start mornin.

$ sudo mornin

sudo is needed to access your HID hardware.

You may need to consider to use forever to keep it up.

Check-in history

Visit your spreadsheet attached to the form:

history

License

MIT © Tsutomu Kawamura

This repository includes these sounds licensed under CC BY 3.0.