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

Not Receiving Telemetry Data #4

Open
Spacefreak18 opened this issue Nov 15, 2022 · 4 comments
Open

Not Receiving Telemetry Data #4

Spacefreak18 opened this issue Nov 15, 2022 · 4 comments

Comments

@Spacefreak18
Copy link

Spacefreak18 commented Nov 15, 2022

I'm having some trouble getting this to work.

I had to force certain versions of the dependencies, that wasn't much of an issue.

It could be that I'm running AC and not ACC, I wanted to atleast get something to work, they use the same file names, but the structures are different.

2022-11-15 09:28:52,905 error handling message
message: Message 'PATCH-DOC' content: {'events': [{'kind': 'MessageSent', 'msg_type': 'bokeh_event', 'msg_data': {'event_name': 'button_click', 'event_values': {}}}], 'references': []}
error: KeyError('lap')
Traceback (most recent call last):
File "/home/racedev/.local/lib/python3.10/site-packages/bokeh/server/protocol_handler.py", line 90, in handle
work = await handler(message, connection)
File "/home/racedev/.local/lib/python3.10/site-packages/bokeh/server/session.py", line 67, in _needs_document_lock_wrapper
result = func(self, *args, **kwargs)
File "/home/racedev/.local/lib/python3.10/site-packages/bokeh/server/session.py", line 261, in _handle_patch
message.apply_to_document(self.document, self)
File "/home/racedev/.local/lib/python3.10/site-packages/bokeh/protocol/messages/patch_doc.py", line 100, in apply_to_document
doc._with_self_as_curdoc(lambda: doc.apply_json_patch(self.content, setter))
File "/home/racedev/.local/lib/python3.10/site-packages/bokeh/document/document.py", line 1150, in _with_self_as_curdoc
return f()
File "/home/racedev/.local/lib/python3.10/site-packages/bokeh/protocol/messages/patch_doc.py", line 100, in
doc._with_self_as_curdoc(lambda: doc.apply_json_patch(self.content, setter))
File "/home/racedev/.local/lib/python3.10/site-packages/bokeh/document/document.py", line 398, in apply_json_patch
self._trigger_on_message(event_json["msg_type"], event_json["msg_data"])
File "/home/racedev/.local/lib/python3.10/site-packages/bokeh/document/document.py", line 687, in _trigger_on_message
cb(msg_data)
File "/home/racedev/.local/lib/python3.10/site-packages/bokeh/document/document.py", line 354, in apply_json_event
model._trigger_event(event)
File "/home/racedev/.local/lib/python3.10/site-packages/bokeh/util/callback_manager.py", line 85, in _trigger_event
self._document._with_self_as_curdoc(invoke)
File "/home/racedev/.local/lib/python3.10/site-packages/bokeh/document/document.py", line 1150, in _with_self_as_curdoc
return f()
File "/home/racedev/.local/lib/python3.10/site-packages/bokeh/util/callback_manager.py", line 72, in invoke
callback()
File "/home/racedev/git/acctelemetry/main.py", line 25, in callback
lap = int(filter_source.data['lap'][idx])
KeyError: 'lap'

@Spacefreak18
Copy link
Author

fyi, i just guessed at what versions to use...

Spacefreak18@e84443a

@gotzl
Copy link
Owner

gotzl commented Dec 31, 2022

Hi there!
I once added some stuff to read files created by the ACTI plugin for AC. But I didn't maintain it further and I'm sure that this is broken now due to changes in other places ... Did you also use this plugin or s.t. else? Could you maybe upload your files somewhere?

@Spacefreak18
Copy link
Author

I too was thinking about adding Motec support. Were you able to get good results, and did you find decent documentation on the format? Because it seems to be the closest there is to a "standard" in telemetry files.

I have gone a different direction, currently I created a basic python tool that will send data to an influxdb for use with Grafana.
https://github.com/Spacefreak18/sim_telem_monitor

@gotzl
Copy link
Owner

gotzl commented Jan 3, 2023

I did not find any documentation so I reverse engineered the Motec data-format, that is what ldparser (a submodule of the tool here) is supposed to do. I think the ldparser should also work with data from AC (or ACTI ...).

Your approach with influxdb/grafana sounds interesting, I'll check it out when I get the time. In fact, I did s.t. similar, just sending the data to a mongodb instead. But this project I didn't publish so far ...

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