Skip to content

simonsobs/ucscradiometer-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Flask API for UCSC Radiometer

A small Flask app for serving the latest PWV values from text file.

This app is built to server the files from the UCSC server, and relies on the current output format and naming conventions in place. If those get change this will need updating.

Dependencies

There are a couple of python modules we need:

  • flask
  • gunicorn

Running the App

The app needs to know where to get the data. You can config this by setting the PWV_DATA_DIR environment variable. We then run the app with gunicorn.

This gunicorn configuration file and pwv_web python script is provided in the api directory in this repo.

$ export PWV_DATA_DIR=/path/to/data/
$ gunicorn -c gunicorn.conf.py pwv_web:app

You can then navigate to http://127.0.0.1:5000 to view the latest PWV value and timestamp.

Releases

No releases published

Packages

No packages published

Languages