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

Helper script: typhos screenshots of all happi items #596

Open
klauer opened this issue Nov 15, 2023 · 0 comments
Open

Helper script: typhos screenshots of all happi items #596

klauer opened this issue Nov 15, 2023 · 0 comments

Comments

@klauer
Copy link
Contributor

klauer commented Nov 15, 2023

Here's a helper script:

#!/bin/bash

PYTHONPATH=$HOME/Repos/typhos:PYTHONPATH
screenshot_path=$HOME/Repos/typhos/screenshots/$(git describe --tags)

mkdir -p ${screenshot_path}
echo "Saving screenshots to: $screenshot_path"

per_instance=10

happi search --names '*' | xargs -d ' ' -L ${per_instance} \
    python -m typhos --screenshot "${screenshot_path}/{device.name}.png" --exit-after 10

and to combine them

$ cat screenshots/to_pdf.sh
#!/bin/bash

convert $1/*.png "typhos_$1.pdf"

See also ~klauer/Repos/typhos/screenshots.sh

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