New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

nature-remo

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nature-remo

Nature Remo API client

latest
Source
npmnpm
Version
2.0.0
Version published
Maintainers
1
Created
Source

Nature Remo

npm version npm: total downloads Build Status Codacy Badge Codacy Badge

yarn add nature-remo
# or
npm install nature-remo

Basic Usage

const NatureRemo = require('nature-remo')

const client = new NatureRemo.Cloud(process.env.NATURE_REMO_CLOUD_API_TOKEN)

async function turnOffAirConditioner() {
  const airconList = await client.listAircon()
  const aircon = airconList[0]

  await client.updateAirconSettings(aircon.id, {
    button: 'power-off',
  })

  console.log('Aircon: turned off')
}

async function turnOnAirConditioner() {
  const airconList = await client.listAircon()
  const aircon = airconList[0]

  await client.updateAirconSettings(aircon.id, {
    operation_mode: 'cool',
    temperature: 24,
  })

  console.log('Aircon: turned on')
}

You might want to grab an API token from https://home.nature.global.

  • RunKit Notebook: Check out RunKit Notebook for runnable code snippets.
  • Code Example: See examples for various code examples.
  • Documents: See API Documents for detailed API documents.

API

const NatureRemo = require('nature-remo')

Cloud API

See Cloud API Documents.

const client = new NatureRemo.Cloud(NATURE_REMO_CLOUD_API_TOKEN)

Local API

See Local API Documents.

const client = new NatureRemo.Local(NATURE_REMO_LOCAL_ADDRESS)

Development

git clone https://github.com/uetchy/nature-remo # clone this repository
cd nature-remo # move to the repository folder
yarn install # install deps
NATURE_REMO_CLOUD_TOKEN=<nature-remo-cloud-api-token> yarn test # run test before creating a pull request

Sibling projects

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Yasuaki Uechi

💻 📖

Kosuge Kazuya

💻

Satoshi Nakamatsu

💻

kyo5884

💻

Mitsuteru Asari

💻

Chris

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

Keywords

nature-remo

FAQs

Package last updated on 15 Mar 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts