Basic
operations
1.
Manipulating with dome status at LCO
In case asas dome server is not available from pi computers , in order
to change dome status manualy to closed after checking satelite
image or
clouds
prediction type :
echo "closed" > /opt/pi/dev/pisys/daq/config/custom/dome.txt
in order to restore dome mode to opened type :
echo "opened" > /opt/pi/dev/pisys/daq/config/custom/dome.txt
In case asas system is working dome status is automaticaly retrived
from asas server with command :
dbget dome_status -dbserver asas3v.lco.cl
Currently it gives result :
asas3v.lco.cl: RPC: Remote system error - Connection refused
2. Setting up
DAQ to use single camera in LCO
In order to simply change system mode in LCO to single camera mode ( or
back to ccddouble mode ) type :
echo "ccdsingle" >
/opt/pi/dev/pisys/daq/config/custom/mode.txt
in order to restore normal double camera mode remove this file :
rm -f
/opt/pi/dev/pisys/daq/config/custom/mode.txt
or type :
echo "ccddouble" >
/opt/pi/dev/pisys/daq/config/custom/mode.txt
No changes on www server are nessesary, system mode is automaticaly
detected from daq.status
file
3. Setting up
DAQ to use single camera in LCO - OLD
VERSION
This is more complicated and requires changes in crontab.
In case one of cameras is not working it maybe nessesary to use only
one camera to collect any data.
In order to do so two changes in crontab must be done , using crontab
is pretty simple , in order to list crontab entries run command :
crontab -l
In order to edit crontab ( be sure I are able to do this ) do :
export EDITOR=joe
crontab -e
of course different editor then joe maybe used also. The
following modifications in crontab must be done to run system with
single camera :
- preparation of cfg files for single camera algorithm ( with
confirmation on next frames ). Replace the exisitng line in crontab
which is
the following for 2 cameras :
20 17 * * * /opt/pi/dev/pisys/daq/ndir/bin/prepdaq.sh >>
/opt/pi/dev/pisys/log/prepdaq.log 2>&1
with the following line :
20 17 * * * /opt/pi/dev/pisys/daq/ndir/bin/prepdaq.sh - - ccdsingle
>> /opt/pi/dev/pisys/log/prepdaq.log 2>&1
- start system with option for single camera - so that program
ccdsingle is stared instead of ccddouble , to do so replace line :
0 18 * * * /opt/pi/dev/pisys/run_pisys! check_dome 36000 >>
/opt/pi/dev/pisys/log/pisys_start.log 2>&1
with line :
0 18 * * * /opt/pi/dev/pisys/run_pisys! check_dome 36000 -
ccdsingle >> /opt/pi/dev/pisys/log/pisys_start.log 2>&1
- start monitor ( fits->jpg, events->jpg convertion ) with
parameter ccdsingle , replace line :
40 17 * * * /opt/pi/dev/pisys/daq/ndir/bin/start_monitor.sh >>
/opt/pi/dev/pisys/log/crontab.trace 2>&1
to :
40 17 * * * /opt/pi/dev/pisys/daq/ndir/bin/start_monitor.sh - ccdsingle
>> /opt/pi/dev/pisys/log/crontab.trace 2>&1
- change on heplx40 is required also , change line :
*/11 * * * *
/opt/pi/dev/pisys/daq/ndir/bin/get_alerts_html! >>
/opt/pi/dev/pisys/log/html_update.log 2>&1
to :
*/11 * * * *
/opt/pi/dev/pisys/daq/ndir/bin/get_alerts_html! - - no_singles >>
/opt/pi/dev/pisys/log/html_update.log 2>&1
In order to restore running of system in double camera mode , restore
values without option ccdsingle.
NOTE : I plan
soon to modify changing to single camera mode , by modification of one
single configuration file on pi2 ( collecting machine )