Anonymousdog / displaycameras

System for displaying RTSP feeds from IP cameras on the Raspberry Pi
Apache License 2.0
566 stars 114 forks source link

Datetime overlay in a corner #3

Closed ephestione closed 6 years ago

ephestione commented 6 years ago

Is your feature request related to a problem? Please describe. My xiaoyi's do not always show the correct time, maybe one of them didn't have internet connection so it starts off from 1970-01-01 0:00, or there's the one that no matter how I set the timezone will always show a time that's 2 hours in the past.

Describe the solution you'd like A textual, basic configurable (size/color/position) overlay showing the current system date and time

Describe alternatives you've considered As of now, I have a php script fetching a screenshot of the current display, add an overlay via GD and then returning it to the HTTP request to the server, but it's molasses, naturally

Additional context Attached is an example of what I get with my PHP script (sorry for the lacking freehand-mouse drawing skills in the censored area) template

Anonymousdog commented 6 years ago

If you can generate the clock face as a video stream we can play like a camera feed, I believe we can do this with the "layers" branch.

On Wed, Jul 18, 2018 at 5:58 PM, ephestione notifications@github.com wrote:

Is your feature request related to a problem? Please describe. My xiaoyi's do not always show the correct time, maybe one of them didn't have internet connection so it starts off from 1970-01-01 0:00, or there's the one that no matter how I set the timezone will always show a time that's 2 hours in the past.

Describe the solution you'd like A textual, basic configurable (size/color/position) overlay showing the current system date and time

Describe alternatives you've considered As of now, I have a php script fetching a screenshot of the current display, add an overlay via GD and then returning it to the HTTP request to the server, but it's molasses, naturally

Additional context Attached is an example of what I get with my PHP script (sorry for the lacking freehand-mouse drawing skills in the censored area) [image: template] https://user-images.githubusercontent.com/19911280/42910045-5d52bb98-8ae6-11e8-8e65-1ddde85d1d51.jpg

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Anonymousdog/displaycameras/issues/3, or mute the thread https://github.com/notifications/unsubscribe-auth/AdGEKbsp_tSfjYI27g65pgedRjhYgHyGks5uH696gaJpZM4VVb55 .

ephestione commented 6 years ago

When I first got the idea of adding a clock, I did figure that I could generate a rtsp stream of said clock, but I immediately dismissed it as overkill and too much intricate. So you say that having a video stream is the only feasible way to overlay a text clock on the quad display?

On July 27, 2018 8:02:00 PM GMT+02:00, Anonymousdog notifications@github.com wrote:

If you can generate the clock face as a video stream we can play like a camera feed, I believe we can do this with the "layers" branch.

On Wed, Jul 18, 2018 at 5:58 PM, ephestione notifications@github.com wrote:

Is your feature request related to a problem? Please describe. My xiaoyi's do not always show the correct time, maybe one of them didn't have internet connection so it starts off from 1970-01-01 0:00, or there's the one that no matter how I set the timezone will always show a time that's 2 hours in the past.

Describe the solution you'd like A textual, basic configurable (size/color/position) overlay showing the current system date and time

Describe alternatives you've considered As of now, I have a php script fetching a screenshot of the current display, add an overlay via GD and then returning it to the HTTP request to the server, but it's molasses, naturally

Additional context Attached is an example of what I get with my PHP script (sorry for the lacking freehand-mouse drawing skills in the censored area) [image: template]

https://user-images.githubusercontent.com/19911280/42910045-5d52bb98-8ae6-11e8-8e65-1ddde85d1d51.jpg

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Anonymousdog/displaycameras/issues/3, or mute the thread

https://github.com/notifications/unsubscribe-auth/AdGEKbsp_tSfjYI27g65pgedRjhYgHyGks5uH696gaJpZM4VVb55 .

Anonymousdog commented 6 years ago

Unless you have a utility that displays a live clock with the configuration you want, yes.

On Fri, Jul 27, 2018, 5:32 PM ephestione notifications@github.com wrote:

When I first got the idea of adding a clock, I did figure that I could generate a rtsp stream of said clock, but I immediately dismissed it as overkill and too much intricate. So you say that having a video stream is the only feasible way to overlay a text clock on the quad display?

On July 27, 2018 8:02:00 PM GMT+02:00, Anonymousdog < notifications@github.com> wrote:

If you can generate the clock face as a video stream we can play like a camera feed, I believe we can do this with the "layers" branch.

On Wed, Jul 18, 2018 at 5:58 PM, ephestione notifications@github.com wrote:

Is your feature request related to a problem? Please describe. My xiaoyi's do not always show the correct time, maybe one of them didn't have internet connection so it starts off from 1970-01-01 0:00, or there's the one that no matter how I set the timezone will always show a time that's 2 hours in the past.

Describe the solution you'd like A textual, basic configurable (size/color/position) overlay showing the current system date and time

Describe alternatives you've considered As of now, I have a php script fetching a screenshot of the current display, add an overlay via GD and then returning it to the HTTP request to the server, but it's molasses, naturally

Additional context Attached is an example of what I get with my PHP script (sorry for the lacking freehand-mouse drawing skills in the censored area) [image: template]

< https://user-images.githubusercontent.com/19911280/42910045-5d52bb98-8ae6-11e8-8e65-1ddde85d1d51.jpg

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Anonymousdog/displaycameras/issues/3, or mute the thread

< https://github.com/notifications/unsubscribe-auth/AdGEKbsp_tSfjYI27g65pgedRjhYgHyGks5uH696gaJpZM4VVb55

.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/Anonymousdog/displaycameras/issues/3#issuecomment-408544027, or mute the thread https://github.com/notifications/unsubscribe-auth/AdGEKYWHqIiqnwdY1bAbI8IP4Yr9Gum3ks5uK4b6gaJpZM4VVb55 .

ephestione commented 6 years ago

There are several scripts that allow to have a live digital clock in the form of a text constantly showing on the screen, for example: https://www.commandlinefu.com/commands/view/11336/create-a-continuous-digital-clock-in-linux-terminal

maybe there can be a small overlay where a screen instance is used to place a roughly 100px x 20px rectagle in the top-left corner over the top-left camera?

Anonymousdog commented 6 years ago

That involves too much deviation from the scope of this project which is intended for systems that display accurate time in the RTSP feeds (i.e., an Ubiquity NVR system). I won't introduce additional dependencies or restrictions into the project (both of which are required by those text-console solutions). You're welcome to fork the code and do it yourself.

Anonymousdog commented 6 years ago

Feature enhancement request outside project scope