This shows you the differences between two versions of the page.
Next revision | Previous revision Next revision Both sides next revision | ||
vatt:logging [2018/03/26 15:46] scott created |
vatt:logging [2018/03/27 13:21] scott [Web API for advanced plotting] |
||
---|---|---|---|
Line 9: | Line 9: | ||
Through the previously mentioned web app there is a url API of sorts that can be used to access data programmatically. | 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. | ||
+ | <code python> | ||
+ | # | ||
+ | |||
+ | import pandas as pd | ||
+ | |||
+ | minsago = 1200 | ||
+ | |||
+ | datafames = dict() | ||
+ | |||
+ | for table in [' | ||
+ | url = " | ||
+ | print(" | ||
+ | dataframe[table].plot(subplots=True) | ||
+ | try: | ||
+ | dataframe[table]=pd.read_csv(url) | ||
+ | print(dataframe[table]) | ||
+ | except Exception as err: | ||
+ | print err | ||
+ | |||
+ | print() | ||
+ | print() | ||
+ | |||
+ | </ |