stability fixes to example apps

increased max climate temperature to 140 F in climatemon.js
added range, est_range to streaming.js default values and added better
comments
Update climatemon.js

increased max temperature from 120 F to 140 F to avoid errors when it get hot inside the cabin.
more temperature fixes
Merge branch 'master' of https://github.com/hjespers/teslams

Conflicts:
	examples/streaming.js

	modified:   examples/streaming.js
	modified:   examples/streaming.js
lots of little changes, plus two new calls, all backwards compatible!

- pass jshint (useful for lots of little reasons)
- new call all() to get an array of all vehicles
- vehicles() and get_vid() are now front-ends to all()
- new call stream() for raw streaming interface
- check error/response.statusCode on all callbacks from request()
Merge pull request #1 from mrose17/master

lots of little changes, plus two new calls, all backwards compatible!

Great improvements, thanks for contributing.
Update package.json

merged improvements from mrose17
Added new function to set charge limit (aka "slider")

main teslams.js library now accepts and sets charge limits
chargebar example now displays charge limit setting
teslacmd command line tool now allows setting of charge limit from
command line (using -R flag)
npm retry
Add support to stream to a MongoDB database

This modifies streaming.js to switch to 'database mode' if the --db option is
given. In that case we add the streamed data to a local MongoDB database. The
mongodb JS module needs to be available (but is only required if the --db
option is given).

In order to do this the '.pipe(...)' method was replaced with '.on('data',...)'
which appears to be functionally equivalent (but I worry if there are subtle
differences).

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Allow visualization of tesla streaming data on a map

Simply call

node ./visualize.js --db <database bane> --replay <number of minutes back>

to start the server and then point a web browser to

http://localhost:8766

This will show a Google map with the position and some statistics on the car.
By giving the --replay argument you can go back in time and visualize the path
the car has taken. This runs at roughly 30x speedup. The map keeps updating in
real time as long as the server process is running.

The color of the track visualizes the speed driven. Slower speeds are shown as
shorter wavelength (with parked being a fairly deep blue). Faster speeds in
longer and longer wavelength with speeds above 65 being solid red.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Merge pull request #2 from dirkhh/mongo

Add support to stream to a MongoDB database
updated README and dependances for npm

Added contributors mrose17 and dirkhh
fixed typo in package.json
removed hardcoded hostname

added configurable HTTP port to command line args
added visualize to README

instructions for downloading MongoDB for streaming.js and visualize.js
Move HTML source into a separate file

Load the file and replace some MAGIC_ values with the correct data at runtime.
With this there's an easy to edit and maintain 'map.html' file that gets used
as the basis for the file served.

Also extend the window for searching for timestamps to ten minutes (as I found
two instances where there was a gap of more than five minutes in my data).

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Add simple energy display

The URL needs to be of a rather inflexible format - I'm sure we could write
much better parsing for different ways to specifying the date. For now you need
http://localhost:port/energy?from=year-month-day-hour-min&to=year-month-day-hour-min

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Add crude favicon

This is loosely based on the Tesla flag.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>