Neural-Space / pewter

Data acquisition and visualization tool for Myo Armband
25 stars 10 forks source link

hope record time #4

Closed bkhotey4 closed 3 years ago

bkhotey4 commented 5 years ago

record time is about 2 seconds Can it record long time until user push pause? please.

dashayushman commented 5 years ago

@bkhotey4 This can be increased by increasing the payload upper limit for HTTP POST requests.

BiserkaP commented 5 years ago

@dashayushman can you be more precise how it should be done? Is it possible to record 12-13 minutes of arm movements?

danrlady commented 4 years ago

Hi @dashayushman! I just found out how to solve that (if this info is still useful for you): on the app.js file, go to the section where you can found

app.use(bodyParser.urlencoded({ extended: false }));

And insert a new propety on bodyParser.urlencoded, to limit of the HTTP POST request to match the limit in the bodyParser.json. It will be something like this:

app.use(bodyParser.urlencoded({ extended: false, limit: '100mb' }));