-
Notifications
You must be signed in to change notification settings - Fork 0
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
store successful uploaded program tracks in housekeeping database #17
Comments
Format for program track hk packet, then a list of those or?
|
I can provide an HTTP endpoint in the HK system to take the data from the tcs. One option would be the monitor-telegraf service. The format which this service accepts is the following snipplet from e.g. https://github.com/ccatobs/housekeeping/blob/main/data/telegraf-host/etc/telegraf/telegraf.conf: |
I've checked in a hacky first draft of this. It'll send the following JSON to the {
"points": [
{
"t": "2024-07-17T17:44:03.879056215Z",
"az": 110,
"el": 60,
"vaz": 0.8,
"vel": 0,
"azFlag": 1,
"elFlag": 0
}
]
} |
Thanks, I will try to make this work tomorrow in Xanten. |
Format must be
|
You can do the conversion in telegraf, e.g.:
|
Telegraf is not really involved here, I am just using the http endpoint which the telegraf components in the HK system are using. The monitor-telegraf service which is defined in XXX_PROGRAM_TRACK_UPLOAD_URL actually knows nothing about telegraf, but expects the format given above. So, please do me the favour and change the format of the data you send. |
Instead of sending all requested points of the requested track at or before the start of the track, it would be better to send them either during the scan or at the end of the scan. This would give us the chance to handle the case of aborted scans properly. The tcs would either stop sending points to the HK system (if points are sent during the ongoing scan) or filter out requested points with timestamps after the scan is aborted (if points are sent at the end of the scan). |
It would be useful for program track testing to store the requested track in the housekeeping database. This should be tagged with a program track name say "_". This feature would help with debugging uploaded program track and variations between the actual and commanded.
The text was updated successfully, but these errors were encountered: