Gina Häußge
ef94646083
printer_safety: Added version restriction to anycubic detection
...
Had to refactor check system to make this possible. Checks are now
implemented in classes that allow to track state.
2018-12-19 13:17:45 +01:00
Gina Häußge
a23d92158b
tracking: Track uptime of OctoPrint in ping event
...
That will give us an idea if the current hypothesis that quite a number
of people are shutting down their instance at night is correct or not,
which in turn will inform future startup optimizations.
2018-12-17 17:47:22 +01:00
Gina Häußge
bf5bc14c87
backup: fix needed space calculation
...
It wasn't taking excludes into account. Now its calculation mirrors the
zip file creation.
2018-12-13 16:29:22 +01:00
Gina Häußge
f6dd13af7a
tracking: add printer safety warnings to tracking
...
We want to get an idea how many people are running unsafe firmware.
2018-12-13 15:24:24 +01:00
Gina Häußge
5760b4b264
tracking: check enabled state before preparing payload
...
Otherwise if tracking is disabled we still do the work and then throw
it away, which is kinda stupid.
Also fixes potential issues with using things like the unique_id when
it hasn't in fact been set due to disabled tracking.
2018-12-13 13:13:02 +01:00
Gina Häußge
8cf5ca9589
tracking: Track firmware/communication errors
2018-12-12 15:41:36 +01:00
Gina Häußge
ae36a3905a
printer safety: Mark Malyan M200 fw 4.0+ as safe
...
Implements #2947
2018-12-12 15:25:38 +01:00
Gina Häußge
5af5cbbb37
Merge branch 'staging/maintenance' into maintenance
2018-12-03 14:16:50 +01:00
Gina Häußge
38fce1665b
backup: signal restore done before reboot
2018-11-30 20:07:18 +01:00
Gina Häußge
f51a98768c
backup: more feedback during restore
...
The upload of a backup can take a while, so pop up the work dialog as
soon as that starts, not only when it is finished.
2018-11-30 20:06:57 +01:00
Gina Häußge
4d04c323f6
backup: use base version for version check
2018-11-30 20:06:24 +01:00
Gina Häußge
94116bfd53
backup: fix on_restore_failed calls
2018-11-30 18:33:58 +01:00
Gina Häußge
a05761e63f
backup: better error logging
2018-11-30 18:29:55 +01:00
Gina Häußge
89469d38ae
printer safety: Fix localization of warning
2018-11-30 17:06:07 +01:00
Gina Häußge
bd2616e888
backup: exclude generated, logs & watched
...
We don't need these in the backup, and in fact they only make things
more bloated and/or complicated.
2018-11-30 16:53:26 +01:00
Gina Häußge
02e996436d
backup: restore is not supported on windows
...
Sadly the stupid file locking of windows makes it impossible to
hot swap the config directory. In order to support windows a two step
approach would be needed. Maybe at a later date, currently simply not
worth the effort tbh considering how seldomly windows is used as OS for
OctoPrint.
2018-11-30 16:53:19 +01:00
Gina Häußge
a3f2e0b56c
backup: fix plugin compatibility check on restore
...
Fixes #2920
2018-11-30 16:21:58 +01:00
Gina Häußge
c4295d6a81
Merge branch 'staging/maintenance' into maintenance
2018-11-28 14:57:14 +01:00
Gina Häußge
13260fa219
tracking: file path instead of just name in print events
...
Closes #2908
2018-11-26 14:10:03 +01:00
Gina Häußge
9a90093dda
tracking: file path instead of just name in print events
...
Closes #2908
2018-11-26 14:08:33 +01:00
Gina Häußge
9165f83084
printer safety: Mark stock Micro3D fw as unsafe
...
See https://github.com/donovan6000/iMe/issues/67#issuecomment-441454163
2018-11-26 10:27:20 +01:00
Gina Häußge
fa9472d4aa
Fix SWU restart command again
...
Accidentally committed something I only changed for a test. Oops.
2018-11-22 15:54:02 +01:00
Gina Häußge
170804d4df
Create a backup of working config.yaml after startup
2018-11-22 13:47:02 +01:00
Gina Häußge
bd241e8e6c
backup: allow zip64
2018-11-21 12:19:04 +01:00
Gina Häußge
7939b0ae4d
backup: better error reporting
2018-11-21 12:10:03 +01:00
Gina Häußge
6b57ba2d7d
printer_safety: detect iMe on Micro3D
...
See donovan6000/iMe#67
2018-11-20 12:42:52 +01:00
Gina Häußge
b8d4a58207
SWU: remove one thread level
...
on_after_startup now runs in its own thread, no need to spawn yet
another.
2018-11-20 12:42:43 +01:00
Gina Häußge
900f03dc8a
SWU: add a timeout to the wait on environment info
2018-11-20 12:24:50 +01:00
Gina Häußge
6556d555bd
forcelogin: Keep message backlog while not authed
...
First part of the fix for #2898
2018-11-19 15:22:33 +01:00
Gina Häußge
ff53a826f9
tracking: Fix link of plugin in plugin manager
2018-11-16 13:19:31 +01:00
Gina Häußge
335e635ec7
printer_safety_check: Make a text translateable
2018-11-15 14:17:06 +01:00
Gina Häußge
a5754a8552
pi_support: Add link to the new FAQ entry
2018-11-15 14:16:27 +01:00
Gina Häußge
a8c91ff6ba
pi_support: Better wording in popover & highlight current
2018-11-15 12:57:02 +01:00
Gina Häußge
962e09906e
tracking: Fix translatability of a message
2018-11-13 12:42:31 +01:00
Gina Häußge
f607f55683
printer_safety_check: Detect Ender 3 stock fw
...
As reported in https://discourse.octoprint.org/t/thermal-runaway-protection-absent-on-creality-ender-3/2787
2018-11-13 11:17:24 +01:00
Gina Häußge
1b45047826
tracking: wizard changes
...
* spinners for the enable/disable buttons
* error handler for persisting the decision that unlocks the wizard
Might help to work around issues less than a hand full of people have
now observed where the wizard's buttons are non functional but the
wizard itself is active and blocking.
More data needed to reproduce and debug the core issue though.
2018-11-12 15:23:17 +01:00
Gina Häußge
edd4d90b12
tracking: tracking.js -> usage.js
...
To work around some ad blockers that might block this otherwise - which
is kinda funny since the js file doesn't do any tracking, it just
makes the setup wizard for the opt-in functional 🤦♀️
2018-11-12 14:33:43 +01:00
Gina Häußge
0a3ad8a880
tracking: add time & reason for failure to print_failed
...
(cherry picked from commit b7e373c )
2018-11-12 14:33:43 +01:00
Gina Häußge
cb4404a833
Merge branch 'pr/2878' into staging/maintenance
2018-11-08 15:50:13 +01:00
Gina Häußge
38bb81cfe7
tracking: add throttle events, slightly change throttle payload
...
Also adjusted helper signature in pi_support plugin slightly.
Addon to #2878
2018-11-08 15:49:11 +01:00
tedder
76f48b3b13
PR feedback: throttle state and uuid
...
- add a way to get the raw value only from throttle state (glad I already plumbed it into the object!)
- add warning about not sending uuid, modify the log entry too
2018-11-08 01:29:15 +00:00
Gina Häußge
8596ae5c4a
SWU: Make sure check providers are in the correct format
...
Just in case there's some odd data in `config.yaml` as reported in https://github.com/foosel/OctoPrint/issues/2871#issuecomment-436507623
2018-11-07 11:10:31 +01:00
tedder
c1482eaacd
add throttle_state to tracking
...
- weave the throttle_state through pi_support and tracking. This should come in handy to see how many throttled Pis are out there, as well as if it is correllated with canceled prints.
- upgraded disclosure of tracking information so it shows as INFO-level in the logs and all the information is dumped. If tracking.octoprint.org gets it, I should have it too :)
2018-11-06 15:37:45 -08:00
Gina Häußge
e23fe4a925
forcelogin: Fix issue when running with acl disabled
...
Closes one variant of #2876
2018-11-06 17:34:01 +01:00
Gina Häußge
5b4839369e
appkeys: Probe endpoint to check for workflow support
...
Also adjusted docs and js client lib accordingly.
2018-11-05 12:50:05 +01:00
Gina Häußge
e2c1fa3d43
Appkeys: request creation should respond with 201
2018-11-02 17:04:58 +01:00
Gina Häußge
39a466e316
Appkeys: Make timeout thread safe
2018-11-02 12:53:30 +01:00
fieldOfView
7f36ffdafd
Expire request_access when the client stops polling
2018-11-02 11:04:06 +01:00
fieldOfView
e30e129e2a
Close request_access dialogs on other open connections when a decision is made
...
Once a decision is made on one connection (browser window), dialogs on other connections are no longer relevant.
2018-11-02 09:22:30 +01:00
Gina Häußge
371f1a818f
tracking: add uuid to filename hash in print event tracking
...
We don't need to be able to identify the same file across multiple
instances, just repeated prints on the same instance.
Thanks to @scoder for the suggestion.
2018-10-30 13:36:32 +01:00