Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lawrencebensaid authored Jun 25, 2022
1 parent a8afd9f commit 6419cc6
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,20 @@

API and CLI for eNet smart home.

**To install the CLI on your device**

`$ npm install -g enet-api`

**To add the API to your project as dependency**

`$ npm install enet-api`

## Implementing the API

```
```js
const { ENet } = require("enet-api");

(() => {
(async () => {

// Authenticate with eNet server
const enet = new ENet("192.168.0.7");
Expand Down Expand Up @@ -46,4 +54,4 @@ Commands:
get <command> manage variables
set <command> <value> manage variables
help [command] display help for command
```
```

0 comments on commit 6419cc6

Please sign in to comment.