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

Tuning2 #19

Merged
merged 6 commits into from
Sep 26, 2020
Merged

Tuning2 #19

merged 6 commits into from
Sep 26, 2020

Conversation

quassy
Copy link
Collaborator

@quassy quassy commented Sep 26, 2020

05_count_to_api.py starten und alle 10 Sekunden wird eine Bild ausgewertet und an die API geschickt.

@quassy quassy requested review from top-on and jkellers September 26, 2020 11:17
Copy link
Member

@top-on top-on left a comment

Choose a reason for hiding this comment

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

I could only skim through the changes inside the traffic_cam package.
I'll test it more thoroughly later.
The general changes of this PR look good, though!
Would you mind briefly changing the things I have commented on? :-)

)


if __name__ == "__main__":
Copy link
Member

Choose a reason for hiding this comment

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

I would suggest to save us the indentation here, and integrate the sleep within the loop.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe add the location to the data? The other teams, also do this. Just to be consistent.
"longitude": "51.962077", "latitude": "7.628095"

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Still undecided if that makes sense for a static location, as that info is available for the device already https://counting-backend.codeformuenster.org/devices/south_street_cityhall

Copy link
Member

Choose a reason for hiding this comment

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

I suppose oskar knows what frontend needs

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I would keep sleep outside because it feels very much like a side effect to me ;)

@quassy quassy marked this pull request as ready for review September 26, 2020 12:58
@quassy quassy merged commit 8fd7894 into master Sep 26, 2020
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.

3 participants