-
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
Allsky changes from Eric Claeys and Linda Thomas-Fowler #405
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Implements notification images, reboots USB bus if camera isn't found, adds error checking.
Implements notification images. Allows users to specify via config file if bad images should be removed. Removed duplicate code. Added return code checks.
Added some error checking. Added COPY_TO_WEBSITE and RESIZE_UPLOADS options. Added lftp commands to upload temporary file name, then move to permanent name, to help avoid issues with slow upload speeds.
Minor updates.
Implement notification images. Dark frame from "capture" is now called "dark.$EXTENSION" to distinguish from normal image. Used $IMG_PREFIX.
Does error checking on "convert". Lets user know if they've set DARK_FRAME_SUBTRACTION on but have no darks.
Saves "keogram" and "startrails" output in temp files rather than putting the 1000+ lines in the log file. Runs "removeBadImages" based on "$REMOVE_BAD_IMAGES" in config.sh. Only upload keogram and startrails if they were successfully created.
Mention adding "$ME" to any messages. "$ME" is the command name, and is useful to have in the log file to know which command produced the output.
Added $DATE and $DIR for readability.
Implemented $ME. Commented out line since endOfNight.sh prints a similar line. Removed unnecessary double quotes on lftp line to make it easier to read.
Removed check for DARK_MODE since darkCapture.sh exits the script if DARK_MODE is on. Moved "identity" check to top; there's no need to do anything else if the image is corrupt. Perform error checking on "convert". Allow user to specify thumbnail size and resize size. Implement $IMG_PREFIX instead of hard-coding "liveview-". Removed unnecessary double quotes on lftp line to make it easier to read.
Removed check for DARK_MODE since darkCapture.sh exits the script if DARK_MODE is on. Moved "identity" check to top; there's no need to do anything else if the image is corrupt. Perform error checking on "convert". Allow user to specify thumbnail size and resize size. Implement $IMG_PREFIX instead of hard-coding "liveview-". Removed unnecessary double quotes on lftp line to make it easier to read. The final image name is always the same now, so it's no longer "image-processed.jpg" if dark subtract is on, and "image.jpg" if it's off. That was confusing.
Optionally also checks for too dark and too bright images, based on REMOVE_BAD_IMAGES_THRESHOLD_LOW and REMOVE_BAD_IMAGES_THRESHOLD_HIGH from config.sh. NOTE: I'm not sure how to do that check if "parallel" is used. Removes bad thumbnails in addition to bad images, and displays reason they are removed. Centralized redundant code for easier maintenance. Outputs a summary line.
Allows timelapses to be created for images no in ~/allsky/images. For example, for observatory cameras. Save "ln -s" output to temp file rather than outputting 1000+ lines to log file. temp file is save so user can look at it, and a summary is output. Perform error checking. Decreased useless output from ffmpeg. lftp puts to a temp name, then renames it to the correct name. This is because timelapse files are large and if the web server tries to read the file as it's being uploaded, it will get an error.
Implement $ME. Remove unneeded double quotes in lftp. Removed "-u $USER,$PASSWORD" since it's not needed.
Mention new settings and new names to existing settings. Note that many of the settings (now and prior to these changes) don't apply to Pi cameras; I didn't do anything about that. I'm assuming the will be version 0.8, so added summary of changes.
Keep prior log file to aid in debugging. Ability to reset the USB bus if the ZWO camera isn't found. Put settings in a bash array, so they can have spaces in them. Optionally display "notification" images. Checks if output is a tty (user invoked it manually) or not (service invoked it) - this is used by capture program to display appropriate log messages.
Includes new variables.
Added new and renamed settings.
Add new settings. Changed names on others.
Added many of the changes from the ZWO capture.cpp file to keep both files in better sync. NOTE: I don't have an RPiHQ camera so was unable to test the new version. It compiles, however. NOTE: I suggest removing the unused code from capture.cpp (it's commented out). It makes the file harder to read.
Lots of updates from Eric Claeys and Linda xxx Workaround for ZWO auto exposure bug (included in #ifdef USE_HISTOGRAM blocks - on my default). Improved exposure algorithm that decreases sensor temperature about 10 C. Better exposure transition between day and night when gain is different. Many new settings and many old ones changed names. The recently submitted allsky-portal knows about these changes. Lots of error checking. Optionally displays "notification" images, like "Taking darks". On user error, displays a message and waits for the user to fix it, rather than exiting, restarting, exiting, etc. Gracefully exits when service sends SIGTERM signal. Lots of comments and additional debugging code added (based on actual problems people had). Handles dark frames better.
Thanks @EricClaeys and Linda. This is a pretty exciting update. Let me pull this locally and test on both the ZWO and RPiHQ setups and then I'll merge it to |
Would I be the only one not clear on these changes, are they part of a new ALLSKY GitHub download available at this time for the Pi
…Sent from my iPad
On Aug 5, 2021, at 10:22 AM, EricClaeys ***@***.***> wrote:
Lots of enhancements, fixes, and error checking, many of which were discussed with Thomas the end of July, 2021.
Users who also have allsky-portal should update it when they update allsky since many new settings were added and many changed names.
Several of us have been running with these changes for a couple months, although we all have ZWO cameras.
You can view, comment on, or merge this pull request online at:
#405
Commit Summary
Add files via upload
Add files via upload
Add files via upload
Add files via upload
Merge branch 'thomasjacquin:master' into master
Update copy_notification_image.sh
Update darkCapture.sh
Update darkSubtract.sh
Update endOfNight.sh
Update endOfNight_additionalSteps.sh
Update generateForDay.sh
Update postData.sh
Update saveImageDay.sh
Update saveImageNight.sh
Update removeBadImages.sh
Update timelapse.sh
Update uploadForDay.sh
Update README.md
Update allsky.sh
Update config.sh.repo
Update settings_RPiHQ.json.repo
Update settings_ZWO.json.repo
Update capture_RPiHQ.cpp
Update capture.cpp
File Changes
M README.md (72)
M allsky.sh (115)
M capture.cpp (2498)
M capture_RPiHQ.cpp (870)
M config.sh.repo (40)
A notification_images/CameraOffDuringDay.jpg (0)
A notification_images/CameraOffDuringDay.png (0)
A notification_images/DarkFrames.jpg (0)
A notification_images/DarkFrames.png (0)
A notification_images/Error.jpg (0)
A notification_images/Error.png (0)
A notification_images/NotRunning.jpg (0)
A notification_images/NotRunning.png (0)
A notification_images/StartingUp.jpg (0)
A notification_images/StartingUp.png (0)
A scripts/copy_notification_image.sh (85)
M scripts/darkCapture.sh (33)
M scripts/darkSubtract.sh (22)
M scripts/endOfNight.sh (78)
M scripts/endOfNight_additionalSteps.sh (4)
M scripts/generateForDay.sh (28)
M scripts/postData.sh (11)
M scripts/removeBadImages.sh (54)
M scripts/saveImageDay.sh (93)
M scripts/saveImageNight.sh (123)
M scripts/timelapse.sh (98)
M scripts/uploadForDay.sh (40)
M settings_RPiHQ.json.repo (31)
M settings_ZWO.json.repo (54)
Patch Links:
https://github.com/thomasjacquin/allsky/pull/405.patch
https://github.com/thomasjacquin/allsky/pull/405.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
@bbillp - These are suggested/requested changes, they have not been put into the current live version yet. But hopefully soon if all the remaining testing goes well :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Lots of enhancements, fixes, and error checking, many of which were discussed with Thomas the end of July, 2021.
Users who also have allsky-portal should update it when they update allsky since many new settings were added and many changed names.
Several of us have been running with these changes for a couple months, although we all have ZWO cameras.