move sehistory specific stuff from influx.py to seinflux.py
This commit is contained in:
@@ -2,13 +2,13 @@ import sys
|
||||
from streams import EventStream
|
||||
from nicoscache import NicosStream
|
||||
from secop import ScanStream, ScanReply, send_fake_udp
|
||||
from influx import InfluxDBWrapper
|
||||
from . import SEHistory
|
||||
|
||||
|
||||
def main():
|
||||
# egen = EventStream(ScanReply(), ScanStream(), n=NicosStream('localhost:14002'))
|
||||
egen = EventStream(ScanReply(), ScanStream())
|
||||
db = InfluxDBWrapper('linse-c')
|
||||
db = SEHistory(access='write')
|
||||
db.enable_write_access()
|
||||
|
||||
event_map = {'value': db.add_float, 'error': db.add_error, 'stream': db.add_stream}
|
||||
|
||||
Reference in New Issue
Block a user