Skip to content

Instantly share code, notes, and snippets.

@jmtatsch
jmtatsch / gist:44e7c1a55fc29432254bdc61559d91c7
Last active April 12, 2018 05:10
ROS Kinetic on Sierra Work in Progress
# NOTE: These instructions do not represent a robust, self-troubleshooting install; they
# are definitely not suitable for dumping to a giant script and running as one. If you
# use them, they should be run one at a time, with an eye out for errors or problems
# along the way.
#
# The #1 issue you are likely to encounter is with Homebrew or Python packages whose
# binary components link against system Python. This will result in runtime segfaults,
# especially in rviz. If you suspect this is occurring, you can attempt to remove and
# reinstall the offending packages, or go for the nuclear option--- empty your Cellar
# and site-packages folders and start over with brewed python from the beginning.
@jmtatsch
jmtatsch / tesla_request_option_codes.py
Created March 24, 2019 20:10
How to query option codes via the Teslajson Api
import teslajson
user = "your_tesla_login@email.com"
password = "your_tesla_email"
c = teslajson.Connection(user, password)
for vehicle in c.vehicles:
print( "{} has the following options enabled: ".format(vehicle["display_name"]))
for option in vehicle["option_codes"].split(","):
print(option)