GithubHelp home page GithubHelp logo

jnewland / ioreg-api Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 8 KB

REST service allowing you to remotely query selected values from the I/O Kit registry of a mac

License: MIT License

JavaScript 31.40% Shell 68.60%

ioreg-api's Introduction

ioreg-api

ioreg-api is a simple REST service allowing you to remotely query selected values from the I/O Kit registry of a mac.

Docs

Resources

Only one resources is implemented at this time.

HIDIdleTime Resource

The HIDIdleTime resource returns the time in seconds since the last keyboard/mouse interaction.

$ curl http://localhost:8282/HIDIdleTime
0.052250949

Setup

script/bootstrap

Running It

script/server

ioreg-api will run on port 8282 by default. Use the PORT environment variable to use your own port.

Forever

ioreg-api has support for Forever. It uses launchd on OS X to kick it off so that it starts on boot.

Development

You can simply run it by calling script/server. This will run it in development mode with logging to standard out.

Install as Service on OS X

script/install

Logging

ioreg-api logs all of its requests. In production, it logs to a file at log/logs.log. In development mode, it just logs to stdout.

Contributions

  • fork
  • create a feature branch
  • open a Pull Request

ioreg-api's People

Watchers

Jesse Newland avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.