# homebridge-http-slider

> Homebridge plugin for stateful sliders working with http requests

Latest version **0.0.1** (published 2018-09-06) · ISC license · 0 weekly downloads

## Install

```sh
npm install homebridge-http-slider
pnpm add homebridge-http-slider
yarn add homebridge-http-slider
bun add homebridge-http-slider
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2018-09-06 |
| First published | 2018-09-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.12.0 |
| Dependencies | 1 |
| Unpacked size | 188 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Marvin Dostal |
| Maintainers | datmaffin |
| Keywords | homebridge-plugin |

## Links

- npm: https://www.npmjs.com/package/homebridge-http-slider
- Repository: https://github.com/datMaffin/homebridge-http-slider
- Homepage: https://github.com/datMaffin/homebridge-http-slider#readme
- Issues: https://github.com/datMaffin/homebridge-http-slider/issues
- npm.io page: https://npm.io/package/homebridge-http-slider

## Dependencies (1)

- [request](https://npm.io/package/request.md) ^2.88.0

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2018-09-06

## README

# homebridge-http-slider
A homebridge plugin to provide a simple slider, that calls specific http-urls
at specific states.

(At the moment) There is no polling or requesting of an actual state from an 
http-server possible!

# Installation
1. Install [Homebridge](https://github.com/nfarina/homebridge)
2. Install this plugin `sudo npm install -g homebridge-http-slider`
3. Add this plugin as accessory to your `config.json` file

## Configuration
Inside the Homebridge `config.json`

Mandatory
```json
...
    "accessories": [
        {
```

Mandatory
```json
            "accessory": "Slider",
            "name": "Slider Name",
            "service": "Lightbulb",
            "http_states": [
                "http://127.0.0.1/0",
                "http://127.0.0.1/1",
                "http://127.0.0.1/2"
            ],
```
* `name` can be freely chosen
* Supported `service`s are `Lightbulb`, `Fan` and `Thermostat`
* `http_states` http-urls who get called when the slider gets set to a specific
  state. A low index in the array represents a low value/state in the slider.

Optional
```json
            "thermo_range_high": 100,
            "thermo_range_low": 0
```
* Interval of values when using the `Thermostat` service

```json
        },
...
```

---
_Source: https://npm.io/package/homebridge-http-slider · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
