# wbm-midi-command-picker-react

> For "easy" control of Raspbian settings

Latest version **0.0.14** (published 2022-11-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install wbm-midi-command-picker-react
pnpm add wbm-midi-command-picker-react
yarn add wbm-midi-command-picker-react
bun add wbm-midi-command-picker-react
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.14 |
| Published | 2022-11-19 |
| First published | 2021-09-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 497.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | wbmmusic |

## Links

- npm: https://www.npmjs.com/package/wbm-midi-command-picker-react
- npm.io page: https://npm.io/package/wbm-midi-command-picker-react

## Recent versions

- 0.0.14 (latest) — 2022-11-19
- 0.0.13 — 2022-11-13
- 0.0.12 — 2022-05-20
- 0.0.11 — 2022-05-20
- 0.0.10 — 2022-03-17
- 0.0.9 — 2022-03-17
- 0.0.7 — 2021-12-22
- 0.0.6 — 2021-10-19
- 0.0.5 — 2021-09-28
- 0.0.4 — 2021-09-28
- 0.0.3 — 2021-09-28
- 0.0.2 — 2021-09-28
- 0.0.1 — 2021-09-28

## README

# wbm-midi-command-picker-react

For "easy" control of Raspbian settings

- Edit network address settings
- Edit Hostname
- Reboot

## USE
### NetworkInput
Inputs for
- IP address
- Subnet Mask with validity checking
- Gateway
- DNS Server
- Hostname

#### props
##### settings = {}
##### sendNewSettings()
#
#### Example

```javascript
let settings = {
    hostname: 'Hostname',
    ip: ['192','168','1','123'],
    mask:['255','255','255','0'],
    gateway:['192','168','1','1'],
    dns:['8','8','8','8']
}

const updateSettings= (newSettings) => console.log(newSettings)
/*
Should Long something like
{
    hostname: 'Hostname',
    ip: ['192','168','1','123'],
    mask:['255','255','255','0'],
    gateway:['192','168','1','1'],
    dns:['8','8','8','8']
}
*/

//////////////////////////////////////////////////
<NetworkInput settings={settings} sendNewSettings={updateSettings} />
```



### TimeZoneInput
Timezone selection dropdown

#### props
##### zone = "String"
##### zones = ["zone1", "zone2", ...]
##### setZone()
#
#### use
```javascript
const zones = ['east', 'west', 'central', 'mountain']
let zone = 'east'
const updateZone = (newZone) => zone=newZone
/////////////////////////
<TimeZoneInput zone={zone} zones={zones} setZone={updateZone} />
```

### Restart
Restart button and confirm popup

#### props
##### reboot()
#
#### Use
```javascript
const executeReboot = () => console.log("REBOOT")
/////////////////////////
<Restart reboot={executeReboot} />
```

---
_Source: https://npm.io/package/wbm-midi-command-picker-react · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
