Arksine
f9dcda7ba9
scripts: update uninstallation script
...
Remove the LSB or systemd service, depending on which is installed.
SIgned-off-by: Eric Callahan <arksine.code@gmail.com>
2021-02-08 06:45:01 -05:00
zellneralex
0fcae5b6e4
power: add Shelly device support
...
Signed-off-by: Alex Zellner <alexander.zellner@googlemali.com>
2021-02-07 07:31:04 -05:00
Arksine
dd81beab47
extract_metadata: add support for metadata thumbnail extraction in Cura
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-02-06 08:39:41 -05:00
Arksine
9648630392
file_manager: process ufp files found when refreshing a directory
...
This allows users to manaully place ufp files in the gcode directory. Resolves #81 .
Signed-off-by: Eric Callahan <arskine.code@gmail.com>
2021-01-31 12:33:50 -05:00
Arksine
fe2cec1087
update_manager: use glob pattern matching to find site package folder
...
This allows for python version flexibility. Resolves #76 .
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-01-31 12:33:33 -05:00
Arksine
81104a6618
docs: update documentation for latest changes
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com
2021-01-31 07:41:16 -05:00
Arksine
980912270e
data_store: store fan speed for temperature fans
...
Refactor the the temperature store to only store fields available to a sensor.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-01-31 06:52:42 -05:00
Arksine
39334d1098
update_manager: add "persistent_files" option to web clients
...
This allows clients to define files that will persist through an update, useful if the client has some sort of static configuration.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-01-31 06:52:42 -05:00
Arksine
943b78195b
power: fix incorrect indentation
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-01-28 07:36:21 -05:00
Arksine
49c5583e95
machine: fix typo in service restart handler
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-01-28 07:35:33 -05:00
Arksine
e8776a5d85
docs: fix incorrect wording for 'klipper_restart_when_powered'
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-01-27 07:12:19 -05:00
Arksine
9c385ce067
docs: document 'restart_klipper_when_powered' option
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-01-27 06:58:27 -05:00
Arksine
9e240c3b86
power: add "klipper_restart_method" option
...
When this option is set Mooraker will restart Klipper after the device has been powered on. An additional "restart_delay" option has been added to customize the delay in which the restart is executed.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-01-27 06:58:27 -05:00
Arksine
c365de32cf
machine: add "restart_service" method
...
Move the service restart functionality out of the "service restart" request into its own method. This allows the "service restart" to be called internally by other modules.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-01-27 06:22:15 -05:00
Arksine
aa9bf0fb9c
docs: document the `enable_auto_refresh` option
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-01-26 18:05:06 -05:00
Arksine
ddc7405249
update_manager: resolve initialization issues
...
Fix issue where apt-get update is called on startup. This should only be done by the "auto updater" or by a specific request to refresh.
Always set an Updater's init event to true when refresh() is called, regardless of the result.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-01-26 17:47:10 -05:00
Arksine
25b3911d3d
confighelper: fix bug in "getfloat" method
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-01-22 17:18:28 -05:00
Arksine
19bc2bfbb8
update_manager: make auto refresh optional
...
Decrease the frequency of auto updates roughly every 24 hours. The manager will attempt to update once between 12am and 4am.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-01-22 17:18:28 -05:00
Arksine
578ce740c5
docs: update API documentation for changes to update_manager
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-01-22 17:18:28 -05:00
Arksine
6a88df095e
scripts: modify update_manger.conf for new configuration
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-01-22 17:18:28 -05:00
Jordan Ruthe
c17d86aa09
docs: update configuration to reflect multiple update clients
...
Signed-off-by: Jordan Ruthe <jordan.ruthe@gmail.com>
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-01-22 17:18:28 -05:00
Arksine
0ad97fd9eb
update_manager: extract and verify configurable git repo options
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-01-22 17:18:28 -05:00
Jordan Ruthe
f3ae6da635
update_manager: Allow for multiple client entries
...
Signed-off-by: Jordan Ruthe <jordan.ruthe@gmail.com>
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-01-22 17:18:28 -05:00
Arksine
e9ab5fb480
power: add missing call to super() for Tasmota devices
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-01-22 17:16:51 -05:00
Arksine
21d1726bfd
power: report device name in error when "locked while printing"
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-01-22 11:20:36 -05:00
Jordan Ruthe
0b3b8cede8
power: Raise error if trying to change a locked device during printing
...
Signed-off-by: Jordan Ruthe <jordan.ruthe@gmail.com>
2021-01-22 11:00:31 -05:00
Jordan Ruthe
00db209d5d
power: Add 'locked_while_printing' to device list
...
Signed-off-by: Jordan Ruthe <jordan.ruthe@gmail.com>
2021-01-22 11:00:31 -05:00
Jordan Ruthe
b4602115d7
power: add "locked_while_printing" option to avoid accidental shutdown
...
Signed-off-by: Jordan Ruthe <jordan.ruthe@gmail.com>
2021-01-22 11:00:31 -05:00
Arksine
ff8e53b269
moonraker: return list of registered directors in server.info response
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-01-20 10:21:27 -05:00
Arksine
e2c325a724
extract_metadata: support first layer height expressed as a percentage
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-01-16 12:46:56 -05:00
Arksine
a1f2228473
extract_metadata: add shebang to script
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-01-16 12:38:54 -05:00
Arksine
d70bd8d2e0
data_store: add support for storing gcode commands
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-01-12 14:56:37 -05:00
Bryan Mayland
8c365c62cb
data_store: Add heater PWM value to /server/temperature_store
...
Signed-off-by: Bryan Mayland <bmayland@capnbry.net>
2021-01-12 11:36:19 -05:00
Volodymyr Babchynskyy
6f4a72fe2e
Readme: added link to Klipper
...
Signed-off-by: Volodymyr Babchynskyy <vvchik@gmail.com>
2021-01-09 05:46:28 -05:00
Arksine
bdd270fa4a
update_manager: wrap calls to http.fetch in "gen.with_timeout"
...
This is a workaround for an issue where the http client fails to propogate an exception back to the caller, hanging the update process.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-01-07 20:27:23 -05:00
Arksine
d194ce00ab
update_manager: send notification response upon update error
...
Attach "is_complete" to the response so clients know that the transaction is done, even though it resulted in an error.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-01-06 19:42:40 -05:00
Arksine
5f986ab770
power: refactor initialization
...
The entire configuration should be validated prior to device initialization. In the event of an error, the GPIO Chip factory must be closed.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-01-06 14:39:33 -05:00
Arksine
e0f4b46364
update_manager: refactor initialization
...
We need to be sure that the entire update_manager is correctly configured prior to queueing the callbacks for the initial refresh. Rather than have each updater spawn a "refesh" callback, move them all into a single init method spawned after the module has been fully configured.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-01-06 14:14:12 -05:00
Arksine
fb3706c54f
paneldue: configure the serial connection last
...
This allows the PanelDue object to be properly cleaned in the event of a configuration error.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-01-06 14:00:29 -05:00
Arksine
d1388080c4
moonraker: don't crash the server if an optional plugin fails to import
...
The server can still operate and be used to fetch the logs if a plugin fails to load. Add a 'failed_plugins' field to the /server/info response so clients can notify users that this plugin failed to load.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-01-06 12:32:26 -05:00
Arksine
f1a75117db
confighelper: add config file path to systemargs
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-01-06 12:05:10 -05:00
Arksine
4ae63dbbf8
moonraker: log config file at startup
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-01-06 12:05:10 -05:00
Arksine
30637011e6
utils: add method for setting rollover info
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-01-06 12:05:09 -05:00
Arksine
8a18fa6c2f
confighelper: Add method to write config to a file object
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-01-06 09:09:29 -05:00
Arksine
4cd97d61f9
file_manager: remove unnecessary call to get_file_list() in get_file_metadata()
...
If the metadata doesnt exist simply return an empty dict.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-01-06 07:49:47 -05:00
Arksine
40f876192c
file_manager: check for new metadata on each call to _list_directory
...
Previously this check was only on done when a directory was requested by the API. Moving this check to _list_directory ()updates metadata for internal calls as well.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-01-06 07:19:37 -05:00
Arksine
fa53d889d0
file_mananager: Use absolute paths instead of normalized paths
...
This prevents potential issues where relative paths may be compared to absolute paths.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-01-05 12:09:52 -05:00
Arksine
6fcb26ddd7
file_manager: skip broken symlinks in list directory
...
This resolves an issue where an exception is raised when path info is requested.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-01-05 11:27:46 -05:00
Arksine
67adcfc448
docs: note update_manager API changes
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-01-04 08:51:41 -05:00
Arksine
0c280122fb
websockets: Add "update_refreshed" notification
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-01-04 08:18:11 -05:00