I've been a fan of mochouinard's Tesla Headwind Estimator for a long time. However, a problem is that the app relies on another web site to obtain the wind data, and that web site (and all others like it) will charge you if you obtain weather information from them too often. mochouinard ran into this problem (because his app is quite popular) and had to disable it.
I've come up with a replacement web app to estimate winds (and elevation) for the Tesla while driving, and I'm using a method that can get around this limitation. Each person who wants to use the app can obtain their own API keys from OpenWeatherMap.org (for winds) and Geonames.org (for elevation). That way, no one API key will run into the limitations and the app can be free.
I believe the app is ready for use, and it is now live at http://teslawinds.com. When you first browse to the app, it will ask you to type in the two API keys you can register for and obtain for free from OpenWeatherMap.org and Geonames.org. I recommend you obtain the API keys on a desktop or laptop browser rather than in the car.
Once you have obtained the API keys (the Geonames site calls it the "username" or "handle"), bring up the web site in the car, type in the API keys, click the Verify button and the app will verify that both API keys work properly. If they do, you'll be redirected to the app, if not you can correct your keys and hit Verify again.
Once you are redirected to the app, bookmark it to save the API keys, that way you will not have to enter them again.
The main app looks like this:
Center Pane (Course): Your course is shown at the top of the rotating compass both in degrees (0-360), and a 16-compass-point direction. Your ground speed (computed by GPS) is at the bottom. The air speed is the ground speed with the headwind or tailwind added in. This is the equivalent speed at which the car will use energy. Tailwinds reduce the air speed, headwinds increase it. The blue arrow in the compass is the wind direction for your area. The compass and wind arrow will rotate as you drive. The cars position, and therefore the course, compass, and speeds are updated every 30 seconds.
Left Pane (Winds): The direction that the local winds are coming from and their speed is shown at the top in blue. This direction is shown on the compass in the center pane as well by the blue arrow. The weather station that reported the winds is also shown above the wind direction and speed. The components of the wind (crosswind and head/tail wind) are shown surrounding your car. Crosswinds appear with a yellow arrow, headwinds appear with an orange arrow (they cause increased energy usage), and tailwinds appear with a green arrow (they reduce energy usage). The crosswind and head/tailwind speeds are also shown. The arrows size themselves dynamically, so stronger winds will appear with larger arrows. Winds under 1 MPH are not shown. Also at the bottom of this pane are the position, wind, and elevation update timers. WInds are updated every 5 minutes.
Right Pane (Elevation): The current elevation based on your location is shown at the top in feet, and is updated every 1 minute. The graphic in the middle will show your Model S on an incline if there is a measurable grade that you are driving on. If the model S is climbing, the grade is shown in orange (climbing increases energy use), if the model S is descending, the grade is shown in green (descents decrease energy use). Your ground speed must average at least 30 MPH over a 1 minute interval for the app to compute the grade and elevation change rate. This is to ensure that noise and minor errors in the elevation mapping database are smoothed out. Note that the incline that your model S is shown on is exaggerated for visibility. At the bottom of this pane is the current version of the app, which as of this writing is 1.0.0.197.
Current Limitations:
- I've made considerable effort to reduce the required CPU power for this app, but as we all know, sometimes the Tesla browser is just slow. I haven't had any real trouble but please let me know if you do.
- Right now, the app displays imperial units only. I will work on allowing the switch to SI units in a future version.
- Elevation is from a mapping database, thus it represents the ground level. Elevation is not altitude, and will not take into account bridges, overpasses, or tunnels.
- All computations other than course and speed rely on the API calls, which require Internet connectivity. If you are driving in an area where you do not have a data connection, errors will appear in the app that say "No wind/elevation data obtained". These errors will clear when Internet connectivity returns.
I hope this app helps you on any driving trips where winds and elevation can be a consideration for energy use. I appreciate any feedback you have.
I've come up with a replacement web app to estimate winds (and elevation) for the Tesla while driving, and I'm using a method that can get around this limitation. Each person who wants to use the app can obtain their own API keys from OpenWeatherMap.org (for winds) and Geonames.org (for elevation). That way, no one API key will run into the limitations and the app can be free.
I believe the app is ready for use, and it is now live at http://teslawinds.com. When you first browse to the app, it will ask you to type in the two API keys you can register for and obtain for free from OpenWeatherMap.org and Geonames.org. I recommend you obtain the API keys on a desktop or laptop browser rather than in the car.
Once you have obtained the API keys (the Geonames site calls it the "username" or "handle"), bring up the web site in the car, type in the API keys, click the Verify button and the app will verify that both API keys work properly. If they do, you'll be redirected to the app, if not you can correct your keys and hit Verify again.
Once you are redirected to the app, bookmark it to save the API keys, that way you will not have to enter them again.
The main app looks like this:
Center Pane (Course): Your course is shown at the top of the rotating compass both in degrees (0-360), and a 16-compass-point direction. Your ground speed (computed by GPS) is at the bottom. The air speed is the ground speed with the headwind or tailwind added in. This is the equivalent speed at which the car will use energy. Tailwinds reduce the air speed, headwinds increase it. The blue arrow in the compass is the wind direction for your area. The compass and wind arrow will rotate as you drive. The cars position, and therefore the course, compass, and speeds are updated every 30 seconds.
Left Pane (Winds): The direction that the local winds are coming from and their speed is shown at the top in blue. This direction is shown on the compass in the center pane as well by the blue arrow. The weather station that reported the winds is also shown above the wind direction and speed. The components of the wind (crosswind and head/tail wind) are shown surrounding your car. Crosswinds appear with a yellow arrow, headwinds appear with an orange arrow (they cause increased energy usage), and tailwinds appear with a green arrow (they reduce energy usage). The crosswind and head/tailwind speeds are also shown. The arrows size themselves dynamically, so stronger winds will appear with larger arrows. Winds under 1 MPH are not shown. Also at the bottom of this pane are the position, wind, and elevation update timers. WInds are updated every 5 minutes.
Right Pane (Elevation): The current elevation based on your location is shown at the top in feet, and is updated every 1 minute. The graphic in the middle will show your Model S on an incline if there is a measurable grade that you are driving on. If the model S is climbing, the grade is shown in orange (climbing increases energy use), if the model S is descending, the grade is shown in green (descents decrease energy use). Your ground speed must average at least 30 MPH over a 1 minute interval for the app to compute the grade and elevation change rate. This is to ensure that noise and minor errors in the elevation mapping database are smoothed out. Note that the incline that your model S is shown on is exaggerated for visibility. At the bottom of this pane is the current version of the app, which as of this writing is 1.0.0.197.
Current Limitations:
- I've made considerable effort to reduce the required CPU power for this app, but as we all know, sometimes the Tesla browser is just slow. I haven't had any real trouble but please let me know if you do.
- Right now, the app displays imperial units only. I will work on allowing the switch to SI units in a future version.
- Elevation is from a mapping database, thus it represents the ground level. Elevation is not altitude, and will not take into account bridges, overpasses, or tunnels.
- All computations other than course and speed rely on the API calls, which require Internet connectivity. If you are driving in an area where you do not have a data connection, errors will appear in the app that say "No wind/elevation data obtained". These errors will clear when Internet connectivity returns.
I hope this app helps you on any driving trips where winds and elevation can be a consideration for energy use. I appreciate any feedback you have.