Skip to content

agrahamg/dom-smart-plan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

dom-smart-plan

Api for getting information about the current Dominion Smart Pricing Plan day

This currently only works for dominion power in Virginia

Installation

npm install dom-smart-plan

Examples

var smartPlan = require('dom-smart-plan');

smartPlan.today().then(console.log)

API

All methods currently return a Promise with an argument of {designation:("A"|"B"|"C"|null)}

today()

Status for today

Returns: Promise

tomorrow()

Status for tomorrow

Returns: Promise

inDays(days)

Gets the status for n number of days away

Parameters

days: String | int, can be negative

Returns: Promise

onDate(date)

Gets the status for based on date

Parameters

date: Date

Returns: Promise

About

node api for Dominion Smart Pricing Plan

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published