Code Monkey home page Code Monkey logo

sbndaq-minargon's Introduction

Minargon - Detector Monitoring for SBN
============================================

Minargon is a website used for online monitoring in the SBN
collaboration (in the SBND and ICARUS detectors)

Quickstart
----------


To run a local copy of minargon, first create a virtual environment and activate
it.

    $ python3 -m venv env
    $ . env/bin/activate

Make sure you have a recent version of pip:

    $ pip install --upgrade pip

Note: to install minargon, you need recent versions of pip, virtualenv,
and python. Some FNAL servers don't have all these working. If you
could not follow the preceeding step, instead try the following:

On the fermilab gpvm servers, setup python v2_7_14 through
ups. Then, run the `virtualenv` commands below with `python
~gputnam/virtualenv-15.1.0/virtualenv.py` (this is an instance of
virtualenv that I have setup myself for use).

Now, clone the minargon repository, and install the prerequisites:

    $ git clone https://github.com/SBNSoftware/sbndaq-minargon.git
    $ cd sbndaq-minargon
    $ pip install -r requirements.txt

Minargon needs a configuration file to run with the settings of where
the Redis Database is located. An example settings file is given in
`example_settigns.conf`. Either use those settings, or make a new
settings file (if your database in a different location). Then set:

    $ export MINARGON_SETTINGS=`pwd`/your_settings_file.conf

Note on the different example settings files:
	-`example_settings.conf` sets up a website instance with no database connections
	-`example_settings_with_local_redis.conf` sets up a website instance with a 
		database connection to an (already running) instance of redis
	-`example_settings_icarus_gateway.conf` sets up a website instance with the 
		proper database connections as running on the icarus-gateway machine

Now, you can start up the webserver:

    $ ./runserver.py

And you should be able to open your web browser to localhost:5000 and see it.

Note that if you are running on a remote server, you will have to
forward port 5000 back to your laptop in order to view the website. To
do this, when ssh-ing into the remote server, add in the parameter: `-L
5000:localhost:5000`.

Authors
-------
Minard was originally written for the SNO+ experiment.

Minargon is a website inspired from Minard and using some of the same
technologies. 

sbndaq-minargon's People

Contributors

gputnam avatar kvjmistry avatar giosal avatar antoniogioiosa avatar wjdanswjddl avatar mvicenzi avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar  avatar Wesley Ketchum avatar Andrzej Szelc avatar Sungbin Oh avatar Yun-Tse Tsai avatar  avatar Steven Gardiner avatar  avatar Jaesung Kim avatar Iker de Icaza avatar Jon avatar Tracy Usher avatar  avatar Thomas avatar José I. Crespo-Anadón avatar Bruce Howard avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.