Closed ShianMull closed 3 years ago
Mark, Are you using allsky version 0.8 and allsky-portal version 0.7? If so, please post your /home/pi/allsky/config, /home/pi/allsky/scripts/ftp_settings.sh, and /etc/raspap/*ZWO.json files. The problem is probably in your settings.
When you say "Thomas's website", what is the URL?
Eric
Hi Eric,
/home/pi/allsky/config:
CAMERA="auto"
UPLOAD_IMG=true
UPLOAD_VIDEO=true
POST_END_OF_NIGHT_DATA=true
TIMELAPSE=true
TIMELAPSEWIDTH=0 TIMELAPSEHEIGHT=0
FPS=25
KEOGRAM=true
UPLOAD_KEOGRAM=true
STARTRAILS=true
BRIGHTNESS_THRESHOLD=0.1
UPLOAD_STARTRAILS=true
AUTO_DELETE=true
NIGHTS_TO_KEEP=7
DARK_FRAME_SUBTRACTION=false
DAYTIME="1"
CAPTURE_24HR=false
IMG_RESIZE=false IMG_HEIGHT=1520 IMG_WIDTH=2028
CROP_IMAGE=false CROP_WIDTH=640 CROP_HEIGHT=480 CROP_OFFSET_X=0 CROP_OFFSET_Y=0
AUTO_STRETCH=false AUTO_STRETCH_AMOUNT=10 AUTO_STRETCH_MID_POINT=10%
CAMERA_SETTINGS_DIR="/etc/raspap"
if [[ $CAMERA -eq "auto" ]]; then
source "$ALLSKY_HOME/autocam.sh" fi CAMERA_SETTINGS="$CAMERA_SETTINGSDIR/settings$CAMERA.json"
ftp_settings.sh
PROTOCOL='local' USER='username' PASSWORD='password' HOST='example.com' IMGDIR = '/var/www/html/allsky/' MP4DIR = '/var/www/html/allsky/videos' KEOGRAM_DIR = '/var/www/html/allsky/keograms' STARTRAILS_DIR = '/var/www/html/allsky/startrails'
#
AWS_CLI_DIR='/home/pi/.local/bin'
S3_BUCKET='allskybucket'
S3_ACL='private'
…..ZWO.json
[ { "name":"width", "default":0, "description":"Image width. 0 = max width", "label":"Width", "type":"number" }, { "name":"height", "default":0, "description":"Image height. 0 = max height", "label":"Height", "type":"number" }, { "name":"exposure", "default":10000, "description":"Time in ms (1000ms = 1 sec)", "label":"Exposure", "type":"number" }, { "name":"maxexposure", "default":20000, "description":"Max exposure time in ms (1000ms = 1 sec)", "label":"Max Exposure", "type":"number" }, { "name":"autoexposure", "default":"1", "description":"Activate to enable auto-exposure", "label":"Auto-Exposure", "type":"checkbox" }, { "name":"gain", "default":"50", "description":"Light sensitivity. Starts at 0. A high value returns a brighter image but more noise too", "label":"Gain", "type":"number" }, { "name":"maxgain", "default":200, "description":"Upper gain limit when using auto-gain", "label":"Max Gain", "type":"number" }, { "name":"autogain", "default":"0", "description":"Activate to enable auto-gain", "label":"Auto-Gain", "type":"checkbox" }, { "name":"coolerEnabled", "default":"0", "description":"Activate to use cooling (works only on cooled cameras)", "label":"Cooling", "type":"checkbox" }, { "name":"targetTemp", "default":"0", "description":"Sensor's target temperature when cooler is enabled (degrees Celsius)", "label":"Target Temp.", "type":"number" }, { "name":"gamma", "default":"50", "description":"0 to 100. Changes the difference between light and dark areas. A hight value increases contrast", "label":"Gamma", "type":"number" }, { "name":"brightness", "default":"50", "description":"0 to 100. Changes the amount of light in the image. Low value = dark. high value = bright", "label":"Brightness", "type":"number" }, { "name":"wbr", "default":"53", "description":"Red component for the White Balance", "label":"Red balance", "type":"number" }, { "name":"wbb", "default":"90", "description":"Blue component for the White Balance", "label":"Blue balance", "type":"number" }, { "name":"bin", "default":"1", "description":"1 = binning OFF (1x1), 2 = 2x2 binning, 4 = 4x4 binning. Check available binning mode for your camera", "label":"Binning", "type":"number" }, { "name":"delay", "default":"10", "description":"Delay between images in milliseconds. 1000ms = 1 sec.", "label":"Delay", "type":"number" }, { "name":"daytimeDelay", "default":"5000", "description":"Delay between images during daytime in milliseconds. 1000ms = 1 sec.", "label":"Daytime Delay", "type":"number" }, { "name":"type", "default":"1", "description":"Choose between Color (RGB24) or Grayscale (RAW8, RAW16). 16 bits only works with PNG extension", "label":"Image Type", "type":"select", "options": [ {"value": "0", "label": "RAW8"}, {"value": "1", "label": "RGB24"}, {"value": "2", "label": "RAW16"} ] }, { "name":"quality", "default":"95", "description":"Range for a PNG image: 0-9. Range for a JPG image: 0-100", "label":"Quality", "type":"number" }, { "name":"usb", "default":"40", "description":"Values between 40-100. This is BandwidthOverload", "label":"USB bandwidth", "type":"number" }, { "name":"filename", "default":"image.jpg", "description":"No whitespaces in filename. Extensions allowed: .jpg or .png", "label":"Filename", "type":"text" }, { "name":"flip", "default":"0", "description":"Select a flipping option if you want to reverse the image along an axis", "label":"Flip", "type":"select", "options": [ {"value": "0", "label": "Original"}, {"value": "1", "label": "Horizontal"}, {"value": "2", "label": "Vertical"}, {"value": "3", "label": "Both"} ] }, { "name":"text", "default":"", "description":"Text Overlay", "label":"Text Overlay", "type":"text" }, { "name":"extratext", "default":"", "description":"Extra Text File (Requires the full path to the file) If you are not using an extra text file ensure this field is empty", "label":"Extra Text File", "type":"text" }, { "name":"extratextage", "default":"600", "description":"The maximum age of the extra text file in seconds. After this time the file will no longer be dispalyed. Set to 0 to always display", "label":"Max Age Of Extra", "type":"number" }, { "name":"textlineheight", "default":"30", "description":"The line height of the text, if increasing the font size causes the text overlap then increase this value", "label":"Line Height", "type":"number" }, { "name":"textx", "default":"15", "description":"Text Placement Horizontal from LEFT in Pixels", "label":"Text X", "type":"number" }, { "name":"texty", "default":"35", "description":"Text Placement Vertical from TOP in Pixels", "label":"Text Y", "type":"number" }, { "name":"fontname", "default":"0", "description":"Font Types for the text overlay", "label":"Font Name", "type":"select", "options": [ {"value": "0", "label": "Simplex"}, {"value": "1", "label": "Plain"}, {"value": "2", "label": "Duplex"}, {"value": "3", "label": "Complex"}, {"value": "4", "label": "Triplex"}, {"value": "5", "label": "Complex Small"}, {"value": "6", "label": "Script Simplex"}, {"value": "7", "label": "Script Complex"} ] }, { "name":"fontcolor", "default":"255 255 255", "description":"BGR value of text color. 0 to 255 for each channel. NOTE: When using RAW 16 only the B and G values are used i.e. 255 128 0", "label":"Font Color", "type":"text" }, { "name":"smallfontcolor", "default":"0 0 255", "description":"BGR value of text color. 0 to 255 for each channel. NOTE: When using RAW 16 only the B and G values are used i.e. 255 128 0", "label":"Small Font Color", "type":"text" }, { "name":"fonttype", "default":"0", "description":"Choose between smooth font lines (antialiased), 8-pixel or 4 pixel connectivity (harder edges)", "label":"Font Smoothness", "type":"select", "options": [ {"value": "0", "label": "Antialiased"}, {"value": "1", "label": "8 connected"}, {"value": "2", "label": "4 connected"} ] }, { "name":"fontsize", "default":"7", "description":"Text Font Size", "label":"Font Size", "type":"number" }, { "name":"fontline", "default":"1", "description":"Text Font Line Thickness", "label":"Font Weight", "type":"number" }, { "name":"outlinefont", "default":"0", "description":"Adds an outline to the text overlay to improve contrast", "label":"Use Outline Font", "type":"checkbox" }, { "name":"latitude", "default":"60.7N", "description":"Latitude of the camera. Needs a number (0 to 90) and direction (N or S). Ex: 60.7N", "label":"Latitude", "type":"text" }, { "name":"longitude", "default":"135.05W", "description":"Longitude of the camera. Needs a number (0 to 180) and direction (E or W). Ex: 135.05W", "label":"Longitude", "type":"text" }, { "name":"angle", "default":"-6", "description":"Altitude of the sun in degrees relative to the horizon at which to start/stop capture", "label":"Angle", "type":"text" }, { "name":"time", "default":"1", "description":"Adds the time to the image. Combine with Text X and Text Y for placement", "label":"Time", "type":"checkbox" }, { "name":"darkframe", "default":"0", "description":"Activate to capture a dark frame. This mode hides text and time overlays", "label":"Dark Frame", "type":"checkbox" }, { "name":"showDetails", "default":"1", "description":"Activate to display the image metadata on the overlay", "label":"Show Details", "type":"checkbox" }
]
I meant Thomas’s default website that is copied onto the local RasPi as part of the install.sh - I think it just ports the website over.
All the best
Mark
Hi Eric,
I realised I had made an error in the FTP_settings.sh and included “spaces” in between the “=“ and the directory names - rectified and now Startrails and Keograms upload fine.
The live view is also uploading to var/www/html/allsky OK, but the file name is “image-resize.jpg”, which isn’t being displayed on the default webpage instant view.
There are also no time lapse videos being saved to the default MP4 directly for the website, so I suspect there is a file name/directory mismatch for the video and the live image.
Would you be able to point me in the right direction to check what name the website uses for the live image, and any thoughts on why the time lapse isn’t uploading?
Many thanks for your help.
Mark
Mark, There are two websites:
Thanks Eric,
GUI website is working fine, no problem with live view.
I’ve already tried editing config.js to change “image.jpeg” to “image-resize.jpeg” (the posted file that seems to update as expected as a file), but this hasn’t resulted in the live image being displayed on the Pi hosted website (with the constellation view)…
The other issue is that the Timelapse video (
Many thanks for your help.
Mark
Update before the bedtime! I have edited both website script and timelapse.sh to use a consistent name. Not sure why I have scripts that use differing file names to each other, but it must have been down to installing website separately from GUI and original install script. Will update if successful, but I think your pointers, Eric, have helped me identify the salient issues - many thanks.
Mark
Everything except the copy of time lapse works now, but my recommendation is that the website is not hosted from the Pi (Pi4 might be more capable), as it probably puts more workload on the flash drive than necessary.
The issue I have found is tracking what files are saved where under which config file when using GUI vs command prompt. I guess one needs to keep up to date on the various updates, so my suggestion to anyone making this excellent project is that it’s worth making your own note of what is installed where and how it’s edited to keep on top of things 😊
Hi All,
I'm puzzling the last issue before I package the allsky camera and put it outside, I have installed Thomas's website on the Pi3 I'm using and made appropriate changes to ftp script, but the compiled images and timelapse etc are not copied to the html folders. The live view is also not updated and I'm scratching my head here and the scripts associated with this function seem to be working fine.
Has this issue been seen before and resolved - I couldn't see anything on the closed issues.
Many thanks for your help.
Mark