Gina Häußge
4a9be80c98
Fixed login dialog again
2015-01-15 14:21:32 +01:00
Gina Häußge
23387d6e48
More work on the template refactoring and new template plugin types
2015-01-15 11:06:59 +01:00
Renha
6cf0550312
Bugfix for Invalid cross-device link on Linux when /tmp is on another fs
2015-01-13 22:24:35 +00:00
Gina Häußge
73466bb513
Merge branch 'devel' into dev/templateRefactoring
2015-01-13 18:27:10 +01:00
Gina Häußge
b0805a9bae
Forgot to commit some files (argh)
2015-01-13 18:20:45 +01:00
Gina Häußge
f9fd4f9009
WIP: refactoring of templates
2015-01-13 18:20:13 +01:00
Gina Häußge
5b6b8b6ad1
And some more moving around of templates
2015-01-13 11:49:28 +01:00
Gina Häußge
8aede1dfe4
Moved settings components into individual template files as well
2015-01-13 11:31:45 +01:00
Gina Häußge
77cdb7bf43
Moved navbar, sidebar and tab contents from index.jinja2 into individual files
2015-01-13 11:20:37 +01:00
Gina Häußge
6880184cbb
Increased default communication and connection timeouts
2015-01-13 11:09:42 +01:00
Gina Häußge
868dc6d7a9
Increased default communication and connection timeouts
2015-01-12 17:34:08 +01:00
C-o-r-E
684d12e60e
Fix error where API state is requested and printer is offline
...
(cherry picked from commit 619fe9a )
2015-01-12 16:53:17 +01:00
Gina Häußge
4e4ad0be8b
Fixed file sending to SD card
...
Closes #709
2015-01-12 16:00:37 +01:00
Gina Häußge
f238ef40ec
Better error validation for printer profiles
...
Data types loaded from disk were not properly ensured to match expected types and input validation also had deficits.
Should fix #714
2015-01-12 15:07:14 +01:00
Gina Häußge
f5eef06e88
Fixed wrong variable name
...
Closes #715
2015-01-12 10:45:39 +01:00
Gina Häußge
778d3f2853
Merge remote-tracking branch 'origin/devel' into devel
2015-01-12 09:46:15 +01:00
Gina Häußge
2ba681573f
Key controls are now enabled when you mouse over the webcam picture, indicated by an overlay
...
Also moved key control help in that overlay
2015-01-12 09:40:45 +01:00
Gina Häußge
edafee7b22
Added setting to enable/disable the keycontrol feature
2015-01-12 09:37:52 +01:00
Gina Häußge
52056b0eeb
Merge branch 'devel_keycontrol' of https://github.com/nEuDy/OctoPrint into nEuDy-devel_keycontrol
...
Conflicts:
src/octoprint/static/css/octoprint.css
2015-01-10 13:56:51 +01:00
Rob Speed
062131a10e
Renamed delpid to term to better match its modified behavior. Moved the registration of the SIGTERM handler to avoid an extremely unlikely race condition.
2015-01-10 01:34:47 -08:00
Rob Speed
6c78049886
Fixes issue where a daemonized OctoPrint doesn't clean up after itself after receiving SIGTERM.
2015-01-10 00:24:25 -08:00
Gina Häußge
3d5fdf2a91
Fixed bug that caused SSDP discovery not to work anymore
...
Blueprint was protected by API key which lead to the discovery.xml
file not being retrievable.
2015-01-01 01:52:41 +01:00
Gina Häußge
c9c4066331
Fixed a bunch of doc issues, updated /api/printer/command to have more meaningful error messages
2014-12-31 15:47:12 +01:00
Gina Häußge
bf6a32907c
Ported possibility to set external host via headers from reverse proxy to the devel branch
2014-12-31 15:09:31 +01:00
Gina Häußge
749af60796
Merge branch 'master' into devel
...
Conflicts:
src/octoprint/server/util.py
src/octoprint/settings.py
src/octoprint/templates/index.jinja2
2014-12-30 10:49:03 +01:00
Gina Häußge
87ddcac2fc
Don't user server.host but server.forwardedHost as fallback for generated external URLs
...
Closes #698
2014-12-30 10:20:50 +01:00
Gina Häußge
e3383fe4c1
Generated URLs now take X-Forwarded-Host header sent by proxies into account for included host and port
2014-12-29 20:48:33 +01:00
Gina Häußge
292856e1bd
Fixed relative URL to sockjs endpoint, wasn't yet using the proper base url
2014-12-29 20:45:54 +01:00
Gina Häußge
6307b765e3
Only decrement the image counter if it is set and larger than 0
...
Backported from devel
2014-12-28 00:19:55 +01:00
Gina Häußge
eb2561175d
Merge branch 'master' into devel
...
Conflicts:
setup.py
src/octoprint/timelapse.py
2014-12-28 00:18:49 +01:00
Gina Häußge
a30e41f0b4
Timelapses: Do not try to use image counter if still set to None and synchronize decrementing of image counter via mutex as well
...
Possible fixes for #693 , the latter maybe also for #690
2014-12-28 00:12:19 +01:00
Gina Häußge
fb15751703
Decrease image counter if an image could not be captured from webcam
...
Should keep rendering of timelapse from breaking if only a couple of images couldn't be captured due to whatever reason. Suggested by @midopple in #344
(cherry picked from commit bf9d5ef )
2014-12-27 23:55:23 +01:00
Gina Häußge
a0105bcb2f
Better error handling for capture issues during timelapsing
...
Should help debugging issue #425 and any future problems in that area.
(cherry picked from commit 1a7a468 )
2014-12-27 23:52:38 +01:00
Gina Häußge
103e0796b7
Request available slicers and slicing profiles from backend asynchronously when opening the slicing dialog
...
Should make sure that slicers and new profiles are detected correctly even without reload.
Could maybe help with #689
2014-12-21 15:57:23 +01:00
Gina Häußge
363b23d6e3
Better handling of errors while sending to (disconnected) clients on the websocket
2014-12-21 15:47:24 +01:00
Gina Häußge
977cf3c383
Added handler for uncaught exceptions to make sure those get logged
2014-12-21 15:32:07 +01:00
Gina Häußge
827ea36d72
Merge remote-tracking branch 'origin/devel' into devel
2014-12-21 15:16:34 +01:00
Gina Häußge
46b0367335
Log a message to octoprint.log if Cura is not fully configured and hence not available for slicing yet.
...
As suggested in #689
2014-12-21 15:15:59 +01:00
Gina Häußge
596afddfb6
Merge pull request #685 from Bevaz/bug_video_output_filename
...
Enframed output video filename with quotes.
2014-12-20 18:05:50 +01:00
Gina Häußge
256c2dfdbe
More error resilient handling of .metadata.yaml writes in local storage
...
Writes updated metadata to a backup file first and then copies it atomically (at least under anything that is not windows where the operation is a bit more complicated and hence not atomic)
2014-12-20 01:06:40 +01:00
Gina Häußge
0737ee65bd
Support action: commands sent from printer, for now only pause, resume and disconnect are supported, plus a new hook "octoprint.comm.protocol.action" to add handlers of custom actions via plugins.
...
Added "!!DEBUG:" command to virtual printer to be able to trigger such commands to be sent by it.
2014-12-20 00:31:46 +01:00
Gina Häußge
8998be66eb
Don't accidentally include a newline from the mime headers in the parsed multipart data
...
Fixes #680
2014-12-19 12:28:02 +01:00
Gina Häußge
1180cac147
Fixed heated bed option not being properly displayed in printer profiles
...
Fixes #683
2014-12-19 10:01:00 +01:00
Gina Häußge
270231a004
Fixed extruder offsets not being properly editable in printer profiles
...
Closes #677
2014-12-19 09:54:11 +01:00
Gina Häußge
c2f0f6c7c4
[i18n] Translation update
2014-12-18 15:15:23 +01:00
Gina Häußge
c7afae38a8
Rolled back appearance settings
...
Associating them with the current printer profile is misleading as long as a printer profile represents both a physical printer and a type machine. In the future this association will have to be split, to allow for configuration of printers with respective machine profiles (name subject to be changed).
2014-12-18 13:48:19 +01:00
Gina Häußge
873a825e57
Commented out loggers used for debugging/evaluating print time estimation
2014-12-18 12:02:14 +01:00
Gina Häußge
dc2318f404
Use the rolling average of the last n estimations instead of the current estimation for reporting print time left
2014-12-18 12:01:01 +01:00
Bevaz
699ed1da4d
Enframed output filename with quotes.
2014-12-17 22:08:47 +03:00
Gina Häußge
d8b95f845c
If the G4 isn't returned, it won't be sent to the printer
2014-12-17 18:33:26 +01:00
Gina Häußge
014d39c11d
Fetch estimated print time from cura slicing result, create print time statistics per printer profile, interpolate between stats and live estimation during printing for print time left
2014-12-17 17:31:30 +01:00
Gina Häußge
a544a852f2
Some minor cleanup
2014-12-17 12:52:02 +01:00
Gina Häußge
3311a48e3a
Merge branch 'issue_658' of https://github.com/vishnubob/OctoPrint into vishnubob-issue_658
...
Conflicts:
src/octoprint/util/comm.py
2014-12-17 12:50:37 +01:00
Gina Häußge
5ac908afd4
Pauses in the print job are now cleaned from the basis for print time estimation, also switched to a rolling window approach for determining when estimation becomes stable
2014-12-16 13:27:31 +01:00
Gina Häußge
12a3e659b1
Added new plugin type ProgressPlugin
...
Plugins can implement that to get notified of progress in both print and slicing jobs in 1% increments.
2014-12-15 21:29:18 +01:00
Gina Häußge
b0780af7fa
Removed a possible race condition when slicing to the same gcode file in direct succession
2014-12-15 18:35:15 +01:00
Gina Häußge
2ec31c7521
Removed a left-over from print time estimation experiments that got overlooked
2014-12-15 11:38:17 +01:00
Gina Häußge
f2562500a3
Print time estimation is now not displayed until it becomes somewhat stable
2014-12-12 23:38:57 +01:00
Gina Häußge
85a567bdab
More error resilience when logging success/failure of prints
2014-12-11 18:32:17 +01:00
Gina Häußge
11c415fd17
Actually use caching when reading metadata (was a write-only cache previously, way to go...)
2014-12-11 18:31:48 +01:00
Gina Häußge
d67ea41032
Fixed jog controls
...
Closes #664
2014-12-11 16:10:50 +01:00
Gina Häußge
66357ebe7e
"autoconnect" parameter to "connect" command is not mandatory
...
Closes #675
2014-12-11 15:37:48 +01:00
Gina Häußge
8dbde90a93
Merge branch 'master' into devel
2014-12-09 22:25:19 +01:00
Gina Häußge
c5be9908c5
Don't hiccup on slic3r filament_diameter comments generated for multi extruder setups
2014-12-09 22:20:55 +01:00
Gina Häußge
f7f70108bc
Make sure the printer profile fields are all of the correct type during validation
2014-12-05 12:20:35 +01:00
Gina Häußge
bd08eadac9
Fixed a bug causing the _default profile to be saved to a file instead of config.yaml
2014-12-05 12:01:02 +01:00
Gina Häußge
a2314a9ab3
Fixed URL endpoint for printer profile API, it's supposed to be "api/printerprofiles", not "api/printerProfiles"
2014-12-05 11:52:27 +01:00
Gina Häußge
e1b071c0d8
Removed old printer parameter and appearance settings and added auto migration of config
2014-12-05 11:46:55 +01:00
Gina Häußge
aba8a57fa5
Added possibility to say to select or directly a file right after slicing it finished, both to the API and the UI
2014-12-04 18:06:35 +01:00
Gina Häußge
5784ab82ef
WIP: Adding option to start printing directly after slicing
2014-12-04 15:31:00 +01:00
Gina Häußge
636e79672a
The API now allows to specify where on the print bed to put the sliced model's center
2014-12-04 12:52:33 +01:00
Gina Häußge
b935e96448
Fixed a bug causing slicing not to work if no printer profile was provided
2014-12-03 08:52:20 +01:00
Gina Häußge
56ad5b97b6
This on the other hand really fixes it and doesn't break anything in the progress
2014-12-02 17:48:12 +01:00
Gina Häußge
dcead7361f
Nope, reverting that fix, that broke something else
2014-12-02 17:28:53 +01:00
Gina Häußge
ef314340fa
Fixed a bug that caused medium to large sized STLs not to properly report progress when being sliced via the Cura plugin
2014-12-02 17:10:52 +01:00
Gina Häußge
a149cdc4f5
Added the nozzle diameter to the printer profile (needed for slicing, cura plugin uses it too)
2014-12-02 12:41:25 +01:00
Gina Häußge
2ea1b9df6c
Fully switched to printer profiles
2014-12-02 11:30:00 +01:00
Gina Häußge
05e54fa0c6
Internal representation for extruder offsets changed, adjusted gcode viewer view model to be able to cope
2014-12-01 16:36:08 +01:00
Gina Häußge
0203e6da31
More work on the printer profiles, connection dialog and Settings dialog are now working. GCODE viewer makes trouble
2014-12-01 16:26:55 +01:00
Gina Häußge
93a852e6ea
WIP: Printer profiles & management now functional, but integration with connection dialog still broken
...
The API documentation is also still missing.
2014-11-29 20:55:30 +01:00
Gina Häußge
985b0970f1
More work on the printer profiles
2014-11-29 12:32:55 +01:00
Giles Hall
e844d42275
added G4 hook to increase the timeout for serial communication
2014-11-28 19:28:03 +00:00
Gina Häußge
a56ddb9ebe
WIP commit, probably a tad bit broken ;)
2014-11-28 11:29:38 +01:00
Gina Häußge
1957d2bb58
WIP First work towards printer profiles
2014-11-28 09:32:44 +01:00
Gina Häußge
e55f11c5b9
Fixed wrong default types for plugin hooks etc
2014-11-26 16:53:35 +01:00
Gina Häußge
07133b79e5
Track modification time of configuration file and reload it if it was externally modified before changing settings
2014-11-25 17:04:27 +01:00
Gina Häußge
183a8feed4
Plugins can now push messages via the websocket as well
2014-11-25 09:08:33 +01:00
Gina Häußge
e3253fce16
Changed name of cura plugin to CuraEngine
2014-11-24 17:52:39 +01:00
Gina Häußge
acd6f729f0
Wait at least 5s before reloading the UI
2014-11-20 12:16:59 +01:00
Gina Häußge
ec85cccc75
Initialize logging before plugin manager, otherwise the logging output of the latter will not be visible
2014-11-19 11:33:20 +01:00
Gina Häußge
f3f640c24f
On reconnect to server, check if the version changed and if so hard-reload the UI
2014-11-19 09:16:37 +01:00
Gina Häußge
9c2b42caa2
Added an additional constant for the plugin base url for blueprint plugins
2014-11-19 09:03:50 +01:00
Gina Häußge
a677ffc90e
Only bind additional view models from plugins if they specify a target to bind to
2014-11-19 09:03:11 +01:00
Gina Häußge
254145da22
Also protect resources from blueprint plugins with the api key (unless the plugin specifies otherwise)
2014-11-19 09:02:33 +01:00
Gina Häußge
fec51ebc8e
Fixed a merge error that caused duplicated code and missing auto migration of reverse proxy settings
2014-11-17 13:50:47 +01:00
Gina Häußge
50895a662a
Updating the settings now fires a new event "SettingsUpdated"
2014-11-17 11:06:54 +01:00
Gina Häußge
048ad78778
Do not deliver API key on settings API unless user has admin rights.
2014-11-14 18:24:57 +01:00
Gina Häußge
e9beffc799
Properly recognize app session keys everywhere. Also fixed a bug where the ApiUser was not properly provisioned with his roles.
2014-11-14 17:58:42 +01:00
Gina Häußge
fe9dd5ef28
Send 401 Unauthorized instead of 403 Forbidden upon failed app session verification
2014-11-14 15:02:52 +01:00
Gina Häußge
468e4b6d55
Support for a new type of API key
...
In order to solve the initial handshake problem with apps, OctoPrint now supports so called app session keys which are basically API keys with a limited validity. Obtaining those keys is based on a handshake procedure backed by RSA signatures. OctoPrint needs to be aware of apps and their associated public keys (with the AppPlugin there exists a mechanism to add additional recognized apps by installing a plugin). Apps perform the handshake by first requesting a temporary key with very limited validity, then sending a message back to OctoPrint containing their id, version, the temporary key and a signature created with their private key over these three pieces of data. OctoPrint then tries to verify the signature and if successful unlocks the key to be used as a fully recognized API key.
2014-11-14 14:30:25 +01:00