move sehistory specific stuff from influx.py to seinflux.py

This commit is contained in:
2025-02-26 10:39:54 +01:00
parent 78ceecbb53
commit 258ab809a9
7 changed files with 317 additions and 257 deletions

View File

@@ -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}