-
Notifications
You must be signed in to change notification settings - Fork 70
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
Display Additional Info On screen #39
Comments
On Fri, 01 Jun 2018 23:44:09 -0700 C Medianu ***@***.***> wrote:
Hi Bill,
I'd like to implement the ability to display additional information on screen (sensor readings, etc.) ,
preferably by writing the info to the FIFO.
Any advice, before I get started, regarding where things should go?
Thanks!
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#39
You can display info at the top to the left or right of the displayed date by sending annotate_string
commands to the FIFO. This is the only way to display anything that also shows up on videos.
Search for annotate_string in the help page, and look at the ds18b20.py script in the scripts dir
for an example of displaying temperature data. Scripts can free run and periodically write
annotate_string commands to the FIFO, or they can be run from cron or the at-commands.conf
file.
Also, here's a short script that demonstrates:
#!/bin/bash
echo "annotate_string prepend label test" > /home/pi/pikrellcam/www/FIFO
for i in 1 2 3 4 5
do
x=$((i * 2))
echo "annotate_string append sensor1 count1-$i" > /home/pi/pikrellcam/www/FIFO
echo "annotate_string append sensor2 count2-$x" > /home/pi/pikrellcam/www/FIFO
sleep 1
done
echo "annotate_string prepend label end test" > /home/pi/pikrellcam/www/FIFO
sleep 1
echo "annotate_string remove sensor1" > /home/pi/pikrellcam/www/FIFO
sleep 1
echo "annotate_string remove sensor2" > /home/pi/pikrellcam/www/FIFO
sleep 1
echo "annotate_string remove label" > /home/pi/pikrellcam/www/FIFO
|
This works great, thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Bill,
I'd like to implement the ability to display additional information on screen (sensor readings, etc.) , preferably by writing the info to the FIFO.
Any advice, before I get started, regarding where things should go?
Thanks!
The text was updated successfully, but these errors were encountered: