Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
Signed-off-by: Gnanakeethan Balasubramaniam <[email protected]>
  • Loading branch information
gnanakeethan committed Sep 18, 2023
1 parent aba4a29 commit 1cd04ff
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions docs/implementations/watt-time.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,13 @@ Limitations:


```typescript
// inline configuration
const model = await new WattTimeGridEmissions().configure('watt-time', {
username: 'test1',
password: 'test2',
});
// environment configuration
// environment variable configuration
// export WATT_TIME_USERNAME=test1
// export WATT_TIME_PASSWORD=test2
// prefix the environment variables with "ENV" to load them inside the model.
// use environment variables to configure the model
const env_model = await new WattTimeGridEmissions().configure('watt-time', {
username: 'ENV_WATT_TIME_USERNAME',
password: 'ENV_WATT_TIME_PASSWORD',
username: process.env.WATT_TIME_USERNAME,
password: process.env.WATT_TIME_PASSWORD,
});
```

Expand Down

0 comments on commit 1cd04ff

Please sign in to comment.