dataType :'json',
success: function(data){
- $('#trigger-value').width(200*(parseFloat(data['volt'])/3.5));
- $('#uptime').text(data['up_time']+' sec');
+ $('#potentiometer').width(200*(parseInt(data['volt'])/4096));
+ $('#uptime').text(data['up_time'] +' sec');
$('#temperature').text(data['temp']+' °C');
temperature_data.push([data['up_time'],data['temp']]);
</div>
<div class="control">
<b>Potentiometer Value:</b><br/>
- <span class="trigger"><span id="trigger-value" > </span></span>
+ <span class="trigger"><span id="potentiometer"> </span></span>
</div>
</div>
<div class="content">