A few weeks ago folks expressed interest in my PHP/MySQL based web app for the Model S. I created it mostly because I was tired of Tesla's refusal to cache data and make it available when the car sleeps. Thus, you only need to wake the car from the iOS app when you need real time feedback (climate control, unlocking doors, etc).
I released the source code on GitHub a couple days ago. More info below, but please have at least a basic idea of how to deal with MySQL dbs and have a basic understanding of some programming language before installing this on your webserver. I myself am an amateur programmer with zero formal training. The code is messy, yet functional. Cleaning it up has not been one of my priorities so I am releasing it as is.
From github:
This is a web accessable package written in PHP/MYSQL used to retrieve data and set parameters on a compatible Model S (remote access enabled).
Features:
- Track SOC data over time and monitor vampire losses (logger.php)
- View offline range without having to wake the car
- Set the desired charger % without having to wake the car
- Calculates corresponding rated miles for given SOC % using real data!
- View the car's last known location without having to wake the car
- Track a supercharge or any other charge session
- View streaming data in real-time
The beauty is that all of these features output to the browser instead of having to launch a program on your desktop.
Setup:
- Configure an appropriate MYSQL db
- logger.php will need to be executed by cron or task scheduler in 30 min increments
Note:
- Graphing features will require a PHP graphing library (i.e. PHPGraphLib)
- I am an amateur programmer with ZERO formal training. Use at your own risk!
apach3guy/Tesla-Mobile-Web-App · GitHub
Screens:
I released the source code on GitHub a couple days ago. More info below, but please have at least a basic idea of how to deal with MySQL dbs and have a basic understanding of some programming language before installing this on your webserver. I myself am an amateur programmer with zero formal training. The code is messy, yet functional. Cleaning it up has not been one of my priorities so I am releasing it as is.
From github:
This is a web accessable package written in PHP/MYSQL used to retrieve data and set parameters on a compatible Model S (remote access enabled).
Features:
- Track SOC data over time and monitor vampire losses (logger.php)
- View offline range without having to wake the car
- Set the desired charger % without having to wake the car
- Calculates corresponding rated miles for given SOC % using real data!
- View the car's last known location without having to wake the car
- Track a supercharge or any other charge session
- View streaming data in real-time
The beauty is that all of these features output to the browser instead of having to launch a program on your desktop.
Setup:
- Configure an appropriate MYSQL db
- logger.php will need to be executed by cron or task scheduler in 30 min increments
Note:
- Graphing features will require a PHP graphing library (i.e. PHPGraphLib)
- I am an amateur programmer with ZERO formal training. Use at your own risk!
apach3guy/Tesla-Mobile-Web-App · GitHub
Screens: