AllskyTeam / allsky

A Raspberry Pi operated Wireless Allsky Camera
MIT License
1.19k stars 180 forks source link

Keogram not generated #1078

Closed drakula1981 closed 2 years ago

drakula1981 commented 2 years ago

Hello,

First of all, thank you so much for this fantastic software! As not everything is rosy in the best of all worlds, I encounter a problem during the generation of the keogram of the day! This is the message in the /var/log/allsky.log : Unable to read first file (/home/pi/allsky/images/); quitting

I tried the following command right in the terminal with the same error : '/home/pi/allsky/keogram' -s 1920x1080 -d '/home/pi/allsky/images/20220317' -e jpg -o '/home/pi/allsky/images/20220317/keogram/keogram-20220317.jpg' --rotate 0 --font-size 1.0 --font-line 1 --font-color '255 255 255'

I specify that this bug has just appeared since today only! The timelapse and startrail worked fine for the same day What could have gone wrong?

Here an extract of the log file while calling the endofnight script : Mar 18 06:42:08 HyperRedAllSkyCam allsky.sh[840]: ========== Mar 18 06:42:08 HyperRedAllSkyCam allsky.sh[840]: === Starting daytime capture === Mar 18 06:42:08 HyperRedAllSkyCam allsky.sh[840]: ========== Mar 18 06:42:08 HyperRedAllSkyCam allsky.sh[840]: Stop the allsky service to end this process. Mar 18 06:42:08 HyperRedAllSkyCam allsky.sh[840]: STARTING EXPOSURE at: 2022-03-18 06:42:08 @ 143.03 ms (0.14 sec) Mar 18 06:42:08 HyperRedAllSkyCam allsky.sh[840]: endOfNight.sh: ===== Posting twilight data Mar 18 06:42:08 HyperRedAllSkyCam allsky.sh[840]: endOfNight.sh: ===== Generating Keogram Mar 18 06:42:11 HyperRedAllSkyCam allsky.sh[840]: Unable to read first file (/home/pi/allsky/images/20220317/image-20220317112604.jpg); quitting Mar 18 06:42:11 HyperRedAllSkyCam allsky.sh[840]: generateForDay.sh: Command Failed: '/home/pi/allsky/keogram' -s 1920x1080 -d '/home/pi/allsky/images/20220317' -e jpg -o '/home/pi/allsky/images/20220317/keogram/keogram-20220317.jpg' --rotate 0 --font-size 1.0 --font-line 1 --font-color '255 255 255' Mar 18 06:42:11 HyperRedAllSkyCam allsky.sh[840]: endOfNight.sh: ===== Keogram complete Mar 18 06:42:11 HyperRedAllSkyCam allsky.sh[840]: endOfNight.sh: ===== Generating Startrails

EricClaeys commented 2 years ago

@drakula1981 Do you have the Width and Height set to something other than 0 in the WebUI, like Width of 1920 and Height of 1080?

EricClaeys commented 2 years ago

@drakula1981 Also, please download the newest src/keogram.cpp file from GitHub and copy it to /home/pi/allsky/src, then:

cd ~/allsky/src
make keogram
cp keogram ..

Then manually try and make the keogram again - it will fail but will tell you what file it failed on. What's the resolution of that file?

drakula1981 commented 2 years ago

@EricClaeys Thanks for your answers, Firstly, yes in the camera settings, there were Height and Width set to 1920 and 1080. I removed them and I will come back to you

EricClaeys commented 2 years ago

@drakula1981 When the Width and Height are set in the WebUI, a "-s x" argument is added to the keogram and startrails command lines, e.g., "-s 1920-x1080". However, I believe the Width and Height settings in the WebUI only use that portion of the sensor, but don't actually change the resolution of the image - instead, they are doing a "digital zoom". So the resolution of the image is the sensor's resolution, but the keogram and startrails programs are expecting a smaller image, so they ignore any image that's not 1920x1080.

Please let me know the dimensions of the image it failed on.

drakula1981 commented 2 years ago

@EricClaeys The camera is a Raspberry HQ camera so the images size are 4056x3040 While developing AllSky Hardware (I added some other sensors) All my tests were made with the original settings and I had a keogram every night I tested. When i put the allsky camera "in production" on the observatory, I made some adjustments including the sizing of the images, thinking that it would be the unit resolution of each image. Obviously it's not the expected behavior?

EricClaeys commented 2 years ago

@drakula1981 Are you on Bullseye or Buster?

drakula1981 commented 2 years ago

@EricClaeys I'm still on Buster

EricClaeys commented 2 years ago

@drakula1981 Can you do me a big favor? Set the Width and Height to 0, then see if those images look identical to the ones when you had 1920 x 1080, including identical resolution. On Bullseye they are, which means there's no reason to set the Width and Height. I'm pretty sure it'll be the same way on Buster but I need to verify that.

If the new pictures are identical, then leave Width and Height at 0. The problem would then be that setting Width and Height tells the keogram and startrails programs to fail on any picture that's not that resolution, which none of them will be.

EricClaeys commented 2 years ago

Closing Issue - no response from user in 3 weeks, and reported problem was resolved.