CroatianMeteorNetwork / RMS

RPi Meteor Station
https://globalmeteornetwork.org/
GNU General Public License v3.0
169 stars 47 forks source link

Fix for issues 179 and 181 #185

Closed markmac99 closed 11 months ago

markmac99 commented 12 months ago

NOW TESTED WITHOUT ISSUES

1) ExtractStars doesn't log any info, so there is no warning if TOO MANY stars were detected. This update sends logging to the normal RMS logfile so that at least we can see when the problem arose. Closes #181

2) archiveDir crashes if the timelapse or any other extra_files entry is missing. This can happen if zero FITS files were captured, a rare state but apparently one that end-users have encountered. I've put in try/except around the lines that copy files to ArchiveDir, and added logging to the normal RMS logfile. Fixes #179

dvida commented 11 months ago

I tested it and it produces good results, but there are no prints if you run RMS.ExtractStars manually. Could you add a logger handle in the if name == "main" block at the bottom to make the prints visible?