Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frame and score from api #52

Open
mdonadel83 opened this issue Nov 5, 2024 · 2 comments
Open

Frame and score from api #52

mdonadel83 opened this issue Nov 5, 2024 · 2 comments

Comments

@mdonadel83
Copy link

Good evening,
Is possible from the api , return the score of the frame of the event? I would like to while every frames of one event , and use DetectSequence only if the score of the frame are more than a number i want.

Thanks

@connortechnology
Copy link
Member

Of course. For example the following request:
/zm/api/frames/index/EventId:17559047.json returns an array of frames for event 17559047 that looks like:
{
"frames": [
{
"Frame": {
"Id": 1774640189,
"EventId": 17559047,
"FrameId": 1,
"Type": "Normal",
"TimeStamp": "2024-11-05 13:06:16",
"Delta": "0.00",
"Score": 0,
"Data_json": null,
"TimeStampSecs": 1730829976
}
},
]
}

The Score field is included.

I don't think there is any code in zmes to actually grab the frame record but it should be straight forward.

@mdonadel83
Copy link
Author

Thanks!
Before i did with query direct to mysql, i had good result , but i prefer do all from api!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants