Commit Graph

32 Commits

Author SHA1 Message Date
ntoff
a6d224be14 Merge from master 2018-12-30 22:21:47 +10:00
ntoff
28edc70855 Add option to remember last fan speed
Add the option to remember the last speed value and set the slider on load/refresh
2018-12-07 03:29:09 +10:00
ntoff
78dd50ffb1 add dynamic button title hover info
Add the lock/unlocked state to the lock buttn's title hover for state clarity
2018-12-05 16:27:51 +10:00
ntoff
212f6a7cf8 Add lock button
https://github.com/ntoff/OctoPrint-FanSpeedSlider/issues/10
2018-12-05 02:10:11 +10:00
ntoff
1c6e0d442e changes to the settings page
added helpful popup hints and removed the somewhat obvious line of text about limiting the fans output.
2017-11-18 08:00:16 +10:00
ntoff
22ce5c7ec7 increase the div width in settings to 90% 2017-11-18 07:55:30 +10:00
ntoff
ab2fa40b32 remove unnecessary css
plugin should now rely on touchUI's own css so removed my dodgy fix
2017-11-18 07:22:26 +10:00
ntoff
47a3537490 move input box under touchUI + fix non functional button
move the input box over underneath the feedrate / flowrate to keep them all in the same spot and fix the stupid button not working in firefox (NFI why it didn't work, the code is literally the same it's just in a new spot. GG)
2017-11-18 07:21:29 +10:00
ntoff
59ef6652eb remove use strict
testing's over, remove "use strict"
2017-11-18 05:02:44 +10:00
ntoff
c7c2f52149 add some comments
clarify fan speeds are 0-100% not 0-255 pwm values
2017-11-18 05:01:52 +10:00
ntoff
943fca8581 control -> settings + tweak info timeout
for some reason I was  saving settings in the control viewmodel, changed to the settings viewmodel and increased the default time the notices are visible by 1 second
2017-11-18 04:36:40 +10:00
ntoff
b359461d80 fix issue with touch ui max slider value being wrong and fix padding
if touchui was active the max value was 255, also added a bit of extra width so the button doesn't resize (at least when the button text is in english)
2017-11-18 04:18:37 +10:00
ntoff
addd0ffa4b check for notifications and don't display if one is active
check for high / low speed out of range popups and only display one, block popping up of multiple notifications for the same event
2017-11-12 16:26:38 +10:00
ntoff
70d3e0803b separate stuff into their own functions
move percent to pwm function and checking the slider value is within range into their own functions
2017-11-12 06:33:51 +10:00
ntoff
3049d0fedf fix default fan speed slider position
oops, forgot the last bit of the if else statement
2017-11-12 05:19:12 +10:00
ntoff
21e4627da2 missing span on touchui button + less global
hopefully nothing global "use strict" seems to not complain :D
2017-11-12 04:46:00 +10:00
ntoff
a47ead4db3 tweak settings loader
parseint to make sure we're loading numbers and tweak the slider to adapt to the min/max value on UI load if the default value is outside the allowed range
2017-11-12 03:38:25 +10:00
ntoff
f7faf42a87 remove unnecessary added classes
get rid of the extra classes added to make finding the buttons easier, turns out they aren't needed
2017-11-12 02:20:17 +10:00
ntoff
deb15025d8 min/max requirement notification text fix
speed decrease notification used "meet minimum requirement" which might be misleading, changed to "meet maximum requirement"
2017-11-12 01:11:36 +10:00
ntoff
175722a015 fix javascript console logging of fan speed notification
log was being output after the slider was set causing it to display the wrong value
2017-11-12 01:08:27 +10:00
ntoff
f4bb25718a add some notifications about fan speed being altered
Added a popup notification (can be disabled) and some console log text if the fan speed is altered. Also made the slider snap to the min/max value if it is out of range to give visual feedback that the plugin is doing something to the fan speed.
2017-11-12 01:02:29 +10:00
ntoff
7bdd260617 use other view model push method
http://docs.octoprint.org/en/master/plugins/viewmodels.html#registering-custom-viewmodels says the other way is depreciated
2017-11-11 21:41:07 +10:00
ntoff
99364df94e wrap it in a try catch
Hopefully when something in my plugin breaks (that's when, not if) it won't take down all of octoprint's UI.
2017-11-06 17:23:25 +10:00
ntoff
9fe9e04016 fix button while printing (touchUI)
missed that one :(
2017-10-11 23:18:34 +10:00
ntoff
0462a7552e fix buttons disabled during printing
closes #3
2017-09-25 06:42:02 +10:00
ntoff
988512f522 rename default fan speed variable to be more clear 2017-09-06 17:52:23 +10:00
ntoff
b03a045b24 self fanpwn 2017-09-05 22:57:53 +10:00
ntoff
2cc132213f added some comments 2017-09-05 09:37:05 +10:00
ntoff
30ee76bf7e add a limiter 2017-09-05 03:52:55 +10:00
ntoff
18f009fa85 add a setting to change the default value of the slider 2017-08-31 18:09:07 +10:00
ntoff
05e2e10497 touch ui compatibility 2017-08-30 18:28:26 +10:00
ntoff
594455ef61 upload 2017-08-29 07:10:51 +10:00