21 Commits

Author SHA1 Message Date
Jan Bařtipán
b5c97738be HTTP: changed retry strategy so the max period is ~4mins and limited to 16 retries 2024-12-13 15:05:56 +01:00
Lukas Matena
68f8925461 Improve startup of ConfigWizard (SPE-2457) 2024-10-02 14:27:55 +02:00
Jan Bařtipán
3b8d34ec5f Http: fixed condition for retry (if retry enabled) 2024-09-12 11:34:41 +02:00
Jan Bařtipán
54baccd6fc Http: added support for retry with exponentail backoff, UserAccountCommunication::on_active triggered from app instrad of panel to correctly handle situation when multiple app windows opened, ConnectWebView: refactored the login script to prevent using old token 2024-09-03 12:29:09 +02:00
David Kocik
adc650ef4e PrusaConnect communication with PrusaAuth login
Background communication with keeping tokens
Temporary output is notification
Temporary storing tokens in prusaslicer.ini

Using wx secret store to store tokens if possible

Improved PrusaConnect message - number of compatible models


Fix of saving refresh token


Refactoring of Auth and Auth Session classes.
2024-03-25 12:05:55 +01:00
ps_copyright
f32859c302 final copyright headers 2023-09-01 14:49:07 +02:00
David Kocik
ce38e57ec4 Downloader feature - Downloads from Printables.com
Custom URL Registration:
 - Windows - writes to registers.
 - Linux - desktop integration file.
 - Macos - info.plist.in creates registration and is controlled only via app config.
Registration is first made in Config Wizard. Or is triggered from Preferences. Path to downloads folder can be set.
URL link starts new instance of PS which sends data to running instance via SingleInstance structures if exists.
New progress notification is introduced with pause and stop buttons.
Downloader writes downloaded data by chunks.
Support for zip files is introduced. Zip files can be opened, downloaded or drag'n'droped in PS. Archive dialog is opened. Then if more than 1 project is selected, only geometry is loaded.
Opening of 3mf project now supports openning project in new PS instance.
2023-01-05 16:00:04 +01:00
David Kocik
e276b70851 Resolve IP address from last curl connection and use it as address for next Octoprint upload
IP resolve only for non secure connection and on windows.
2021-11-25 15:18:15 +01:00
Lukas Matena
13ff92335b Several fixes and improvements in SendSystemInfoDialog:
- do not show memory in MB, show it in GiB rounded to one decimal place
- when sending fails, the HTTP error code is not presented to the user (it is logged though)
- when the user cancels the sending, no extra "sending cancelled" message is shown
- in case there is no internet connection, the dialog is not shown at all
- a 6 second timeout for a case that connection is lost during sending
- the dialog is only shown when the wizard does not show on startup
2021-10-18 15:34:51 +02:00
Vojtech Bubnik
d3f11a6ab7 Follow-up to OctoPrint upload: ignore certificate revocation checks
6b03b66167dd17bc6c804f58b9af124082e80287

Renamed the new "printhost_ignore_check" option to "printhost_ssl_ignore_revoke"

Improved the Physical Printers dialog in regard to the new option checkbox
(added tooltip to the checkbox, moved it to the end of options).

Disabled the host_xxx options at the command line interface, they no
more work after these options were separated to Physical Printers profiles.

Little refactoring of Http.cpp/hpp, OctoPrint.cpp/hpp
Private local variables prefixed with m_, some renaming for clarity.
2021-08-24 13:57:52 +02:00
Vojtech Bubnik
6b03b66167 OctoPrint upload: ignore certificate revocation checks
Fixes Hostname incorrect While test is positive (Bonjour discovery not
supported for the address field) #1781
(partial fix of #1781)
2021-08-24 11:24:48 +02:00
tamasmeszaros
0a932ebfe3 Enable http digest authentication for CURL 2020-11-25 13:58:03 +01:00
Vojtech Bubnik
acbf25681a Wifi Duet upload: Improved some string copying. 2020-10-21 14:42:08 +02:00
Lukas Matena
daeb618812 Merge branch 'add-duet-software-framework-support' of https://github.com/Duet3D/PrusaSlicer into Duet3D-add-duet-software-framework-support 2020-10-19 11:50:31 +02:00
Vojtech Bubnik
ce06fc6cb7 Added networking support for SL1 Digest authorization.
Renamed login/password/authorization_type to printhost_user/printhost_password/printhost_authorization_type.
Added initialization of physical printer preset with default values.
2020-09-08 15:31:10 +02:00
Manuel Coenen
06e329655d Add support for DuetSoftwareFramework based machines
Also extend Http to be able to send PUT requests as well as
setting POST body data directly.
2020-06-04 11:20:09 +02:00
tamasmeszaros
611a243447 Add question box on PrusaSlicer start to accept detected CA store..
Fix compile
2020-04-22 17:14:09 +02:00
Vojtech Kral
75cc0b07bb Http: Don't set CURLOPT_TIMEOUT 2018-12-21 12:06:47 +01:00
Vojtech Kral
17c2f3d813 Http: Set a sane default connection timeout 2018-12-19 15:40:35 +01:00
Vojtech Kral
862217a6b3 OctoPrint basics working, niceties to-do 2018-12-17 17:14:00 +01:00
bubnikv
0558b53493 WIP: Moved sources int src/, separated most of the source code from Perl.
The XS was left only for the unit / integration tests, and it links
libslic3r only. No wxWidgets are allowed to be used from Perl starting
from now.
2018-09-19 11:02:24 +02:00