Skip to content

Conversation

@nemothorx
Copy link

[attempt 2, now with correct author metadata]

Relatively simple linux shell script added for local use. Timing calculations are different to the JS method, but the end result is within a fraction of a second for the beeps. Future improvements idea: limit how many loops it runs to suit intermittent running from cron.

@ryanmonro
Copy link
Owner

Hi @EarthNative, I love the idea of a CLI version. I can't get it to run, as it turns out the time command has different parameters in Mac OSX. I don't currently have Linux installed anywhere, so haven't been able to test yet. I'll get back to you when I do.

@nemothorx
Copy link
Author

time command? date?

but yeah, it's a very first draft script - relies on "mpv" (fork of mplayer) for playing the audio, and I didn't put any fallbacks in. I got it working to local satisfaction and figured other bugs could be resolved as they're encountered! :D

...It also relies on some possibly non-universal things such as the ability for sleep to handle floating point...

I've got an OSX install I'll poke at it with too :)

@ryanmonro
Copy link
Owner

ryanmonro commented Oct 21, 2019 via email

Nemo Thorx and others added 3 commits October 22, 2019 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants