 class Tegh
   commands: require './help'
   _jobProgress: 0
+  _sensorMap: {e: 'extruder', e0: 'extruder', b: 'bed'}
 
   constructor: ->
     new ServiceSelector().on "select", @_onServiceSelect
     @_sensors = {}
+    @_targetTemp = {}
 
   _onServiceSelect: (service) =>
     clear()

    @client = new ConstructClient(service.address, port)
      .on("connect", @_onConnect)
      .on("sensor_changed", @_onSensorChanged)
      .on("job_progress_changed", @_onJobChanged)
      .on("jobs", @_onJobsList)
      .on("job_upload_complete", @_onJobUploadComplete)


  _onConnect: =>
    @cli = new CliConsole(@)

  _onTargetTempChanged: (data) =>
    @_targetTemp[@_sensorMap[k]] = v for k, v of data
    @cli.render()

  _onSensorChanged: (data) =>
    @_sensors[data.name] = data.value
