Commit graph

40 commits

Author SHA1 Message Date
Ghostkeeper
a31a4a1e90
Reinitialise Zeroconf network socket upon refresh/start
Reinitialising Zeroconf entirely causes CPU usage to go through the proverbial roof. This is sort of a hack, since we're touching the _listen_socket variable inside Zeroconf, which it hasn't exposed. But it works to still be able to refresh Zeroconf after network switches, and to not have high CPU usage afterwards.

Contributes to issue CURA-2497.
2016-10-04 13:49:01 +02:00
Aldo Hoeben
de44ac1df9 Merge pull request #3 from Ultimaker/feature_manual_instances
Add support for manual instances
2016-09-29 19:15:11 +02:00
fieldOfView
042ebe76ba Don't rely on key prefix, remove code duplication (_api_prefix)
CURA-2384
2016-09-29 15:32:42 +02:00
fieldOfView
ea9ba87fa4 Only allow connecting if the printer has responded to API query
CURA-2483
2016-09-29 14:29:33 +02:00
fieldOfView
a2722c7571 Get firmware version through API...
...for parity between discovered printers and manual printers

CURA-2384
2016-09-29 09:41:21 +02:00
fieldOfView
578b4d3826 Implement Adding, Editing and Removing manual printers
CURA-2384
2016-09-29 08:47:29 +02:00
fieldOfView
eba49ee8c2 Always show manual printer instances, even before they are validated
CURA-2483
2016-09-28 23:08:23 +02:00
fieldOfView
8e26d63390 Get a list of ipadresses/hosts to check for UM3 printers...
...in case discovery does not work. This uses the API to look up info on the printer instead of relying on zeroconf.

CURA-2483
2016-09-28 17:45:56 +02:00
Jack Ha
da4ea2e450 Better refresh button: now emits signal and re-instantiates zeroconf.
Signal emits let the UI display an empty list.
Re-instantiation copes with network changes.

Contributes to CURA-2372
2016-09-28 16:36:09 +02:00
Ghostkeeper
b4ba7a64a9
Only update printer list after printer is added/removed
This makes it emit a signal only after addPrinter and removePrinter has completed executing, so we know that updating the list is done by the time it refreshes the list view in QML.

Contributes to issue CURA-2393.
2016-09-26 12:04:59 +02:00
Jaime van Kessel
e388b8126b No longer re-create zeroConf object, as this crashes
CURA-2393
2016-09-19 11:29:57 +02:00
Jaime van Kessel
d0a2b07587 Re-scan no longer forces a re-connect
CURA-2086
2016-08-11 10:45:01 +02:00
fieldOfView
7f83c22f74 Add "refresh" button to list of network printers
CURA-2035
2016-08-09 15:18:57 +02:00
fieldOfView
bd6e36f487 Add documentation
CURA-2035
2016-08-09 13:54:13 +02:00
fieldOfView
a649bdcb32 Speed up Bonjour discovery and make it slightly more robust
CURA-2035
2016-08-09 13:49:47 +02:00
fieldOfView
a0535a7aaf Add some logging to debug discovery issues
CURA-2035
2016-08-09 11:22:26 +02:00
fieldOfView
10be9e6674 Fix an warning when a printer has a timeout before it has been fully discovered
CURA-1851
2016-08-03 17:04:50 +02:00
fieldOfView
b08bdb206b Added logging for bonjour discovery/undiscovery
CURA-1851
2016-07-28 18:48:15 +02:00
fieldOfView
136755758e Implement ServiceStateChange.Removed (bonjour undiscovery)
Contributes to CURA-1851
2016-07-27 16:41:06 +02:00
Jaime van Kessel
bc50f0fa7c Only close connection if it's open when re-checking connections 2016-06-28 15:00:35 +02:00
Jaime van Kessel
76dfb5e718 Renamed generic key to um_network_key
CURA-49
2016-06-28 11:48:54 +02:00
Jaime van Kessel
a61ac82433 Linking a key to a printer now re-checks connection
CURA-336
2016-06-23 16:20:20 +02:00
Jaime van Kessel
9a4fc0345c All found devices are now listed in the discover action
CURA-336
2016-06-23 14:17:50 +02:00
Jaime van Kessel
f199d490bb Action now has a list of found UM3 keys
CURA-336
2016-06-23 14:04:50 +02:00
Jaime van Kessel
7d258485c8 Small fixes so switching printers correctly connects / disconnects output devices
CURA-1036
2016-06-15 14:17:59 +02:00
Jaime van Kessel
486fc7f176 When no globalcontainer is set, no check to connect is performed
CURA-49
2016-06-14 09:46:01 +02:00
Jaime van Kessel
bd413b9a2b Added signalemitter
CURA-49
2016-06-14 09:42:53 +02:00
Jaime van Kessel
025bdba516 Changes to make the network plugin play well with setting_rework
CURA-49
2016-06-13 13:34:22 +02:00
Arjen Hiemstra
65f329623f Update plugin to API version 3
Contributes to CURA-49
2016-05-30 15:38:01 +02:00
fieldOfView
2345289a4e Fix an error when NetworkPrinterOutputDevicePlugin.addPrinter is called before there is an Active Machine Instance
CURA-49
2016-05-12 16:43:35 +02:00
Jaime van Kessel
e073860389 Devices are now correctly removed
CURA-49
2016-04-25 15:21:44 +02:00
Jaime van Kessel
8b764c7585 Code cleanup & documentation
CURA-49
2016-04-25 11:39:31 +02:00
Jaime van Kessel
41a07c000d Added extra status catching for when active machine instance is None
CURA-49
2016-04-25 10:24:15 +02:00
Jaime van Kessel
bc8f8473e5 Name refactor
CURA-49
2016-04-25 10:22:06 +02:00
Jaime van Kessel
404ea89ff7 Connection now correctly uses connection state
CURA-49
2016-04-19 10:51:24 +02:00
Jaime van Kessel
2a90c76cb8 Renamed connection to printer
CURA-49
2016-04-19 09:59:54 +02:00
Jaime van Kessel
f488d8eb28 Zero conf browser now uses stored zeroconf obj
CURA-49
2016-04-19 09:51:32 +02:00
Jaime van Kessel
0ad1c1a3a7 Renamed connections to printers
CURA-49
2016-04-19 09:48:21 +02:00
Jaime van Kessel
d621162a9b Codestyle 2016-04-18 16:36:52 +02:00
Jaime van Kessel
4817c05a52 Renamed plugin 2016-04-18 16:32:02 +02:00
Renamed from WifiOutputDevicePlugin.py (Browse further)