Skip to content

[DRAFT DO NOT MERGE] Add support for simulator data logging #897

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

Closed
wants to merge 4 commits into from

Conversation

microbit-robert
Copy link
Collaborator

No description provided.

@github-actions
Copy link

github-actions bot commented Aug 22, 2022

@@ -89,7 +89,7 @@ const Simulator = ({
ref={ref}
as="iframe"
// This needs changing before we remove the flag.
src={`https://stage-python-simulator.microbit.org/simulator.html?color=${encodeURIComponent(
src={`https://deploy-preview-36--distracted-dubinsky-fd8a42.netlify.app/simulator.html?color=${encodeURIComponent(
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change this back before merging!

export interface DataLoggingSensor {
type: "log";
id: string;
value: [LogData[]];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we mean a singleton array here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's currently not, due to some difficulties I was having, but it probably should be.

<HStack justifyContent="space-between" width="100%">
{icon}
<Text>{Math.max(sensor.value.length - 1, 0)} rows</Text>
<Button size="sm">Download</Button>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently does nothing.

@microbit-matt-hillsdon
Copy link
Collaborator

Superseded by #922 which built on this branch. Closing.

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

Successfully merging this pull request may close these issues.

2 participants