0.0.14 • Published 1 year ago

wbm-midi-command-picker-react v0.0.14

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

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

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

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

const executeReboot = () => console.log("REBOOT")
/////////////////////////
<Restart reboot={executeReboot} />
0.0.13

1 year ago

0.0.14

1 year ago

0.0.11

2 years ago

0.0.12

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.7

2 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago