Skip to content

Commit 0e1ef0c

Browse files
authored
Merge pull request #64 from LazeMSS/develop
0.0.1.7
2 parents d4be1b5 + 29845eb commit 0e1ef0c

File tree

5 files changed

+9
-10
lines changed

5 files changed

+9
-10
lines changed

octoprint_toptemp/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ def buildPsuUtil(self):
397397
label = entry.label
398398
else:
399399
label = name + "-" +str(count)
400-
self.psutilList['fanspeed_'+str(count)] = ["Fanspeed " + label + " RPM",[name,entryno]]
400+
self.psutilList['fanspeed_'+str(count)] = ["Fanspeed \"" + label + "\" RPM",[name,entryno]]
401401
count += 1
402402
entryno += 1
403403

@@ -691,7 +691,7 @@ def runPSUtil(self,indx,cmd,returnData = False):
691691
fanEntry = self.psutilList[cmd][1][1]
692692
fans = psutil.sensors_fans()
693693
if fans and fanName in fans:
694-
fans[fanName][fanEntry].current
694+
returnVal = fans[fanName][fanEntry].current
695695

696696
if returnVal:
697697
self.debugOut("psutil " + cmd + " returned: " + str(returnVal) + " for index :"+indx)

octoprint_toptemp/static/css/TopTemp.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,4 @@ body.TopTemPreviewON div#settings_dialog {
232232
color: #333;
233233
}
234234

235-
#navbar_plugin_toptemp > div:not(.IconsLeft) .navbar-text{
236-
line-height: 15px;
237-
}
238-
239235
/* TopTemp END */

octoprint_toptemp/static/js/TopTemp.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ $(function() {
558558
if (val[2] == null){
559559
return;
560560
}
561-
var item = $('<li><a href="#" data->'+val[1]+'</a></li>');
561+
var item = $('<li><a href="#">'+val[1]+'</a></li>');
562562
item.on('click',function(){
563563
$(this).closest('div.input-append').find('input').val(val[0]).trigger('change');
564564
});
@@ -571,7 +571,7 @@ $(function() {
571571
$('#'+newId).find('.toptempTestCMDOutContainer').hide();
572572
if (self.customPSUs != null){
573573
$.each(self.customPSUs,function(idx,val){
574-
var item = $('<li><a href="#" data->'+val[0]+'</a></li>');
574+
var item = $('<li><a href="#">'+val[0]+'</a></li>');
575575
item.on('click',function(){
576576
$('#'+newId).find('.topTempPSUtilView').html(val[0]);
577577
$(this).closest('div.input-append').find('input').val(idx).trigger('change');
@@ -584,7 +584,7 @@ $(function() {
584584
$('#'+newId).find('.topTempShowPS,.topTempShowCMD,.toptempTestCMDOutContainer').hide();
585585
$('#'+newId).find('.topTempShowGC').show();
586586
$.each(self.GcodePred[newVal],function(idx,val){
587-
var item = $('<li><a href="#" data->'+idx+'</a></li>');
587+
var item = $('<li><a href="#">'+idx+'</a></li>');
588588
item.on('click',function(){
589589
$(this).closest('div.input-append').find('input').val(val).trigger('change');
590590
});

octoprint_toptemp/templates/toptemp_settings.jinja2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@
307307
<label class="control-label">Number of digits</label>
308308
<div class="controls">
309309
<input type="number" min="0" max="2" step="any" data-bind="value: settings.plugins.toptemp.chamber.noDigits">
310+
<span class="help-inline">-1 = return all digits</span>
310311
</div>
311312
</div>
312313
<div class="control-group" title="Decimal seperator">
@@ -460,6 +461,7 @@
460461
<label class="control-label">Number of digits</label>
461462
<div class="controls">
462463
<input type="number" min="0" max="2" step="any" data-bind="value: $parent.settings.plugins.toptemp['tool'+$index()].noDigits">
464+
<span class="help-inline">-1 = return all digits</span>
463465
</div>
464466
</div>
465467
<div class="control-group" title="Decimal seperator">
@@ -667,6 +669,7 @@
667669
<label class="control-label">Number of digits</label>
668670
<div class="controls">
669671
<input type="number" min="-1" step="1" data-settings="noDigits">
672+
<span class="help-inline">-1 = return all digits</span>
670673
</div>
671674
</div>
672675
<div class="control-group" title="Decimal seperator">

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
plugin_name = "Top Temp"
1515

1616
# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
17-
plugin_version = "0.0.1.6"
17+
plugin_version = "0.0.1.7"
1818

1919
# The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin
2020
# module

0 commit comments

Comments
 (0)