Closed WirthmU closed 2 years ago
@WirthmU. First, I suggest setting IMG_RESIZE to false
. All it's doing right now is resizing it to the same size, which only decreases quality slightly.
What is the 2nd picture? A full startrails image, or only the upper left portion? Normally in startrails pictures the date and time are a combination of all the images so are unreadable.
IMG_RESIZSE does not change anything in the appearance of the picture on my website http://80.219.133.218/Bern/allskyB.htm.
The second picture is what appears if I do select "archived startrails" from the live view screen and then any of the archived startrails pictures. In this particular case it does not show the combination because the weather is bad so there is only one picture.
@WirthmU I didn't expect turning off IMG_RESIZE to change the picture, although if you look closely you may see the quality is better. It saves a little time and another write to the SD card.
The large text started appearing March 15 when it appears like you upgraded the software. The images before that are fine. Would you please attach your config/config.sh
file?
It's interesting that the thumbnails for the startrails are fine. If you open the startrails images while on your Pi are they OK? They are in /var/www/html/allsky/startrails.
Yes - you are right - the change appeared after the update anywhere between March 10 and 15.
My config.sh looks like as follows:
#!/bin/bash
# NOTES:
# - Variable names must start at the beginning of a line.
# - There should be nothing after a variable's value, i.e., no comments on the same line.
# - Values can optionally be quoted with double quotes, NOT single quotes.
# - If a variable occurs multiple times, only the last value is used.
# Choose between "ZWO" or "RPiHQ".
CAMERA="RPiHQ"
########## Images
# Set to "true" to upload the current image to your website.
IMG_UPLOAD="true"
# If IMG_UPLOAD is "true", upload images every IMG_UPLOAD_FREQUENCY frames, e.g., every 5 frames.
# 1 uploades every frame.
IMG_UPLOAD_FREQUENCY=1
# The websites look in IMG_DIR for the current image.
# When using the Allsky website from the "allsky-website" packge,
# "current" is an alias for "/home/pi/allsky".
# If you use the default IMG_DIR and have the Allsky website, set "imageName" in
# /var/www/html/allsky/config.js to:
# imageName: "/current/tmp/image.jpg",
# This avoids copying the image to the website.
# Only change IMG_DIR if you know what you are doing.
IMG_DIR="current/tmp"
# Resize images before cropping, stretching, and saving.
# Adjust IMG_WIDTH and IMG_HEIGHT according to your camera's sensor ratio.
IMG_RESIZE="false"
IMG_WIDTH=2028
IMG_HEIGHT=1520
# Crop images before stretching and saving.
# This is useful to remove some of the black border when using a fisheye lens.
# If you crop an image you may need to change the "Text X" and/or "Text Y" settings in the WebUI.
CROP_IMAGE="false"
CROP_WIDTH=640
CROP_HEIGHT=480
CROP_OFFSET_X=0
CROP_OFFSET_Y=0
# Auto stretch images saved at night.
AUTO_STRETCH="false"
AUTO_STRETCH_AMOUNT=10
AUTO_STRETCH_MID_POINT="10%"
# Resize uploaded images. Change the size to fit your sensor.
RESIZE_UPLOADS="false"
RESIZE_UPLOADS_SIZE="962x720"
# Create thumbnails of images. If you are not running the WebUI consider changing this to "false".
IMG_CREATE_THUMBNAILS="true"
# Remove corrupt images before generating keograms, startrails, and timelapse videos.
# This only adds a few seconds per image as it's being processed.
REMOVE_BAD_IMAGES="true"
# If REMOVE_BAD_IMAGES is "true", images whose mean brightness is
# less than THRESHOLD_LOW or greater than THRESHOLD_HIGH percent (max: 100) will be removed.
# Set to 0 to disable the brightness checks.
REMOVE_BAD_IMAGES_THRESHOLD_LOW=1
REMOVE_BAD_IMAGES_THRESHOLD_HIGH=90
# Additional Capture parameters. Run "capture_RPiHQ -h" to see the options.
# e.g. activate autoexposure algorithm "mean" for RPiHQ: "-nightmean 0.3 -daymean 0.3"
CAPTURE_EXTRA_PARAMETERS=""
# Set to "false" to disable daytime capture.
DAYTIME_CAPTURE="true"
# Night images are always taken and saved to disk.
# Setting DAYTIME_SAVE to "true" also saves daytime images to disk.
# Will only save daytime images if DAYTIME_CAPTURE="true".
DAYTIME_SAVE="false"
########## Timelapse
# Set to "true" to generate a timelapse video at the end of each night.
TIMELAPSE="true"
# Set the resolution of the timelapse video (sizes must be EVEN numbers).
# 0 disables resize and uses the same resolution as the images.
TIMELAPSEWIDTH=1442
TIMELAPSEHEIGHT=1080
# Bitrate of the timelapse video. Higher numbers will produce higher quality but larger files.
TIMELAPSE_BITRATE="2000k"
# Timelapse video Frames Per Second.
FPS=25
# Encoder for timelapse video. May be changed to use a hardware encoder or different codec.
VCODEC="libx264"
# Pixel format.
PIX_FMT=${PIX_FMT:-yuv420p}
# FFLOG determines the amount of log information displayed while creating a timelapse video.
# Set to "info" to see additional information if you are tuning the algorithm.
FFLOG="warning"
# While creating a timelapse video, a sequence of links to the images is created.
# Set to "true" to keep that sequence; set to "false" to have it deleted when done.
KEEP_SEQUENCE="false"
# Any additional timelapse parameters. Run "ffmpeg -?" to see the options.
TIMELAPSE_EXTRA_PARAMETERS=""
# Set to "true" to upload timelapse video to your website at the end of each night.
UPLOAD_VIDEO="true"
########## Keogram
# Set to "true" to generate a keogram at the end of each night.
KEOGRAM="true"
# Additional Keogram parameters. Run "keogram --help" to see the options.
KEOGRAM_EXTRA_PARAMETERS="--font-size 1.0 --font-line 1 --font-color '255 255 255'"
# Set to "true" to upload the keogram to your website at the end of each night.
UPLOAD_KEOGRAM="true"
########## Startrails
# Set to "true" to generate a startrails image of each night.
STARTRAILS="true"
# Images with a brightness higher than this threshold will be skipped for
# startrails image generation. Values are 0.0 to 1.0.
BRIGHTNESS_THRESHOLD=0.1
# Any additional startrails parameters. Run "startrails --help" to see the options.
STARTRAILS_EXTRA_PARAMETERS=""
# Set to "true" to upload the startrails image to your website at the end of each night.
UPLOAD_STARTRAILS="true"
########## Other
# Size of thumbnails.
THUMBNAIL_SIZE_X=100
THUMBNAIL_SIZE_Y=75
# Set this value to the number of days images plus videos you want to keep.
# Set to "" to keep ALL days.
DAYS_TO_KEEP=14
# Same as DAYS_TO_KEEP, but for the Allsky website, if installed.
# Set to "" to keep ALL days.
WEB_DAYS_TO_KEEP=""
# Set to "true" to upload data to your server at the end of each night.
# This is needed if you are running the Allsky Website.
POST_END_OF_NIGHT_DATA="true"
# Set to "true" if you want to enable dark frame subtraction on your night-time images.
# You must first create dark frames - see the README.md file for instructions.
DARK_FRAME_SUBTRACTION="false"
# If you have additional data or buttons you want displayed on the WebUI's System page,
# specify one or more colon-separated files that contain that data.
# You must provide scripts to update those files.
# See the WEBUI_DATA_FILES configuration variable in the "Software settings" section of
# https://github.com/thomasjacquin/allsky/wiki/allsky-Settings for details.
WEBUI_DATA_FILES=""
# The uhubctl command can reset the USB bus if the camera isn't found and you know it's there.
# Allsky.sh uses this to try and fix "missing" cameras.
# Specify the path to the command and the USB bus number (on a Pi 4, bus 1 is USB 2.0 and
# bus 2 is the USB 3.0 ports). If you don't have 'uhubctl' installed set UHUBCTL_PATH="".
UHUBCTL_PATH=""
UHUBCTL_PORT=2
# Path to the camera settings (exposure, gain, delay, overlay, etc) files.
# Do not change unless you know what you are doing.
CAMERA_SETTINGS_DIR="/etc/raspap"
# ================ Do not change anything below this line.
END_OF_USER_SETTINGS="true" # During upgrades, stop looking for variables here.
if [ "${CAMERA}" = "" ]; then
echo "${RED}ERROR: Please set CAMERA in config/config.sh${NC}"
sudo systemctl stop allsky
exit 100
fi
# COMPATIBILITY CHECK
if [ -z "${DAYS_TO_KEEP}" ]; then # Old version had AUTO_DELETE and NIGHTS_TO_KEEP
AUTO_DELETE="false"
else
AUTO_DELETE="true"
NIGHTS_TO_KEEP="${DAYS_TO_KEEP}"
fi
# This is needed in case the user changed the default location the current image is saved to.
if [ "${IMG_DIR}" = "current/tmp" ]; then
CAPTURE_SAVE_DIR="${ALLSKY_TMP}"
else
CAPTURE_SAVE_DIR="${IMG_DIR}"
fi
CAMERA_SETTINGS="${CAMERA_SETTINGS_DIR}/settings_${CAMERA}.json"
# Get the name of the file the websites will look for, and split into name and extension.
FULL_FILENAME=$(jq -r '.filename' "$CAMERA_SETTINGS")
EXTENSION="${FULL_FILENAME##*.}"
FILENAME="${FULL_FILENAME%.*}"
# So scripts can conditionally ouput messages; DO NOT CHANGE NEXT LINES.
ALLSKY_DEBUG_LEVEL=$(jq -r '.debuglevel' "${CAMERA_SETTINGS}")
And yes - the startrails on the Pi and also in the AllSky administration file are ok:
@WirthmU I don't think this is an Allsky issue; I believe it's in the changes you made, or related to the
Looking at your images, I have a few suggestions:
Font Color
, and set Use Outline Font
to Yes. It's really hard to see the text in most of the pictures. You can make these changes in the WebUI's "Camera Settings" page.--image-expand
to KEOGRAM_EXTRA_PARAMETERS
in config.sh. As an example, look at the 2022-04-04 keogram versus 2022-02-28.Thank you for your suggestions @EricClaeys - this is always welcome!
It still is intruiging to me since I have not changed anything in my html-code between March 10 and 15. And I have not changed anything in the allsky-website code as well. The only thing I have updated is the allsky code itself.g I will try to figure it out myself.
@WirthmU Are the images before and after the upgrade identical resolution?
@WirthmU You may want to press F12 when in the startrails window, then go to the Network pane. There are several files it can't find.
I'm 99% sure your problem is that the new pictures are full size (4056 x 3040) whereas your picture from before the upgrade are 1008 x 756. I assume you used to have IMG_RESIZE="true"
with a size of 1008 x 756.
Your html is trying to display the pictures full-size - the old ones fit on the screen but the new ones only show the upper left part.
You are right @EricClaeys the image size is not the same. As you have mentioned before setting IMG_RESIZE to false did not help. I will change it back to "true" and 1008 x756:
IMG_RESIZE="true"
IMG_WIDTH=1006
IMG_HEIGHT=756
Let's see tomorrow if this helps.
@WirthmU Any update? If your problem is fixed would you please close the Issue? Thanks.
Reducing the size on the settings fixed it.
Thank you @EricClaeys
@WirthmU GREAT! I am glad the fix was easy.
I am using a RPiQH camera. I have the following settings on my allsky config.sh which should allow for the size of my pictures:
Now the current liveview picture looks perfectly fine and I do get the whole picture.
However the startrails are looking way too big:
Where would I need to adjust for the startrails so they are not so big?