File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -428,7 +428,7 @@ def get_update_information(self):
428
428
__plugin_name__ = "SimplyPrint Cloud"
429
429
__plugin_pythoncompat__ = ">=3.7,<4"
430
430
# Remember to bump the version in setup.py as well
431
- __plugin_version__ = "4.1.0rc1 "
431
+ __plugin_version__ = "4.1.0rc2 "
432
432
433
433
434
434
def __plugin_load__ ():
Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ def get_system_info(self) -> Dict[str, Any]:
58
58
info ["core_count" ] = os .cpu_count ()
59
59
info ["total_memory" ] = psutil .virtual_memory ().total
60
60
info .update (self .get_network_info ())
61
+ info ["mac" ] = self .get_mac_address ()
61
62
62
63
port = self ._get_public_port ()
63
64
@@ -69,6 +70,12 @@ def get_system_info(self) -> Dict[str, Any]:
69
70
def _get_python_version (self ) -> str :
70
71
return "." .join (str (part ) for part in sys .version_info [:3 ])
71
72
73
+ def get_mac_address ():
74
+ mac_int = uuid .getnode ()
75
+ mac_hex = "{:012x}" .format (mac_int )
76
+ mac_address = ":" .join (mac_hex [i :i + 2 ] for i in range (0 , 12 , 2 )).upper ()
77
+ return mac_address
78
+
72
79
def _get_routed_ip (self ) -> Optional [str ]:
73
80
src_ip = None
74
81
s = socket .socket (socket .AF_INET , socket .SOCK_DGRAM )
Original file line number Diff line number Diff line change 14
14
15
15
# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
16
16
# Remember to bump the version in octoprint_simplyprint/__init__.py as well
17
- plugin_version = "4.1.0rc1 "
17
+ plugin_version = "4.1.0rc2 "
18
18
19
19
# The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin
20
20
# module
You can’t perform that action at this time.
0 commit comments