MCPcopy Create free account
hub / github.com/NyarchLinux/DesktopPuppet / set_motion

Method set_motion

src/gui_controller.py:66–77  ·  view source on GitHub ↗

Set a motion on the puppet.

(self, motion)

Source from the content-addressed store, hash-verified

64 except requests.RequestException:
65 return {}
66
67 def set_motion(self, motion):
68 """Set a motion on the puppet."""
69 try:
70 response = requests.post(
71 f"{self.base_url}/motion",
72 json={"motion": motion},
73 timeout=2
74 )
75 response.raise_for_status()
76 return True
77 except requests.RequestException:
78 return False
79
80 def set_settings(self, settings):

Callers 2

_on_motion_selectedMethod · 0.45
do_POSTMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected