Commit Graph

33 Commits

Author SHA1 Message Date
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
d2f1ed57ad add settings cleanup function
Clean up and remove empty config if everything is set to default values
2017-11-18 06:31:22 +10:00
ntoff
f13fda67e2 modify settings saving to save integers 2017-11-18 05:59:54 +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
0e71971e66 add percentage to logger message
add a more "human readable" percentage value to the logged fan speed (if modified)
2017-11-11 21:31:05 +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
6124bba2e7 try rounding 2017-09-05 11:13:39 +10:00
ntoff
554d78efb7 make same code into a function 2017-09-05 10:57:55 +10:00
ntoff
525a08c20e update settings page help text 2017-09-05 10:56:39 +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
4df6a99238 change inline help text a bit 2017-09-03 17:19:23 +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