Message Boards Message Boards

2
|
2456 Views
|
1 Reply
|
2 Total Likes
View groups...
Share
Share this post:
GROUPS:

CurrentTemperature function

Posted 12 years ago
Of possible use:
 Clear[CurrentTemperature];
 
 
 CurrentTemperature[] := CurrentTemperature[$GeoLocation];
 
 
 CurrentTemperature[{latitude_, longitude_}] := UnitConvert[
 Quantity[WeatherData[{latitude, longitude}, "Temperature"],
 "DegreesCelcius"], "DegreesFahrenheit"]
Usage:

CurrentTemperature[]
Result:
Quantity[32., "DegreesFahrenheit"]
POSTED BY: Arnoud Buzing
Posted 12 years ago
Nice.
POSTED BY: Tei Barnhart
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract