Skip to content

Helper script: typhos screenshots of all happi items #596

@klauer

Description

@klauer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions