30 Commits

Author SHA1 Message Date
David Kocik
60b8a8245c Deleted unused function in Octoprint 2021-12-03 09:47:56 +01:00
Vojtech Bubnik
4d1ce89c22 Follow-up to f4dfbb69e2e4397ff7369fd1709ecf6da17aab83
Now that libcurl is used for URL host substitution,
we want to make sure that the new code compiles on Windows only
because that is where we need to do the URL host substitution
due to Windows 10/11 mDNS resolve issues and
because we have a control on the libcurl version statically linked
on Windows, so we are sure the URL API is available.
2021-12-03 08:12:47 +01:00
Vojtech Bubnik
f4dfbb69e2 Replaced the code to substitute host address part in URL
with libcurl library calls. This solution should be more robust
than a homebrew URL parser solution.
2021-12-03 08:02:16 +01:00
David Kocik
a840f8020f Substitution of host during ip resolve: correct handling of ipv6 2021-12-02 16:31:19 +01:00
David Kocik
a4b4af8a1a Change of 71082adbc9ac2101c39f46218d666e46ab4ecb7c
Instead of just adding port, take original address and replace just host with resolved host.
fix of #7389
2021-12-02 10:25:31 +01:00
David Kocik
0939dab807 allow_ip_resolve in app config 2021-12-02 10:25:04 +01:00
David Kocik
9788a80c6f Added port number to resolved ip address if specified.
fix of #7361
2021-12-02 10:25:04 +01:00
Vojtech Bubnik
c514f45260 Fix of #7386, missing include 2021-11-30 13:17:56 +01:00
Vojtech Bubnik
8967ee57ed Start Simulation for Duet
Author: Martin Loidl <martin.loidl@gmail.com>

    * PrintHost can now return a set of possible actions to be done after a
      upload is finished
    * Added new Button for starting a simulation after upload
    * Duet Hosts are now able to start a simulation after upload instead of
      starting a print
    * removed now unneeded config key 'printhost_print'
2021-11-30 08:43:39 +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
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
Vojtech Bubnik
a25d2d1de4 Support for SL1S printer:
Where SL1 is mentioned, mention it as SL1 / SL1S.
Support loading / saving of SL1S files in addition to SL1.
2021-08-13 13:40:13 +02:00
David Kocik
b14345012d PrusaLink - cherrypick pick from stable branch
Added to config enums, visible in Physical Printer Dialog and class derived from Octoprint
2021-06-28 12:36:01 +02:00
Yuri D'Elia
ad20e369fa Include PrintConfig for the definition of AuthorizationType 2020-09-11 16:51:05 +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
Lukas Matena
f2b98bddee Fixing wxString::Format encoding mismatches (part 3) 2020-03-03 10:54:17 +01:00
bubnikv
791f487c76 Clean-up of the "Upload to" code (AstroBox, Duet, FlashAir, OctoPrint) 2020-01-06 10:59:57 +01:00
Vojtech Kral
f937209619 Refactor catch(...) handlers in Http, OctoPrint, PrintHost, and Serial 2019-08-19 17:04:14 +02:00
bubnikv
1efe743834 Modified texts of the "Change language" dialog. 2019-05-09 15:24:08 +02:00
Vojtech Kral
857b68a82a PrintHost: Fix host type configuration, refactor, fix #1687 2019-03-05 16:12:15 +01:00
Vojtech Kral
bd725a47f4 PrintHost: Don't offer print start for SL1 2019-03-05 16:12:15 +01:00
Vojtech Kral
af08626398 Duet: Implement upload() (refactoring from old code) 2018-12-20 17:09:44 +01:00
Vojtech Kral
3b2c28fa89 Printhost: Polish error handling, bugfixes 2018-12-19 18:49:34 +01:00
Vojtech Kral
0ac4d13015 Print host: Check OctoPrint vs SLA 2018-12-19 15:15:29 +01:00
Vojtech Kral
66b5deccf5 PrintHost: Basic SL1 support 2018-12-18 14:37:35 +01:00
Vojtech Kral
862217a6b3 OctoPrint basics working, niceties to-do 2018-12-17 17:14:00 +01:00
Vojtech Kral
2350fb62b9 WIP OctoPrint integration 2018-12-12 13:17:01 +01:00
bubnikv
a378bb7bed Removed some obsolete Perl bindings.
Removed libslic3r from the default include paths for all modules but
libslic3r. Now headers from libslic3r need to be included with an
explicit path (libslic3r/libslic3r.h etc)
Split the localization macros into I18N.{cpp,h}
2018-11-26 14:41:58 +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