-
Notifications
You must be signed in to change notification settings - Fork 180
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
Generate notification images #876
Conversation
This replaces the version of "generate_images.sh" that Chris created a few months ago, and to which I don't have the ability to update. This version allows other scripts to create custom images by passing arguments to generate_notification_images.sh. It also adds a "Restarting" image for when allsky.sh restarts (i.e., stops, then starts). In those cases there's no need to display a "stopping" then "starting" image - just display a single "restarting". Also added ability to have an image border.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sur if this is my problem:
-
file is not executable
-rw-r--r-- 1 pi pi 5925 Dez 29 09:01 generate_notification_images.sh
-
Problems with CR/LF
$ ./generate_notification_images.sh
-bash: ./generate_notification_images.sh: /bin/bash^M: Defekter Interpreter: Datei oder Verzeichnis nicht gefunden
$ file generate_notification_images.sh
generate_notification_images.sh: Bourne-Again shell script, ASCII text executable, with CRLF line terminators
$ dos2unix generate_notification_images.sh
dos2unix: Datei generate_notification_images.sh wird ins Unix-Format umgewandelt …
$ file generate_notification_images.sh
generate_notification_images.sh: Bourne-Again shell script, ASCII text executable
-
font and color changed and text is not so clear/sharp - but i am color blind ;-)
-
I think we should not mix files/directories. scripts for srcipts and notification_image should be the output_dir (no sh or make files included) maybe helpful for packages,.... btw. the same situation/problem we have with source -> all executeables should be in bin folder
@AndreasLMeg Thanks for the feedback.
|
Moving to allsky/scripts.
Actually, moved from allsky/notification_images to allsky/scripts.
on my pi (ssh connection with putty):
Happened for the first time since this clone: https://github.com/Alex-developer/allskyannotate.git
that's a matter of taste. Possibly one should also consider the "dark mode" Andreas |
I don't know how it works with someone else's PR. Can you give me some advice? |
|
on my second pi - after clone and checkout:
❓ |
@AndreasLMeg What does "file" say if you grab a different .sh file? Try renaming filename.sh and grab it. I'm curious if you're getting CRLF for all files, or just generate_notification_images.sh. I just noticed you did a commit for a "chmod"? How did you do that? |
maybe git config "core.autocrlf=true" is the reason, But i'm not sure yet.
|
After "git config --global core.autocrlf input" and fresh clone/checkout CR/LF problem is gone....
|
history:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
now the new images are saved in srcipts directory
@AndreasLMeg What do you mean by "the new images are saved in the scripts directory"? The |
@EricClaeys: ok, then you should revert my commit, or change only the part with the relative path |
The invoker (probably a Makefile) will ensure it's in the $ALLSKY_NOTIFICATION_IMAGES when it invokes this script. Reset the formatting of the table - it's too hard to read when it's all on one line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check my commit: commit 7745588
not tested the changes, maybe tonight
Put the table entries on one line, with each field separated by spaces, so it's easy to read regardless of the user's tab stop settings.
@EricClaeys: The next days I have no time to make tests, but I think ist's ok to merge. |
This PR is a replacement to Chris' #569 that creates a very similar tool. I don't have the ability to issue PRs against his version so I created a new one.
This version allows other scripts to call it to create custom on-the-fly notifications - a future version of allsky.sh and the "capture" programs will likely use that capability.
This version also adds a "Restarting" image for use when allsky.sh restarts (i.e., stops then starts).