1.0.34 • Published 4 years ago

fe-lib-pk10-node v1.0.34

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

fe-lib-pk10-node

Nodejs library to control lottery machine

  1. npm install
  2. node index.backup.js targetIP loop

How to setup

  1. npm install fe-lib-pk10-node
  2. npm install node-loader (https://www.npmjs.com/package/node-loader)
  3. add
    {
        test: /\.node$/,
        use: 'node-loader'
    }
    to webpack.config.js in module -> rules
  4. npm i -D electron-rebuild
  5. run -------------> ./node_modules/.bin/electron-rebuild <--------------- (4-5 ref: https://github.com/serialport/node-serialport/issues/1910)
  6. set -------------> app.allowRendererProcessReuse = false; <--------------- in main

How to Use the library in electron

    import PK10Control from 'fe-lib-pk10-node'

    var pk10Control = new PK10Control
    setInterval(pk10Control.execute, 0)
    pk10Control.checkStatus()

    var listenerPK10 = function listenerPK10(ball1, ball2, ball3, ball4, ball5, ball6, ball7, ball8, ball9, ball10) {
        console.log(ball1);
        console.log(ball2);
        console.log(ball3);
        console.log(ball4);
        console.log(ball5);
        console.log(ball6);
        console.log(ball7);
        console.log(ball8);
        console.log(ball9);
        console.log(ball10);
    }
    pk10Control.eventEmitter.addListener('receive_balls', listenerPK10)
1.0.33

4 years ago

1.0.34

4 years ago

1.0.32

4 years ago

1.0.31

4 years ago

1.0.30

4 years ago

1.0.22

4 years ago

1.0.26

4 years ago

1.0.25

4 years ago

1.0.24

4 years ago

1.0.23

4 years ago

1.0.29

4 years ago

1.0.28

4 years ago

1.0.27

4 years ago

1.0.19

4 years ago

1.0.18

4 years ago

1.0.17

4 years ago

1.0.16

4 years ago

1.0.21

4 years ago

1.0.20

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.12

4 years ago

1.0.2

4 years ago

1.0.3

4 years ago

1.0.1

5 years ago

1.0.0

5 years ago