raspistill --annotate "$(date)" --timeout 20000 --timelapse 10000 --output %04d.jpg
The date never changes!
Same problem with raspivid.
Tried:
raspistill --annotate "$(pwd)" --timeout 20000 --timelapse 10000 --output %04d.jpg
and it works.
Also:
raspistill --annotate "$(./stamp.sh)" --timeout 20000 --timelapse 10000 --output %04d.jpg
where stamp.sh is:
#!/bin/bash
date '+%F at %H:%M:%S'
but it does not work (yes, it's chmod 755, and there is no error, just nothing shows in the annotation)
Questions:
- is $(...) a general exec mechanism? If not, what are valid keywords?
- how do we get this executed on every still?
For raspivid, not sure how to best express the update frequency, but it would be desirable.