Git Product home page Git Product logo

pi_record's People

Contributors

akc42 avatar dependabot[bot] avatar

Stargazers

 avatar

Watchers

 avatar  avatar

pi_record's Issues

LCD display too large - filenames are too long

This is basically as a result of leaving space for the long filenames that we are creating. After some throught I believe that the device name only need be a single letter "S" for the Scarlett 2i2 and "B" for the Blue Yeti, we only really need day of month in the date section and the nearest 10 seconds in the time section (we ought to not keep any recording that is less than 10 seconds long) and we don't need the separators between the numerics. So a file made on the YETI microphone at "2020-03-21T07:17:55.134Z" (Date.toISOString()) should produce a filename B2107175.flac

We should delete short recordings

Any recording shorter that a time (see also #2) should not be kept to avoid cluttering up with short irrelevant recordings. I'm thinking 30 seconds as a minimum time, but we could make in environment variable configurable

Client didn't re-awaken when server restarted

It should be that when the server shuts down the client keeps polling the server with its status requests so that it re-awakens when the server restarts. I did this when the two (ipad and desktop) browsers where both running. The ipad restarted and the desktop didn't

It might have something to do with closing the Status Channel when the desktop was shutting down. Need to investigate

Its possible that parallel requests to recorder can cause failure

TypeError: Cannot read property 'stderr' of undefined
1|recorder | at Recorder.record (/home/alan/recorder/server/recorder.js:172:24)
1|recorder | at /home/alan/recorder/server/server.js:170:51
1|recorder | at Layer.handle [as handle_request] (/home/alan/recorder/node_modules/router/lib/layer.js:93:5)
1|recorder | at next (/home/alan/recorder/node_modules/router/lib/route.js:144:13)
1|recorder | at checkRecorder (/home/alan/recorder/server/server.js:305:7)
1|recorder | at Layer.handle [as handle_request] (/home/alan/recorder/node_modules/router/lib/layer.js:93:5)
1|recorder | at next (/home/alan/recorder/node_modules/router/lib/route.js:144:13)
1|recorder | at Route.dispatch (/home/alan/recorder/node_modules/router/lib/route.js:109:3)
1|recorder | at handle (/home/alan/recorder/node_modules/router/index.js:520:11)
1|recorder | at Layer.handle [as handle_request] (/home/alan/recorder/node_modules/router/lib/layer.js:93:5)

Sometimes, just after having taken control it is called a second time

It appears the client is calling take control, which succeeds. It then calls take control a second time, which fails, so the state goes to Await R until the next status message which confirms that the client is in control.

We should not send that second take control, but right now I cannot see where it is happening and why

README file is out of date

Readme file needs to be updated to reflect that fact that we now use NGINX as the static web server and only the api requests are passed through.

In addition, client id is now derived from ip address and not Date.now

In addition we can now log client events through /api/log

IOS goes to sleep when browser not in foreground causing channel closure

IOS goes to sleep when the browser is placed behind another app. Given the prime driver for this app is to allow us to record whilst using the camera to record this is unacceptable.

The requirement is to allow it to carry on.

After some trial and error not documented here we have to change the way in which the system runs. In particular

  • no closing the channel if the status stream is closed (IOS does this as it puts the browser in the background)

  • It must be possible to not renew for a long period of time (until 4:am the next day! - except when recording where within 4 hours, else the recording will be stopped)

  • A new api call /api/:client/done is introduced which a closing client can throw at the server as the window is unloaded. This is what should stop recordings and release control

  • A new api call /subscribeid which will return a uuid which we can use to identify the client. A service worker will cache the reply from the server on registering and will serve it from cache for ever after.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.