45 Commits

Author SHA1 Message Date
e735ebe5f9 add normalize_uri instead of short_hostname
- use gethostbyaddr only in case of numeric IP
- hard wired reverse CNAME (network alias) for linse-c
2025-05-26 08:55:11 +02:00
ef35d18f37 proper logging, add signal handler for graceful termination 2025-05-23 13:52:42 +02:00
04bf09ae5a add db.has_local
this is True on instruments
2025-05-21 11:58:29 +02:00
13987dedd3 bug fix (> instead of <) 2025-05-21 10:00:04 +02:00
7225dcbe19 add argument to enable to create a bucket
also fo t.py
2025-05-21 09:59:54 +02:00
dd571fc3ea improve set_instrument and get_experiment
- do not predate when setting instrument to '0'
- join chunks with the same device
2025-05-21 09:52:12 +02:00
93b7b263e7 fix get_experiments
bad key on devices.pop
2025-05-20 18:14:45 +02:00
7b9a03eaa6 removing a streams must never be pre-dated 2025-05-20 17:29:32 +02:00
6ffcf92aaf improve merging units
+ bug fix
2025-05-20 15:58:47 +02:00
88dbfc3169 add usual locations of sehistory and frappy to sys.path 2025-05-20 10:31:19 +02:00
fa5866ee33 change arguments for starting feeder
+ add relative path for servicemanager
2025-05-20 10:13:21 +02:00
cae4332bb8 add .gitignore 2025-05-08 10:01:35 +02:00
cf6bd4ed54 t.py:add home to sys.path 2025-05-08 09:08:44 +02:00
1ed579f1cb get map stream -> instrument from servicemanager for feeder 2025-05-05 08:32:34 +02:00
d683306beb short exp() function for get_experiment 2025-05-05 07:54:10 +02:00
bdeb98df32 sehistory: export ETERNITY constant 2025-05-05 07:53:12 +02:00
2169a4a182 change config location to ~/.config/sehistory 2025-04-29 15:31:50 +02:00
7b1c66d6f6 allow to select database (central or local) when starting 2025-04-29 15:30:51 +02:00
e84fba1b49 improve set_instrument
- this still needs some checks
2025-04-29 15:30:26 +02:00
335d0a5078 strip leading underscore from secop parameter names
+ other fixes and debugging prints
2025-03-28 11:37:11 +01:00
029309a06b bug fix: append(row) instead of append(rows) 2025-03-03 14:14:22 +01:00
b5c770e7d8 feeder: use FrappyManager to connect to running frappy instances 2025-03-03 14:13:11 +01:00
a5b5d1de8d t.py: maxpoints/maxcurves argument to prt 2025-03-03 11:28:04 +01:00
fc9970b4af change behaviour of instrument assignment
instrument assignment is persistent
if a stream has to be unassigned from a stream, assign it
to the dummy instrument '0'
2025-03-03 11:24:02 +01:00
31377dc933 remove Single type, rework get stream 2025-03-03 08:34:13 +01:00
a7797cbe6c add get_experiments 2025-02-27 10:42:15 +01:00
892346ed06 remove debug print 2025-02-26 13:47:20 +01:00
e2122fb3a0 import get_experiments
- in case of localhost, remove .psi.ch from normalized host name
+ fix import in t.py
+ allow boolean as selection criterium
2025-02-26 13:43:39 +01:00
ef560a8b20 printout host name before normalizing 2025-02-26 10:50:23 +01:00
6a6e8b1bcc normalize uri when used as stream identifier 2025-02-26 10:48:27 +01:00
2f6bcad82f fix SEHistory import 2025-02-26 10:43:36 +01:00
258ab809a9 move sehistory specific stuff from influx.py to seinflux.py 2025-02-26 10:41:40 +01:00
78ceecbb53 method 'complete': move end_time_dict to an argument
get_streams should return all tags
2025-02-25 14:13:35 +01:00
6659fa76f5 fix bug with first timestamp
+ add debug reply feature
2025-02-25 09:51:35 +01:00
2660442c0a fix bug and add guess for instrument 2025-02-25 08:20:51 +01:00
c0aeca523a major improvements and rework
- add stream / instrument availability data
- events contain event kind for dispatching db methods
2025-02-24 14:54:54 +01:00
832252bbbb do not crash when a conenction can not be done 2025-02-13 10:58:28 +01:00
77af8c760e custom device name for fake udp 2025-02-13 10:43:33 +01:00
aa2069d4f4 add sending udp message on behalf of an non-supporting server 2025-02-13 10:03:26 +01:00
1712415f20 do always sort 2025-02-11 15:59:27 +01:00
ce205f47a2 further rework
- dump all every full hour
- finish all streams properly on exit
2025-02-11 10:51:37 +01:00
50f8c349ee add streams.py
was forgotten initially
2025-01-16 12:56:31 +01:00
fc679cee21 support original_id 2025-01-16 10:46:37 +01:00
3266d2ab61 allow regexp patterns in query 2025-01-16 10:46:18 +01:00
9208ff993d Initial commit 2025-01-16 09:36:26 +01:00