Coder Social home page Coder Social logo

pigeon's Introduction

Pigeon

A Node.js cron job application that texts a number with Twilio whenever state or federal incentives become available.

How to run?

  • Register for your API key from The National Renewable Energy Laboratory here & set environment variable:

    • NREL_API_KEY
  • Customize the states/jurisdictions you're interested in (comma separated, no spaces):

    • NREL_JURISDICTION=US,CA,TX
  • Customize whether to search recent or past incentives:

    • NREL_FIND_RECENT=true
  • Customize which kinds of incentives are searched for (comma separated, no spaces):

    • NREL_INCENTIVE_TYPES=GNT,TAX,LOANS,RBATE,EXEM,OTHER

    Available incentive types:

    Code Meaning
    GNT Grants
    TAX Tax Incentives
    LOANS Loans and Leases
    RBATE Rebates
    EXEM Exemptions
    OTHER Other

  • Customize which incentives apply to which kinds of users:

    • NREL_USER_TYPES=FLEET,GOV,IND,STATION,AFP,PURCH,MAN,OTHER
    Code Meaning
    FLEET Private Business
    GOV Government Entity
    IND Personal Vehicle Owner or Driver
    STATION Alternative Fuel Infrastructure Operator
    AFP Alternative Fuel Producer
    PURCH Alternative Fuel Purchaser
    MAN Alternative Fuel Vehicle Manufacturer/Retrofitter
    OTHER Other

  • Customize how many results can be returned (defaults to 10 when not setting):

    • NREL_RESULT_LIMIT=10
  • Fill out the Twilio account SID, auth token, and your messaging service SID environment variables

    • TWILIO_TO_PHONE_NUMBER=
    • TWILIO_ACCOUNT_SID=
    • TWILIO_ACCOUNT_AUTH_TOKEN=
    • TWILIO_MESSAGING_SERVICE_SID=
  • Customize how often the application attemps to notify you with the CRON environment variables.

    • CRON_SECOND=*
    • CRON_MINUTE=*
    • CRON_HOUR=12
    • CRON_DAY_OF_MONTH=*
    • CRON_MONTH=*
    • CRON_DAY_OF_WEEK=*
  • Customize whether the texts use state codes or the actual state names:

    • TEXT_STATE_CODES=true
  • Run the application

    $ npm start

pigeon's People

Contributors

jordanculver avatar

Watchers

James Cloos avatar  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.