Bi-monthly release with minor bug fixes and improvements
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
indiserver -p 7626 -v indi_dsi_ccd &>/home/pi/dsiindi.log &
(while true; do /home/pi/captureDSI2.sh >>/home/pi/DSI.log 2>&1; sleep 2s; done) &
#!/bin/bash
cd /home/pi/DSI
date
port=7626
DefaultExp=1
Exp=${1:-$DefaultExp}
echo $Exp
rm DSI_IMAGE_*.fits
indi_setprop -p $port "DSI.CONNECTION.CONNECT=On"
indi_setprop -p $port "DSI.GAIN.GAIN=10"
indi_setprop -p $port "DSI.OFFSET.OFFSET=0"
indi_setprop -p $port "DSI.UPLOAD_SETTINGS.UPLOAD_DIR=/home/pi/DSI"
indi_setprop -p $port "DSI.UPLOAD_SETTINGS.UPLOAD_PREFIX=DSI_IMAGE_XXX"
indi_setprop -p $port "DSI.UPLOAD_MODE.UPLOAD_LOCAL=On"
indi_setprop -p $port "DSI.UPLOAD_MODE.UPLOAD_CLIENT=Off"
indi_setprop -p $port "DSI.CCD_COMPRESSION.CCD_COMPRESS=Off"
indi_setprop -p $port "DSI.CCD_COMPRESSION.CCD_RAW=On"
indi_setprop -p $port "DSI.CCD_EXPOSURE.CCD_EXPOSURE_VALUE=$Exp"
for i in $(seq 1 1000); do
if [ "$(indi_getprop -p $port DSI.CCD_EXPOSURE.CCD_EXPOSURE_VALUE 2>/dev/null | cut -d '=' -f 2)" == "0" ]; then
break
fi
sleep 0.25s
done
sleep 0.5s
if ! [ -f DSI_IMAGE_001.fits ]; then
echo Nothing captured...
exit
fi
title=""
subtitle=$(date)
convert -font /usr/share/fonts/truetype/freefont/FreeMono.ttf -background '#0008' -fill white -gravity center -pointsi\
ze 16 -size 640x22 caption:"$title $subtitle" -gravity south DSI_IMAGE_001.fits -normalize -gamma 2 +swap -composite \
-resize 640x480! obsimage.jpg
mv obsimage.jpg ObsImage.jpg
2017-03-13T05:47:37: startup: indiserver -p 7626 -v indi_dsi_ccd
2017-03-13T05:47:37: Driver indi_dsi_ccd: pid=25375 rfd=3 wfd=6 efd=7
2017-03-13T05:47:37: listening to port 7626 on fd 4
2017-03-13T05:47:37: Driver indi_dsi_ccd: snooping on Telescope Simulator.EQUATORIAL_EOD_COORD
2017-03-13T05:47:37: Driver indi_dsi_ccd: snooping on Telescope Simulator.TELESCOPE_INFO
2017-03-13T05:47:37: Driver indi_dsi_ccd: snooping on CCD Simulator.FILTER_SLOT
2017-03-13T05:47:37: Driver indi_dsi_ccd: snooping on CCD Simulator.FILTER_NAME
2017-03-13T05:47:37: Driver indi_dsi_ccd: snooping on SQM.SKY_QUALITY
2017-03-13T05:53:57: Client 0: new arrival from 127.0.0.1:58288 - welcome!
2017-03-13T05:53:57: Client 0: read EOF
2017-03-13T05:53:57: Client 0: shut down complete - bye!
2017-03-13T05:53:57: Client 0: new arrival from 127.0.0.1:58290 - welcome!
2017-03-13T05:53:57: Driver indi_dsi_ccd: w 1 3 [dt=0]
2017-03-13T05:53:57: Driver indi_dsi_ccd: 00000000: 03 01 00 PING
2017-03-13T05:53:57: Driver indi_dsi_ccd: r 81 40 [dt=1]
2017-03-13T05:53:57: Driver indi_dsi_ccd: 00000000: 03 01 06 ACK
2017-03-13T05:53:57: Driver indi_dsi_ccd: w 1 3 [dt=1]
2017-03-13T05:53:57: Driver indi_dsi_ccd: 00000000: 03 02 01 RESET
2017-03-13T05:53:57: Driver indi_dsi_ccd: r 81 40 [dt=0]
2017-03-13T05:53:57: Driver indi_dsi_ccd: 00000000: 03 02 06 ACK
2017-03-13T05:53:57: Driver indi_dsi_ccd: w 1 3 [dt=1]
.... A lot of lines....
2017-03-13T08:29:37: Driver indi_dsi_ccd: starting image row 483, write_ptr=490728, line_start=190464, is_odd=0, read_ptr=380974
2017-03-13T08:29:37: Driver indi_dsi_ccd: starting image row 484, write_ptr=491744, line_start=190464, is_odd=1, read_ptr=380974
2017-03-13T08:29:37: Driver indi_dsi_ccd: starting image row 485, write_ptr=492760, line_start=191232, is_odd=0, read_ptr=382510
2017-03-13T08:29:37: Driver indi_dsi_ccd: starting image row 486, write_ptr=493776, line_start=191232, is_odd=1, read_ptr=382510
2017-03-13T08:29:37: Driver indi_dsi_ccd: starting image row 487, write_ptr=494792, line_start=192000, is_odd=0, read_ptr=384046
2017-03-13T08:29:37: Driver indi_dsi_ccd: write_ptr=495808
2017-03-13T08:29:37: Client 0: new arrival from 127.0.0.1:40662 - welcome!
2017-03-13T08:29:37: Client 0: read: Connection reset by peer
2017-03-13T08:29:37: Client 0: shut down complete - bye!
2017-03-13T08:29:40: Client 0: new arrival from 127.0.0.1:40664 - welcome!
pi@Observatory:~$ ps xavf | grep dsi
22148 pts/4 S+ 0:00 0 128 4115 592 0.0 \_ grep --color=auto dsi
25374 ? S 5:36 0 28 1647 1368 0.1 indiserver -p 7626 -v indi_dsi_ccd
25375 ? Rl 3:14 0 99 55120 40196 4.2 \_ indi_dsi_ccd
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.