Add Server and Config Page

- splits project into lamps and server component
- state is shared via a map from event to buttons, buttons to actions
- server provides interface for configuring some buttons.

Add basic form outline for proof of concept

Fix HTML

Fix html again.

Try accessing POST data.

Form should use POST

Do something with the data.

Bad dependency name, utill not utills.

Fix logic error.

fix typo

Console log body, add joystick controls.

Hook joystick up to config server.

Added Package.json

Lets get managing them dependencies.

Refactor and move form to external file.

Added missing dependency

Fix naming issues.

Added current lamp variable.

Control a button.

Fix typo

fixes more typos.

Improve title, add basic styles.

Prototype action mapper.

Event paths.

Change for debugging.

fixed typo

Logic tweak

Tweak logic

Added value for mapping.

Add X, B, Y to mapping.

Refine mapping, and form.

Fix typo

Clarify debugging.

tweak logic

Output action name for debug.

Mapping improvements.

Refactor

More debug info.

Fix logic issues.

More debugging...

Debugging logic.

Simplify Mapping

Adds lamps modules.

testing lamp abstraction

Tweak syntax

Tweak API.

Fix semantic error.

Fix semantic error.

Fix semantic error.

Add missing property.

Fix finger trouble.

Split server and lamp into separate modules.

Add form variable.

Refactor

Require joystick with setup.

Replace this with lamps.

Refactor

Fix syntax error.

Fix typo

Added debug

Refactor

Fixed typo.

Fix scope issue.

fix state issue

investigating state issues.

Adding debugging.

More debugging code.

Fix scope issue.

Fixing scope issue.

Changed variable.

Attempts to fix scope issue.

Server's not working. Reverting to previous code.

Chasing scope issue

scope test

Scope test

Update state from posted values.

Chasing scope issues.

Test mapping....

Fix typo

Move colour mapping into lamps module.

Fix syntax error.

Add off state, and default map for colours.

Add Y and X to UI.

Correct hidden values.

Wire up white command.

Fix syntax error.

Add type concept to state
Manage state in form.
Debugging.

Change default map to match data structure

Tidy up mapping.

Add Alert and selection

Add selection events.

fix typo, add action type.

map selection.

Fix typo

Correct method name.

Improve the default white colour.

Adds debugging and basic group support

Fix syntax error

Xbox and back button support.

Xbox button to turn all light off

Debug regression

Fix switch syntax.

Adds Single On, Group on/off

Refactor

- moved action map into app
- extracted joystick function ready for events
- white takes temp and brightness.

Fix syntax error.

Tidy up event handling code.

Fix scope error.

Add debugging.

Fix switch logic.

Add axis controls.

Fix syntax error.

Syntax fix

Put in logging

Add axis controls.

Fix syntax error

Syntax fix

Add presets to lamps module

- add presets to lamp module
- map presets by name
- add lowwhite preset

Add loop for lowwhite

Extra debugging

More debugging.

Even more debugging.

Fix scoping issues.

More debugging.

More debugging.

Modify scope.

Attempt to resole scope issues for this.lampcount

debugging.

Debugging.

Debugging.

Fix syntax error.

debugging

Tidy up

Add lowwhite and highwhite

Fix typo, remove debugging logs.

Enhance Safety

Tidy up ready for merge

Tidy up for Merge

Reduce the noise.
fix merge