====== This page has been deprecated and is no longer accurate ====== ====== VATT Logging ====== Important engineering data is now logged at VATT into a sqlite database. This is done using sqlaclchemy and several python modules to retrieve data from the relevant systems. That [[https://gitlab.com/srswinde/vatt-logging| source code]] can be found on gitlab. There is also a [[http://vatt.as.arizona.edu:42180/|web page]] that will display simple plots or tables of logged data. ==== Web API for advanced plotting ==== Through the previously mentioned web app there is a url API of sorts that can be used to access data programmatically. The program below will retrieve data from each currently available table for the last 1200 minutes. #!/usr/bin/python import pandas as pd minsago = 1200 datafames = dict() for table in ['temps', 'telem', 'ngtelem', 'ivps' ]: url = "http://vatt.as.arizona.edu:42180/recent/data/{}.csv?minsago={}".format( table, minsago ) print("retreiving data from: \n\t\t{}".format(url)) dataframe[table].plot(subplots=True) try: dataframe[table]=pd.read_csv(url) print(dataframe[table]) #uncomment the below line if you have matplotlib or pylab. #dataframe[table].plot(subplots=True) except Exception as err: print err print() print()