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 trialAleksandr Golovinov
6,094 PointsWhat/Where would be the best way to change temperature from Fahrenheit to Celsius?
What/Where would be the best way to change temperature from Fahrenheit to Celsius?
How to receive data autonomously from forecast, instead of requesting data manually
1 Answer
Seth Kroger
56,413 PointsIn general, tempC = (tempF - 32.0) * 5.0 / 9.0
Since you are using forecast, you can also add &units=si
or &units=auto
which will tell the API to give you measurements in metric or the locally appropriate units for the forecast location respectively.
Unfortunately there no way to use the API anonymously without a key.