Introduce placeholders for the regex capture groups.
This reduces the length of the original pattern and
makes it easy to change the pattern for a return value
if necessary.
This change modifies the float pattern to accept any
float or integer.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Correction of the regex (Replacing the = with one: and adding the filament index for the regex to work).
Signed-off-by: Emmanuel WALDNER emmanuel.waldner@gmail.com
Create a websocket endpoint that allows clients identified as
agents to register remote methods with Klipper.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
If the Klipper installation is not updatable (ie not a git repo)
abort reinstantion of the deployer.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Use the low level os.open() method to open the vcio device. This
resolves "unknown ioctl" spamming of the kernel log.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Improve the efficiency of "vcgencmd get_throttled" by directly requesting
the status from the user space driver using ioctl. This should reduce CPU
spikes that result from forking the current process.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
If the user creates or moves a folder that was is reserved
reserved correctly ignore or remove watches as appropriate.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Expose the UID assigned to webcams and allow clients to fetch, modify,
and delete items based on the UID. New additions must not specify a
UID.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Temperature Monitors may report null values as temperatures,
thus special handling is needed. This commit also reworks
temperature store updates to use the subscription cache
rather than perform its own caching of "last temps".
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Now that all subscriptions are cached it is no longer required for
the paneldue component to cache its own printer state.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This callback will only fire after a component has requested
a subscription, preventing early updates while the component
is waiting for the subscription request to complete. It is still
valid for components to register the "server:status_update"
event handler if this behavior is not a concern.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
A previous bug in the webcam module could have set boolean
values as integers. Make sure they are type correct when
reading webcams from the db.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
In Python a "bool" is a subclass of int. When introspecting
a webcam's attributes it is necessary to check for booleans
before integers.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Use Moonraker's environment variables when generating the
env file for service validation updates.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This allows Moonraker to report anomalies detected in an updater
that won't prevent an update. Front ends may decide to present
these to users in a more subtle fashion so they know the state of
the repo without being concerned of an issue.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Add a command line option that allows the installation to specify
the exact path to Moonraker's unix domain server socket. The
default location remains at:
<data_path>/comms/moonraker.sock
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
When the parent folder of a web client is a git repo note the specific
directory that contians a .git subdirectory.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>