diff --git a/README.md b/README.md index aae53af67..5510db5e6 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ git clone https://github.com/aaronwmorris/indi-allsky.git ``` 1. Navigate to the indi-allky sub-directory ``` -cd indi-allsky.git +cd indi-allsky/ ``` 1. Run setup.sh to install the relevant software ``` @@ -76,7 +76,7 @@ systemctl --user start indiserver systemctl --user start indi-allsky ``` 1. Login to the indi-allsky web application -https://raspberrypi/ +https://raspberrypi.local/ * Note: The web server is configured with a self-signed certificate. ### Manual operation @@ -243,8 +243,8 @@ All configuration is read from /etc/indi-allsky/config.json . You can find conf | IMAGE_FOLDER | | (string) Base folder to save images | | IMAGE_DEBAYER | Auto detected | (string) OpenCV debayering algorithm | | IMAGE_GRAYSCALE | false | Convert image to grayscale | -| IMAGE_FLIP_V | false | (bool) Flip images vertically | -| IMAGE_FLIP_H | false | (bool) Flip images horizontally | +| IMAGE_FLIP_V | true | (bool) Flip images vertically | +| IMAGE_FLIP_H | true | (bool) Flip images horizontally | | IMAGE_SCALE | 100 | (percent) Image scaling factor | | IMAGE_CROP_ROI | [] | (array) Region of interest to crop image (x1, y1, x2, y2) | | IMAGE_SAVE_RAW | false | (bool) Save raw image file | diff --git a/config.json_template b/config.json_template index 5c72db9d7..4cb25da8d 100644 --- a/config.json_template +++ b/config.json_template @@ -70,8 +70,8 @@ "comment_IMAGE_DIR" : "local base folder for images, empty for current dir", "IMAGE_FOLDER" : "/var/www/html/allsky/images", "IMAGE_CROP_ROI" : [], - "IMAGE_FLIP_V" : false, - "IMAGE_FLIP_H" : false, + "IMAGE_FLIP_V" : true, + "IMAGE_FLIP_H" : true, "IMAGE_SCALE" : 100, "IMAGE_SAVE_RAW" : false, "IMAGE_GRAYSCALE" : false, diff --git a/indi_allsky/flask/forms.py b/indi_allsky/flask/forms.py index 6623413c3..edb265233 100644 --- a/indi_allsky/flask/forms.py +++ b/indi_allsky/flask/forms.py @@ -319,6 +319,9 @@ def FFMPEG_BITRATE_validator(form, field): def TEXT_PROPERTIES__FONT_FACE_validator(form, field): + if not field.data: + return + fonts = ( 'FONT_HERSHEY_SIMPLEX', 'FONT_HERSHEY_PLAIN', @@ -508,6 +511,7 @@ class IndiAllskyConfigForm(FlaskForm): ('FONT_HERSHEY_COMPLEX_SMALL', 'Serif (small)'), ('FONT_HERSHEY_SCRIPT_SIMPLEX', 'Script'), ('FONT_HERSHEY_SCRIPT_COMPLEX', 'Script (complex)'), + ('', 'Disabled'), ) FILETRANSFER__CLASSNAME_choices = ( @@ -577,7 +581,7 @@ class IndiAllskyConfigForm(FlaskForm): IMAGE_EXPIRE_DAYS = IntegerField('Image expiration (days)', validators=[DataRequired(), IMAGE_EXPIRE_DAYS_validator]) FFMPEG_FRAMERATE = IntegerField('FFMPEG Framerate', validators=[DataRequired(), FFMPEG_FRAMERATE_validator]) FFMPEG_BITRATE = StringField('FFMPEG Bitrate', validators=[DataRequired(), FFMPEG_BITRATE_validator]) - TEXT_PROPERTIES__FONT_FACE = SelectField('Font', choices=TEXT_PROPERTIES__FONT_FACE_choices, validators=[DataRequired(), TEXT_PROPERTIES__FONT_FACE_validator]) + TEXT_PROPERTIES__FONT_FACE = SelectField('Font', choices=TEXT_PROPERTIES__FONT_FACE_choices, validators=[TEXT_PROPERTIES__FONT_FACE_validator]) TEXT_PROPERTIES__FONT_HEIGHT = IntegerField('Font Height Offset', validators=[DataRequired(), TEXT_PROPERTIES__FONT_HEIGHT_validator]) TEXT_PROPERTIES__FONT_X = IntegerField('Font X Offset', validators=[DataRequired(), TEXT_PROPERTIES__FONT_X_validator]) TEXT_PROPERTIES__FONT_Y = IntegerField('Font Y Offset', validators=[DataRequired(), TEXT_PROPERTIES__FONT_Y_validator]) diff --git a/indi_allsky/flask/templates/config.html b/indi_allsky/flask/templates/config.html index 4d7fbb048..e3c16fa6a 100644 --- a/indi_allsky/flask/templates/config.html +++ b/indi_allsky/flask/templates/config.html @@ -475,7 +475,7 @@ {{ form_config.IMAGE_FILE_COMPRESSION__JPG(class='form-control bg-secondary') }}
-