Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJames Estrada
Full Stack JavaScript Techdegree Student 25,866 PointsApp Refresh Frequency
Pasan Premaratne said that in a real app we wouldn't allow users to refresh every thirty seconds when the weather is not going to change; we would check when the last request was made and have a sensible default. However, I have pressed the refresh button one second after the other and my counter in my API Usage from Dark Sky API doesn't increase., unless I wait around one minute for another request. That's when I see the activity indicator and not when I press the refresh button every few seconds. Why is this happening if we haven't account for checking the last time the refresh button was pressed?
1 Answer
Pasan Premaratne
Treehouse TeacherJames Estrada
I'm not 100% sure in this case, because the forecast api was recently changed, but they might be throttling you on their end since we use a free tier.