Code Monkey home page Code Monkey logo

printerstatus's Introduction

PrinterStatus

Display Printer Status (Sinatra app)

  • display residual ink quantity
  • send residual ink quantity mail by scheduler

Getting Started

  1. Clone
    git clone [email protected]:thinkAmi/PrinterStatus.git

  2. Edit .env.example file
    Change printer and mail settings for your environment

  3. Rename file: .env.example to .env

  4. Bundler
    bundle install --path vendor/bundle

  5. Run
    bundle exec app.rb

  6. Access http://localhost:9494
    ใ€€

Note:

  • if you change default port 9494, edit set :port, 9494 in app.rb file
  • if you change mail schedule, edit settings.scheduler.every method in app.rb file

Tested environment

  • Windows7 x64
  • Ruby 2.0.0p481
  • gem list
  • sinatra 1.4.5
  • sinatra-contrib 1.4.2
  • thin 1.6.2
  • snmp 1.1.1
  • activesupport 4.1.1
  • lazy_high_charts 1.5.2
  • rufus-scheduler 3.0.7
  • pony 1.8
  • dotenv 0.11.1

License

MIT

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.