Skip to content
Snippets Groups Projects

AOSS Cameras

Bash and Python scripts to handle ingesting and processing the AOSS rooftop cameras.

This code is a quick attempt at converting old code from subversion to a python 3 compatible git repository. This code is bad and I feel bad.

This repository is filled with semi-failed attempts at applying very complicated "framework" patterns to moving around camera images. Some of the complexity was to cache and serve the images from a web application. This entire repository is overly complex for what its main and original purpose was which is to take newly uploaded rooftop camera images and put them in a destination directory (with some additional scaled versions).

If time is ever available, most of these scripts could probably be turned into a couple lines of bash. Until then, we'll make this work as best we can.

Operation Installation

These instructions assume the operation "standard practice" that is current at the time of writing. This practice is to create a conda environment using the "root" user under /opt/metobs/aoss-cameras.

  1. Get and install the conda environment:

    cd /tmp
    curl -O "https://gitlab.ssec.wisc.edu/metobs/AossCameras/-/raw/master/environment.yaml"
    sudo /opt/miniconda3/condabin/conda env create --file environment.yaml --prefix /opt/metobs/aoss-cameras
  2. Clone the git repository into the environment and other setup:

    cd /opt/metobs/aoss-cameras
    sudo mkdir -p repos/git logs locks
    sudo chown metobs:metobsgrp logs locks
    sudo git clone "https://gitlab.ssec.wisc.edu/metobs/AossCameras.git" repos/git/AossCameras
    sudo ln -s repos/git/AossCameras/scripts .
    sudo git clone "https://gitlab.ssec.wisc.edu/metobs/MetObsCommon.git" repos/git/MetObsCommon
  3. Install the aosscameras python package:

    sudo /opt/metobs/aoss-cameras/bin/pip install -e repos/git/MetObsCommon/
    sudo /opt/metobs/aoss-cameras/bin/pip install -e repos/git/AossCameras/