/web-socket-for-meenote

The web socket for MeeNote web client.

Primary LanguageJavaScript

The use websocket for MeeNote web client.

This program requires MeeNote for Windows v2.5 WebSocket Server.

Data Structure

Status
  • err : Error Message.

  • sync : Synchronize server and client data.

  • usbconnect : Device USB connection status.

  • usbdisconnect : Device USB disconnection status.

  • rece : Server received message.

  • setting : Client setting parameters.

  • clear : Clear ghosts.

Mode
  • Mode will change according to wavefrom.

  • 0 : DU Mode.

  • 1 : GC Mode.

  • 2 : GL Mode.

  • 3 : GLR Mode. (default)

  • 4 : GLD Mode.

  • 5 : A2 Mode.

Handwriting
  • 0 : Disable Handwriting.

  • 1 : Enadble Handwriting. (default)

Gamma
  • 0 : Dynamic gamma function. (black/white ratio)

  • 1 : 0.25

  • 2 : 0.45

  • 3 : 0.75

  • 4 : 1.00 (default)

  • 5 : 1.40

  • 6 : 2.20

Pen Width
  • 3 : 3 Pixel (default)

  • 6 : 6 Pixel

  • 9 : 9 Pixel

  • 12 : 12 Pixel

  • 15 : 15 Pixel

Eraser Width
  • 10 : Medium. (default)

  • 20 : Large.

Msg
  • Reserve.

JSON Format

{"Status":"sync","Mode":"3","Handwriting":"1","Gamma":"4"}
{
	"Status": "sync",
	"Mode": "3",
	"Handwriting": "1",
	"Gamma": "4"
}

Clear Ghost

  • This is the ghosting phenomenon of EPD. Use GC mode to clear ghost screen.

Disable right-click menu

  document.oncontextmenu = function(evt) {
    evt.preventDefault();
  };
  document.onselectstart = function(evt) {
    evt.preventDefault();
  };

License

  • Copyright (C) 2020 E Ink Holdings Inc. company and Jongwaye Ou