Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust script to make use of the wait for comm #6

Open
rkresha opened this issue Sep 19, 2016 · 0 comments
Open

Adjust script to make use of the wait for comm #6

rkresha opened this issue Sep 19, 2016 · 0 comments

Comments

@rkresha
Copy link
Owner

rkresha commented Sep 19, 2016

https://github.com/oskarpearson/mmeowlink/wiki/Installing-MMeowlink#adding-a-wait-for-silence-alias-so-that-multiple-rigs-can-run-simultaneously-optional

Adding a "wait-for-silence" alias so that multiple rigs can run simultaneously (Optional)

openaps alias add wait-for-silence '! bash -c "echo -n "Listening: "; for i in seq 1 40; do echo -n .; ~/mmeowlink-source/bin/mmeowlink-any-pump-comms.py --port [INSERT PORT PATH HERE WITHOUT BRACKETS] --wait-for 20 2>/dev/null | egrep -v subg | egrep No && break; done"'. If you add this as the first command in your preflight, this will check to see if there are any other current mmeowlink communications with your pump, and step aside if there are. Users have used this to run multiple rigs simultaneously. May require adding a sleep [some number] command at the beginning of your preflight for one rig to stagger things a bit.

@rkresha rkresha changed the title Adjust script to make use of the wait form comm Adjust script to make use of the wait for comm Sep 19, 2016
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

No branches or pull requests

1 participant