Skip to content

Conversation

@dustinosity
Copy link
Member

@bryanculbertson does this make sense? Whenever the network request would fail it would kill the whole shebang. Now if it fails it will just try again in 5 seconds. Might need to set some indicator (maybe change the color of the station leds or blink something) to indicate when data is stale in the event that the network goes down.

muniled.py Outdated
Copy link
Member

Choose a reason for hiding this comment

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

It would be better to keep the network handling in the get_prediction method. Move the try logic around urlopen in get_predictions. This will insulate downstream processes from potential errors.

@bryanculbertson
Copy link
Member

Comments inline.

Good idea to pass handle the url exceptions. How about slowly dimming the lights the longer its been without an update?

@ghost ghost assigned dustinosity Mar 5, 2013
@dustinosity
Copy link
Member Author

Moved stuff to get_prediction.

Added a placeholder for a future dim method

@dustinosity dustinosity closed this Mar 5, 2013
@dustinosity dustinosity reopened this Mar 5, 2013
@dustinosity
Copy link
Member Author

I apparently managed to hit close instead of comment...

@dustinosity
Copy link
Member Author

Totally digging the pedanticism.

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