必要なもの
Tesla Motors Model S 1台
ネットから注文できる。
http://www.teslamotors.com/jp/
公式アプリ
iPhoneとAndroidのアプリがある。
Tesla Model S on the App Store on iTunes
https://itunes.apple.com/us/app/tesla-model-s/id582007913?mt=8
Tesla Model S Beta - Android Apps on Google Play
https://play.google.com/store/apps/details?id=com.teslamotors.tesla&hl=en
サードパーティ製アプリ
Tesla Info - Android Apps on Google Play
https://play.google.com/store/apps/details?id=cz.anywhere.tesla
API
上記のiPhone and/or AndroidアプリのAPIが載っている様子。
公式ではAPIは公開していない。
Tesla Model S JSON API—by apiary.io
http://docs.timdorr.apiary.io/
APIでできること
以下のデータの取得の他、充電の開始・終了、ドアロックON/OFF、サンルーフの開け閉めの命令などが可能。
# | 内容 | 備考 |
---|---|---|
1 | 充電状態 | 充電の詳細、航続距離など |
2 | 車内外の温度 | - |
3 | 位置情報 | 緯度経度、方角 |
4 | GUI設定 | 華氏/摂氏など |
5 | 自動車の状態 | ボンネットやサンルーフの開閉状態、ホイールサイズなど |
ライブラリやアプリ
Python
https://github.com/nside/pytesla
Node.js
https://github.com/hjespers/teslams
Java
https://github.com/jpasqua/TeslaClient
C#
https://github.com/morrisonbrett/teslalib
Ruby
https://github.com/gstark/tesla-api
PHP
https://github.com/apach3guy/Tesla-Mobile-Web-App
参考
REST API Tools and Apps - Tesla Motors Club - Enthusiasts & Owners Forum
http://www.teslamotorsclub.com/showwiki.php?title=REST+API+Tools+and+Apps
あとがき
筆者はAPIもアプリも試してません。