allskyteam / allsky Goto Github PK
View Code? Open in Web Editor NEWA Raspberry Pi operated Wireless Allsky Camera
License: MIT License
A Raspberry Pi operated Wireless Allsky Camera
License: MIT License
Hello,
I use an ASI120MC-S (USB 3.0) In RGB24 mode works well, also RAW8 image mode, but If I choose RAW16, changing the extension to .png and quality to 9, I don't see nothing, (I suppose that ASI120 isn't available to work in that resolution) so when I reset settings to default values with RGB24 image type, now the color of image was inverted (in RBG24 https://www.dropbox.com/s/ijciuupro1uf77s/1.jpg?dl=0) and (in RGB24 after try RAW16 https://www.dropbox.com/s/uofanygpqa3y1cc/2.jpg?dl=0)I could reinstall all, but I will lose the configuration, I've tried to restart allsky service, reboot raspberry but nothing, if there is any fastest solution.
How could i fix it?
Thank you,
Marc
Hello,
I've build that fantastic project and it is running really good. But I have one issue, and old picture that I have taken for a test inside in my office is always visible as ghostimage overplayed to the new ones. I have already deleted all old files and rebooted several times. Also turned the power off.
Any suggestions to solve that problem?
Kind regards Stefan
Hello Thomas. Thanks for this great project.
I 'm experiencing a little pb with GUI interface.
I've got no "Live view working" but a black image flickering sometimes and no image stored. No changes if I set different camera settings. I'm using an ASI 120MM with flashed firmware +RPI3
Checking for ACL in all directories but everything seems to be fine.
Regards
Raph
I've recently upgraded to a new RPI 3 b+ and have it up and running for the most part, but I can't get the images to upload to my website. I know the username and password are correct, I can connect through FileZilla on my desktop. But when I manually try to connect through the RPI terminal window, I get an error: (i've redacted user & host info)
pi@allsky:~ $ lftp ftp.myhost.com
lftp ftp.jimcauthen.com:~> user [email protected]
Password:
lftp [email protected]@ftp.myhost.com:~> ls
ls: Fatal error: Certificate verification: certificate common name doesn't match requested host name ‘ftp.myhost.com’ (9D:31:D7:C1:F4:D1:3D:71:77:B6:EE:45:18:5E:1B:71:33:40:6F:97)
lftp [email protected]@ftp.myhost.com:~>
the "log.txt" file shows the attempt of uploading, but no success/fail message.
20000000
Saving image-20180919233720.jpg
Resizing image.jpg
Uploading image-resize.jpg
I've verified the file on the host, and it's an old file from my previous AllSky.
Any suggestions/troubleshooting steps would be greatly appreciated.
And as before, Thank You for this awesome project!
Hi Thomas,
I have noticed something weird while looking in the images saved during each night - it looks like my pi is not saving all the images - sometimes it's skipping a few minutes, other times hours. The odd thing is that the image-resize upload works fine (I looked in the log).
I take 15s images, at binning 2 and 100ms delay. What do you think? Should I increase the delay, or might it be a hardware issue (sd card?)
Here's a log extract:
`Saving image-20180808235446.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Saving image-20180809000006.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Saving image-20180809000542.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Saving image-20180809000658.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Saving image-20180809000729.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Saving image-20180809000931.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Saving image-20180809003411.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Resizing image.jpg
Uploading image-resize.jpg
Saving image-20180809003543.jpg`
And the saved images:
Saving image-20180808235446.jpg Saving image-20180809000006.jpg Saving image-20180809000542.jpg Saving image-20180809000658.jpg Saving image-20180809000729.jpg Saving image-20180809000931.jpg Saving image-20180809003411.jpg Saving image-20180809003543.jpg
Many thanks,
Alex
I have my image-resize uploading to my directory but for some reason at the end of the night the mp4 and the startrails and keogram all upload to that same directory.
how would the pathing look for it to go to those directories. I obviously have enabled the uploads since they are all going to my site but they are not making it to the directories they need to be in.. I have to manually ftp and move them each day.
Hello,
I am playing with asi174 camera and rpi 3B+, and I tested the system last night, it was moon but I put 10 seconds of exp, and gain to 280, gama 50-70, brightnes 70-90, but I have very dark images, I have a fujinon lens, and when I make time lapses with windows I see crealy milky...but here is to dark... I see that in confing missing contrast option ?
Here is a link what I can see on windows with original software with thase lenses cca 10 sec exp.
https://www.youtube.com/watch?v=1OTL5P_Q5tM
And here is a image from last night with 13 sec
What I do wrong ?
Thank You
Aleksandar
Are there any updates to the recommended cameras (new/better cameras) vs what is in the readme?
An ASI camera from ZWO. Tested cameras include ASI120MC*, ASI120MM*, ASI120MC-S, ASI120MM-S, ASI224MC, ASI178MC, ASI185MC, ASI290MC, ASI1600MC
Hello.
I seem to have intermittent issues with the GUI live view showing black images. I have had it working perfectly with the text at the top corner as expected with an image from the camera. Then I often get the instance whereby I only get black images displayed with no text overlay, so I know that it is not just a too short of an exposure at night. I have tried:
restart rasp pi
restart gui page
restart the all sky manually using terminal
checked the status of the all sky cam using terminal
restart the internet just in case
to double check on this I go to the raspberry pi and check preview of which I see that it is capturing an image as the preview shows me an image from the camera.
Attached screenshot of settings from GUI
Also included a screen shot of the live view screen
Hey man, love the new features.
I installed the GUI option. Everything seems to be working, but the camera won't actually change exposure settings.
No matter what settings I choose, the gain is always 0 and the exposure is always .064ms.
Any ideas on this?
RP3 with ASI120MM
Thanks!
The web-app doesn't appear to take any images. I've changed lat/lon and the timezone to be in a simulated night environment, and there isn't any update to the live view page. I can run the allsky.sh script just fine, and it updates the live view page.
Hi Thomas.
How do I change the color of day / time from blue to orange (RGB 251 118 0)?
How do I get the text as well? settings.json in the text will read "Mixerboy24Tech Allsky" but it will not read in the picture. I'm sorry for my bad english :(
Atte / Mixer
My system doesn't record any images when it isn't connected to a network. Is this a design feature? If so, is there a way that this behaviour can be altered as I would like to be able to take the allsky camera to a dark sky site where there is no network connectivity. I'm using the allsky setup with the portal.
Hi All
I am sending the images to my ftp server from a pi zero W (works well) !
However I am finding the images are sent through as the same image (image resize.jpg) filename..
I want all my images sent through (full size) with date and time in filename to my ftp server
How should I modify the Saving.sh file to do this?
Joe
Is there a reason why the time lapse isn't being generated? The clip graphic shows up when choose time lapse and all the images have been saved but the time lapse won't play back. Do I need to have Save daytime images set to "0" fpr this to work? The first night I used this the time lapse was generated but not the second time I used this. The camera is a ZWO ASI178 monochrome. Is there a way to force it to generate a timelapse?
Edit: I seen the quality was set to 95, I am saving as png so I reduced the quality to 3. I also increased the bandwidth to 100
Thanks,
I couldn't understand why I couldn't generate a dark.png as per the instructions. Until I realised that the dark frame code is only in saveImageNight.sh and I was setting up in the day!
ZWO's "Mini" series of guidecams, the ASI290MM and 174 version, would seem to make ideal candidates for AllSky. They are USB 2.0 though, if that is a blocking issue? I do note there doesn't seem to be an entry for them in the current asi.rules, so I'm not expecting current compatibility, but it would be nice to see it added if possible. Perhaps this is a question for ZWO?
Just FYI I can get AllSky 0.5 to work with regular 290 and 224 USB 3.0 cams, but for my ASI290MM Mini, while the camera is recognized, I see the following.
...
Listing Attached Cameras:
- 0 ZWO ASI290MM Mini
Open Camera ERROR, Check that you have root permissions!
ZWO ASI290MM Mini Information:
- Resolution:1936x1096
- Mono camera
- Initialise Camera ERROR
- Sensor temperature:0.000000
Capture Settings:
Image Type: ASI_IMG_RGB24
Resolution: 1936x1096
...
In addition to that, rather than hit the message that it's not capturing since it's daylight, it goes straight into attempting to upload by FTP.
OpenCV Error: Incorrect size of input array (Non-positive cols or rows) in cvInitMatHeader, file /build/opencv-U1UwfN/opencv-2.4.9.1+dfsg1/modules/core/src/array.cpp, line 146
terminate called after throwing an instance of 'cv::Exception'
what(): /build/opencv-U1UwfN/opencv-2.4.9.1+dfsg1/modules/core/src/array.cpp:146: error: (-201) Non-positive cols or rows in function cvInitMatHeader
/home/pi/allsky/allsky.sh: line 22: 956 Aborted ./capture $ARGUMENTS
cd `ftp://[email protected]:/allsky/' [Delaying before reconnect: 121]
Hi Thomas,
First of all, big thanks for this software ! Very usefull for my needs, thanks again.
The Live view refresh rate use the exposure time to refresh itself, I think it would be better to use the delay between images to refresh the live view (half of the time would be better actually).
In index.php :
setInterval(function(){ getImage(); }, <?php echo $camera_settings_array["exposure"] ?>);
changed to :
setInterval(function(){ getImage(); }, <?php echo $camera_settings_array["delay"]/2 ?>);
Cheers, 👍
Matt
Hi, everyone. I have a problem when I run AllSky in RPi zero W. It doesn't work. I sure that the OTG cable is fine (keyborad and mouse OK) and ASI120 is power on. But it doesn't take any image. Does anyone know how to make it working? Help me, please. Thanks!
I like to have my files transferred to Dropbox rather than to an FTP server. I have therefore used the github project by andreafabrizi called DropBox-Uploader to enhance AllSky Camera. I have subsequently replaced all the LFTP commands in the "Endofnight.sh", "SaveImage.sh" and "Timelapse.sh" files with an easy:
"/home/pi/Dropbox-Uploader/dropbox_uploader.sh upload ./allsky/images/$1/allsky-$1.mp4 /"
Works as a breeze.
Thomas,
The following MP4 is pretty representative of most of clear sky images. https://1drv.ms/v/s!Aqml0ppAJEnxl81lEdhvhoLAQIm_dQ
I feel like there are some settings that could improve my overall quality, but not sure if it's obvious to you what my best changes would be.
Here's my settings.json text:
{"width":"0","height":"0","exposure":"20000","maxexposure":"20000","autoexposure":"0","gain":"70","maxgain":"200","autogain":"1","gamma":"70","brightness":"50","wbr":"53","wbb":"90","bin":"1","delay":"10","daytimeDelay":"5000","type":"1","quality":"95","usb":"40","filename":"tcosky.jpg","flip":"0","text":"text","textx":"15","texty":"30","fontname":"0","fontcolor":"255 255 255","fonttype":"0","fontsize":"0.7","fontline":"1","latitude":"47.1N","longitude":"120.77W","angle":"-6","time":"1","darkframe":"0","showDetails":"1"}
Dear Thomas,
I have been experiencing this issue across different raspbian releases and allsky updates: when trying to delete a directory from the web GUI, I get the notice "Deleted directory [date]" but the directory is not deleted. By inspecting the directories after the tentative deletion, I can see files belong to user "pi" and group "www-data" but they appear with permissions "-rw-r--r--", so the web server is unable to delete them. I am not sure how to troubleshoot this further.
After the time-lapse builds this is the error I'm seeing. The file is created, but won't play.
This is a fresh install on a Pi3.
./timelapse.sh: line 22: 18769 Segmentation fault avconv -y -f image2 -r 25 -i images/$1/%04d.$EXTENSION -vcodec libx264 -b:v 2000k -pix_fmt yuv420p images/$1/allsky-$1.mp4
cd: Fatal error: Host key verification failed.
put: images/20180308/allsky-20180308.mp4: Fatal error: Host key verification failed.
Hello, I´m very new to this project and linux. The only project I did was my repetierserver for a 3D printer.
I installed raspbian stretch on my Raspi Pi 3b+ and sets the wifi network and language.
Then I does all updates to raspbian and the I installed git and allsky.
ok and now my problem. I want the graphical user interface but I can´t connect. My browsers shows me a 404 failure.
I think, I don´t understand this:
"If you don't want to configure the camera using the terminal, you can install the web based graphical interface. Please note that this will change your hostname to allsky, install lighttpd and replace your /var/www/html directory. It will also move settings.json to /var/www/html."
Lighttpd is allready installed with my raspbian stretch but there is no /var/www/HTML directory.
I don´t know, what should I "replace" there? And who will move the settings.json to var/www/html ?
Please can you explain me this?
EDIT: Ok, now after the 3rd installation I can connect to http://allsky.local at my raspberry, but I don´t know the user/password?!? The user and pw I set at the beginning at raspbian will not work hmmmm....
EDIT 2: Ok... found it with Google sorry :)
Now I have to check why I can´t get a Livepreview with my ASI 120MC :)
Greetings Vigo :)
Hello,
I am having issues with FTP'ing the images to my website. It keeps giving me an error message indicating that there is a mismatch in the SSL certificate name. Anyone know how to suppress checking the SSL certificate name? I believe that is an OS level setting and not necessarily allsky setting?
Thanks,
Dhaval
Hi Thomas,
Great project. I am trying it with my ASI120MC-S on a Pi3. Installation went perfect.
However, when I run "./allsky.sh" I get this:
Starting allsky camera...
/home/pi/allsky/allsky.sh: line 22: 684 Illegal instruction ./capture $ARGUMENTS
I decided to start from scratch and re-installed a new Raspbain and go through installation again. The same. I decided to try on another RPi 3, that I had never used, and again I got exactly the same issue.Any ideas?
The only changes I have made are:
In settings.json I have set "width" to "1280", "height" to "960", "latitude" to "50.0N", "longitude" to "5.31W"
In config.sh I have set all uploading to false.
It creates a .jpg as soon as it is run, but then just hangs. Log file shows one saved image for each run, but no more. The image is black, but I can see a warm pixel, so it is obviously using the camera.
I would greatly appreciate any thoughts, as I feel I must have done something wrong, but can't work out what.
Kind regards,
Fred
[email protected]
Hello, I have a zwo174 and I just installing this on RPI 3B+, I have one question... can You make a rtsp live stream from the camera, I would like to stream a live video to second rpi and with the second pi do meteor detection, I need 25 fps ....
Thank You
Aleksandar
I've a recurring segmentation fault. It happens nightly but at different times:
● allsky.service - All Sky Camera
Loaded: loaded (/lib/systemd/system/allsky.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2018-09-24 06:24:27 BST; 2h 45min ago
Process: 833 ExecStart=/home/pi/allsky/allsky.sh (code=exited, status=139)
Main PID: 833 (code=exited, status=139)
Sep 23 15:17:10 allsky systemd[1]: Started All Sky Camera.
Sep 24 06:24:27 allsky allsky.sh[833]: /home/pi/allsky/allsky.sh: line 25: 932 Segmentation fault ./capture $ARGUMENTS
Sep 24 06:24:27 allsky systemd[1]: allsky.service: Main process exited, code=exited, status=139/n/a
Sep 24 06:24:27 allsky systemd[1]: allsky.service: Unit entered failed state.
Sep 24 06:24:27 allsky systemd[1]: allsky.service: Failed with result 'exit-code'.
settings.json:
{"width":"0","height":"0","exposure":"10000","maxexposure":"20000","autoexposure":"1","gain":"50","maxgain":"200","autogain":"0","gamma":"50","brightness":"50","wbr":"53","wbb":"90","bin":"1","delay":"10","daytimeDelay":"5000","type":"1","quality":"95","usb":"40","filename":"image.jpg","flip":"0","text":"text","textx":"15","texty":"30","fontname":"0","fontcolor":"255 255 255","fonttype":"0","fontsize":"0.7","fontline":"1","latitude":"51N","longitude":"2W","angle":"-6","time":"1","darkframe":"0","showDetails":"1"}
config.sh:
#!/bin/bash
source /home/pi/allsky/scripts/ftp-settings.sh
# Set to true to upload current image to your website
UPLOAD_IMG=true
# Set to true to upload timelapse video to your website at the end of each night
UPLOAD_VIDEO=true
# Set to true to send data to your server at the end of each night
POST_END_OF_NIGHT_DATA=false
# Set to true to generate a timelapse at the end of the night
TIMELAPSE=true
# Set to true to generate a keogram at the end of the night (image summary of the night)
KEOGRAM=true
# Set to true to upload the keogram after it has been generated
UPLOAD_KEOGRAM=true
# Set to true to generate a startrails image of the night. Will skip brighter images to avoid over-exposure
STARTRAILS=true
# Images with a brightness higher than the threshold will be skipped for startrails image generation
BRIGHTNESS_THRESHOLD=0.1
# Set to true to upload the startrails after it has been generated
UPLOAD_STARTRAILS=true
# Set to true to enable automatic deletion of archived data (images + videos)
AUTO_DELETE=true
# Set this value to the number of archived nights you want to keep. Needs AUTO_DELETE=true to work
NIGHTS_TO_KEEP=14
# Path to the dark frame for hot pixels subtraction. Can be jpg or png.
DARK_FRAME="dark.png"
# Set to 0 to disable Daytime Capture
DAYTIME="1"
# Path to the camera settings (exposure, gain, delay, overlay, etc)
CAMERA_SETTINGS="/var/www/html/settings.json"
Night 1 log file (Crashed early on in the night):
Saving image-20180922220443.jpg
Resizing image.jpg
Uploading image-resize.jpg
13828109
Saving image-20180922220454.jpg
Resizing image.jpg
Uploading image-resize.jpg
20000000
Night 2 log file (Appears to crash on transition from night to day. However, no end of night data generated):
Saving image-20180924062407.jpg
Resizing image.jpg
Uploading image-resize.jpg
20000000
Resizing image.jpg
Uploading image-resize.jpg
Using an ASI224MC on a Pi 3 B+. Could it be an unexpected exit from the ftp server causing some issue?
Andy
Love the project, 100% fits the bill for what I'm trying to accomplish. Only challenge is that I'm getting pure black images.
Log.txt is showing:
-bin 1 -brightness 50 -darkframe 0 - delay 20000 -exposure 5000000 -filename image.jpg -flip 0 -fontcolor 255 0 0-fontline 1 -fontname 0 -fontsize 0.7 -fonttype 0 -gain 50 - gamma 50 -height 960 -latitude 47.66N -longitude -122.12W -nodisplay 1 -quality 95 -text ThunderCreek -textx 15 -texty 35 -time 1 -type 1 -usb 80 -wbb 90 -wbr 53 -width 1280
Thoughts on what I might need to change to get it properly imaging? It's a ZWO120MC on a RPI 3 with the "compatible" firmware upgrade done on the camera.
MP4 files are being produced at the end of the night, but the files won't play on any device. Omxplayer just gives the "have a nice day" message. Running timelapse.sh manually, I see the following type of failure during the avconv, and a presumably partial MP4 is created. Thoughts?
./scripts/timelapse.sh: line 29: 6502 Segmentation fault avconv -y -f image2 -r 25 -i images/$1/%04d.$EXTENSION -vcodec libx264 -b:v 2000k -pix_fmt yuv420p images/$1/allsky-$1.mp4
Last few lines of the console output:
...
`mv: 'images/20180805/1965.jpg' and 'images/20180805/1965.jpg' are the same file
'images/20180805/startrails.jpg' -> 'images/20180805/1966.jpg'
ffmpeg version 3.2.10-1deb9u1+rpt1 Copyright (c) 2000-2018 the FFmpeg developersdeb9u1+rpt1' --toolchain=hardened --libdir=/usr/lib/arm-linux-gnueabihf --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx-rpi --enable-mmal --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
built with gcc 6.3.0 (Raspbian 6.3.0-18+rpi1) 20170516
configuration: --prefix=/usr --extra-version='1
libavutil 55. 34.101 / 55. 34.101
libavcodec 57. 64.101 / 57. 64.101
libavformat 57. 56.101 / 57. 56.101
libavdevice 57. 1.100 / 57. 1.100
libavfilter 6. 65.100 / 6. 65.100
libavresample 3. 1. 0 / 3. 1. 0
libswscale 4. 2.100 / 4. 2.100
libswresample 2. 3.100 / 2. 3.100
libpostproc 54. 1.100 / 54. 1.100
Input #0, image2, from 'images/20180805/%04d.jpg':
Duration: 00:01:18.64, start: 0.000000, bitrate: N/A
Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 1936x1096 [SAR 1:1 DAR 242:137], 25 fps, 25 tbr, 25 tbn, 25 tbc
[swscaler @ 0xeabe80] deprecated pixel format used, make sure you did set range correctly
[libx264 @ 0xea1a10] using SAR=1/1
[libx264 @ 0xea1a10] using cpu capabilities: ARMv6 NEON
[libx264 @ 0xea1a10] profile High, level 4.2
[libx264 @ 0xea1a10] 264 - core 148 r2748 97eaef2 - H.264/MPEG-4 AVC codec - Copyleft 2003-2016 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=2000 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'images/20180805/allsky-20180805.mp4':
Metadata:
encoder : Lavf57.56.101
Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1936x1096 [SAR 1:1 DAR 242:137], q=-1--1, 2000 kb/s, 25 fps, 12800 tbn, 25 tbc
Metadata:
encoder : Lavc57.64.101 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/2000000 buffer size: 0 vbv_delay: -1
Stream mapping:
Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
Press [q] to stop, [?] for help
frame= 53 fps=1.7 q=39.0 size= 169kB time=00:00:00.00 bitrate=17748000.0kbits/s speed=2.5frame= 54 fps=1.7 q=37.0 size= 175kB time=00:00:00.04 bitrate=35821.3kbits/s speed=0.0012frame= 56 fps=1.7 q=45.0 size= 190kB time=00:00:00.12 bitrate=12988.7kbits/s speed=0.0036frame= 58 fps=1.7 q=43.0 size= 205kB time=00:00:00.20 bitrate=8389.6kbits/s speed=0.00592frame= 59 fps=1.7 q=44.0 size= 222kB time=00:00:00.24 bitrate=7573.0kbits/s speed=0.00694frame= 60 fps=1.7 q=43.0 size= 225kB time=00:00:00.28 bitrate=6578.1kbits/s speed=0.00797frame= 62 fps=1.7 q=44.0 size= 229kB time=00:00:00.36 bitrate=5213.6kbits/s speed=0.0101xframe= 64 fps=1.8 q=40.0 size= 233kB time=00:00:00.44 bitrate=4337.4kbits/s speed=0.0122xframe= 66 fps=1.8 q=42.0 size= 238kB time=00:00:00.52 bitrate=3750.1kbits/s speed=0.0142x
./scripts/timelapse.sh: line 29: 6502 Segmentation fault avconv -y -f image2 -r 25 -i images/$1/%04d.$EXTENSION -vcodec libx264 -b:v 2000k -pix_fmt yuv420p images/$1/allsky-$1.mp4
I am trying to get this running on my Raspberry PI 2 board and I am trying to get it connect to my ASI120MC USB 2.0 camera.
However, following the instruction here, capture binary crashed with sigill and I realized that the Makefile is
using -march=armv7 and my board is armv61. Once I removed it and recompiled capture, it started up fine however, the libAsiCamera2.so is probably also compiled with armv7 and is crashing with SIGILL.
Any chance I can get the libASICamera2.so build for armv6? Thanks!
==========
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
[New Thread 0xb01ac200 (LWP 1604)]
*** Allsky Camera Software v0.2 | 2017 ***
Capture images of the sky with a Raspberry Pi and an ASI Camera
Add -h or -help for available options
Author: Thomas Jacquin - [email protected]
Contributors:
-Knut Olav Klo
-Daniel Johnsen
-Yang and Sam from ZWO
-Robert Wagner
Thread 1 "capture" received signal SIGILL, Illegal instruction.
0xb62c73ac in ASIGetNumOfConnectedCameras ()
from /usr/local/lib/libASICamera2.so
(gdb) Quit
I am trying to understand how we can take full advantage of the cameras available bit depth. I am using a ASI178MC which has 14 bit ADC. My morning pics show sharp gradients in the sky. I assume this is because it is only using 8 bits per channel when saved as JPG.
I have not looked into this yet but was wondering how can I test using full 14 bit/channel?
I was also slightly confused by the config settings:
Image format. 0=RAW 8 bits, 1=RGB 24 bits, 2=RAW 16 bits
It looks like the RAW is being described per channel but the RGB for all 3 channels?
Debian stretch has moved to php7.0 and php5 is no longer available, so the GUI install script should be modified.
I checked the previous issue of timelapse not generating and my problem is different. I get this error when i run the script manualy:
avconv: symbol lookup error: /usr/lib/arm-linux-gnueabihf/libflite_cmu_us_awb.so.1: undefined symbol: cmu_us_awb_f0_ah_42_cart
I use a RPI 3b and there are no errors until it use the avconv command.
Hi, I'm trying to make this work on raspberry pi 2B connected by ethernet - no wifi
I have camera asi120mc
System is newly installed (new sd card with Raspbian lite updated )
I can't take any picture despite the fact that system recognize camera :
Listing Attached Cameras:
- 0 ZWO ASI120MC
ZWO ASI120MC Information:
- Resolution:1280x960
- Color Camera: bayer pattern:GR
- Initialise Camera OK
- Sensor temperature:30.500000
capture command always finish with segmentation fault
Hi Thomas,
Thanks a lot for creating this project for all of us!
I have an issue with an ASI178MC, RPI3 and a 2.5A power source - all the images are black. There is no text displayed, just a black image. I have tried swapping the power source (running with an official RPI power source), reinstalling the project, changing USB ports, image size, location, but no matter what I do, all I can see is a black frame.
Here are my settings:
Capture Settings:
Image Type: ASI_IMG_RGB24
Resolution: 3096x2080
Quality: 50
Exposure: 100ms
Max Exposure: 1000ms
Auto Exposure: 0
Gain: 50
Max Gain: 200
Auto Gain: 0
Brightness: 50
Gamma: 50
WB Red: 53
WB Blue: 90
Binning: 1
Delay: 10ms
Daytime Delay: 5000ms
USB Speed: 50
Text Overlay: text
Text Position: 15px left, 35px top
Font Name: 0
Font Color: 255 , 255, 255
Font Line Type: 16
Font Size: 0.7
Font Line: 1
Flip Image: 0
Filename: image.jpg
Latitude: 55.8N
Longitude: 4.2W
Preview: 0
Time: 1
Darkframe: 0
Many thanks,
Alex
Hey Thomas and gang. I've spent my whole weekend getting my all sky set up and have enjoyed the one night so far.
I found this https://github.com/youtube/api-samples/tree/master/python. I was able to get it to upload the video, but you have to specify a name of the file and since the file is based on the date I couldn't figure out a workaround. Also has the ability to add a title, but could be the same name of the file, the date.
This guy also has a similar thing, but it adds the ability to specify what playlist you want to put it into. Still needs to specify a file name though. https://github.com/tokland/youtube-upload
Maybe you guys can look into the ability to upload to YouTube or even vimeo?
Great work so far. Can't wait to get mine dialed in.
Hello Thomas,
I have the new raspberry pi B+ with ASI120MC-S, during the day works well, but in the middle of the night the image it starts to be wrong, during the day and first time of night https://www.dropbox.com/s/9twaqvisdb57vud/0595.jpg?dl=0 and suddenly during the night the image breaks down like this https://www.dropbox.com/s/2n0b6wsmtilnqbh/0835.jpg?dl=0
https://www.marccorretge.com/allsky/videos/allsky-20190127.mp4 this is the timelapse of the last night where you can see how the image suddenly breaks down, repair and breaks down again during the night
Sometimes solves itself, or at the beginning of the day also solves itself.
How can I fix it?
Thanks.
Hi Thomas,
sometime, during day time, the image seems to be scrambled (i.e.: https://www.dropbox.com/s/r5mzjbjqhigx09h/allsky_error.jpg?dl=0). I've enabled auto exposure and the auto gain is disabled. I got an ASI120MC (USB2) and the last git version of the software.
After a few frames the return correct.
Thanks in advance for you attention,
Simone
I noticed when I ran the timelapse.sh the file path seemed to double for the images. Reading on instructables refrus seems to see it too.
Hello, I seem to be getting only a black image when I run the ./allsky.sh preview command. Also is there a way to start the camera with the GUI? What am I doing wrong? Thanks. Using a ZWO ASI178 mono.
What would I need to change to make the allsky program do 24hour captures and then convert them to the movie instead of just night time.
I am having some troubles since installing the gui. I'm quite new to using this (installed a few days ago, then installed gui last night).
If I run "sudo service allsky status" it shows me that the service is running.
If I run "sudo service allsky restart" it says: sudo: unable to resolve host allsky
Separately, I am finding that it is only saving images during night time although the DAYTIME="1" option in config.sh is set. For example the last image recorded was this morning at 04:39 (twilight) after which the mp4 was made, and no image was saved after that until 19:45 tonight at which point the 20181223 folder and first image was created. This has me wondering if it is still reading the same ~/allsky/config.sh file after installing the gui?
Thanks,
Roger.
Hi !
Just did the Project and it´s working fine. Thanks a lot for this!
In connection status I do not see any Parameter in Interface Information and Statistics. Just wlan 0
Is this normal ?
I use the new PI A+, (which is not recognized at system) und did a fresh setup with a PI 3+. Here it´s the same.
Any idear ?
Regards from Germany
Reiner
I think my problems, some of which may be related to using the Jessie-lite image. After installing various missing packages, I got to
pi@astropi:~/allsky $ ./allsky.sh Starting allsky camera ls: cannot access Ortona-full.jpg: No such file or directory entr: No regular files to watch ./capture: error while loading shared libraries: libavcodec.so.53: cannot open shared object file: No such file or directory
libavcodec.so.53 is current as of wheezy (while current raspian is jesse). Will try installing with wheezy. Although maybe a full jessie is correct way to go?
Hello, Since my fat problem the last days I´m ready to taking pictures. I think it´s a silly question, but I don´t found an answere...
Sorry for my bad english... :D
Bye Vigo
Hello,
Thank you all for this awesome software, your time and efforts are much appreciated. This has been my first RPi project and its been fun!
I wanted to change the look and feel of the web portal GUI to something more night friendly. I've dug around a little bit and found a few css and html files to edit, but im sure im missing some. Would you mind telling me where and which files need to be edited to change the look and feel? Or perhaps you already have a darker themed web portal? My HTML and CSS skills are basic, but if i tinker for a while I can usually reverse engineer enough to make something look silly ;)
Thanks again.
Bill
Hi and thanks for an awesome package! I've been running this with an ASI 120MM-S camera for a while and noticed that the time lapse videos crash Premiere Pro when importing. The reason seems to be that I'm using PNG files and they end up as gray scale as I have mono camera, but for some reason avconv creates the video with 4:4:4 subsampling which Premiere doesn't seem to like and is also pointless for mono video anyway. Avprobe output looks like:
Stream #0:0(und): Video: h264 (High 4:4:4 Predictive) (avc1 / 0x31637661), yuvj444p(pc), 1280x960, 2008 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
As most h.264 videos are in 4:2:0 subsampling, I added parameter "-pix_fmt yuv420p" after "-b:v 2000k" to the avconv command line and time lapse videos now load fine to Premiere and the output looks like:
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x960, 2052 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.