TravisTX
d020dc81db
docs: document the protocol config option
...
Signed-off-by: Travis Collins <travistx@gmail.com>
2021-11-25 19:22:52 -05:00
Eric Callahan
f0831cbe3c
moonraker: prevent duplicate failed components
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-25 17:16:09 -05:00
Eric Callahan
2a0be55a8d
power: remove has_gpio check
...
This prevents loading the gpio module unless a gpio
device is configured. Resolves #283 .
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-25 17:16:09 -05:00
Eric Callahan
ccb86ea039
proc_stats: check for network updates every 10 seconds
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-25 08:18:24 -05:00
Eric Callahan
b33183f60f
machine: add support for parsing network info
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-25 07:58:25 -05:00
Eric Callahan
7a99f83396
server: refactor get_host_info method
...
Return a dict with the host name, server address, server port, and ssl port.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-25 05:43:49 -05:00
Pedro Lamas
16c8063900
docs: fixes minor typos
...
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
2021-11-24 11:33:23 -05:00
Eric Callahan
50fd8c9cc4
confighelper: track default values
...
This restores the behavior before commit 5b4de64
.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-23 13:55:24 -05:00
Eric Callahan
0a1367744f
confighelper: fix json parsing error for gpios
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-23 08:21:56 -05:00
Clifford Roche
4e8e4f7d14
zeroconf: add module for zeroconf discovery
...
Signed-off-by: Clifford Roche <clifford.roche@gmail.com>
2021-11-22 15:03:33 -05:00
Clifford Roche
44abc64533
machine: add serial number attribute for cpu
...
Adds the property "serial_number" to the process info structure.
Signed-off-by: Clifford Roche <clifford.roche@gmail.com>
2021-11-22 14:00:34 -05:00
Eric Callahan
97e27661d7
gpio: remove get_gpio_out_from_config method
...
The confighelper object now can setup gpios directly.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-21 06:26:09 -05:00
Eric Callahan
0e4e3383e3
update_manager: node update fix
...
Use "getboolean" rather than "get" to fetch this option.
SIgned-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-20 11:40:57 -05:00
Eric Callahan
fd6d318f0a
power: use extended confighelper methods
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-20 11:40:57 -05:00
Eric Callahan
69e2fb810f
update_mananger: use extended confighelper methods
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-20 11:40:57 -05:00
Eric Callahan
4572bd955e
paneldue: use extended confighelper methods
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-20 11:40:57 -05:00
Eric Callahan
9ebae5fd5a
mqtt: use extended confighelper methods
...
SIgned-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-20 11:40:57 -05:00
Eric Callahan
22807ee393
authorization: use extended confighelper methods
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-20 11:40:57 -05:00
Eric Callahan
845689fde1
confighelper: add getgpioout method
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-20 11:40:55 -05:00
Eric Callahan
0b25350ebc
confighelper: add support for getlist and getdict
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-20 11:40:07 -05:00
Eric Callahan
c0ae10bef6
confighelper: add has_option method
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-20 11:38:37 -05:00
Eric Callahan
5b4de64709
confighelper: add support for conditionals
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-20 11:38:34 -05:00
Pedro Lamas
d51d65ef30
mqtt: retry connection if failed to resolve hostname
...
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
2021-11-18 06:00:51 -05:00
Richard Mitchell
93299658fb
wled: fix index for wled
...
Comparing to mqtt I think it should be H3 to appear in the index
Signed-off-by: Richard Mitchell <richardjm+moonraker@gmail.com>
2021-11-18 05:17:36 -05:00
Eric Callahan
df1892801f
docs: refactor the "power" configuration docs
...
Add the "status_delay" option for Home Assistant and refactor to clarify what each option does for each device type.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-15 11:01:03 -05:00
Eric Callahan
1caaebe03f
power: implement workaround for Homeassistant devices
...
Some devices on the Home Assistant server do not update their internal state immediately after a request returns. Introduce a configurable delay to work around this issue.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-15 10:59:46 -05:00
Eric Callahan
c3400bd237
power: add timer support to the RFDevice
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-15 08:11:08 -05:00
Eric Callahan
18c6ff5a99
power: refactor gpio device to use gpio component
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-15 08:11:08 -05:00
Eric Callahan
83901b1896
gpio: helper component for managing system gpios
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-15 08:10:29 -05:00
Eric Callahan
dfa11f0f3e
utils: add method to load system level modules
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-15 06:41:38 -05:00
Eric Callahan
adb88fd8cf
authorization: validate user data on startup
...
This provides corrective action in the event that an
invalid user entry makes its way into the database.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-15 06:00:59 -05:00
Richard Mitchell
389e9c7e62
wled: support for remote neopixel control
...
Signed-off-by: Richard Mitchell <richardjm+moonraker@gmail.com>
2021-11-14 07:16:20 -05:00
FrYakaTKoP
79b1c071ad
docs: change repository links from meteyou to mainsail-crew
...
Signed-off-by: Christoph Frei <fryakatkop@gmail.com>
2021-11-14 06:47:17 -05:00
Pedro Lamas
bed239c90a
mqtt: implements last will and testament
...
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
2021-11-13 11:00:26 -05:00
Eric Callahan
ca27c2cf10
power: change gpiod line request based on version
...
For gpiod versions 1.3 or greater use the "default_val" keyword argument to set the default, otherwise use
"default_vals".
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-12 10:11:39 -05:00
Eric Callahan
9789b3d999
docs: update user changes
...
Note that core components should now be configured in their own config section.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-12 10:11:39 -05:00
Eric Callahan
a9e865eb54
docs: update documenation with API and configuration changes
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-12 10:11:39 -05:00
Eric Callahan
6d458125a1
power: fix scheduled firmware restarts
...
Determine if a firmware restart should be postponed by checking Klippy's state. This should correctly schedule the restart regardless of whether or not the device is bound to Klipper.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-12 10:11:39 -05:00
Eric Callahan
7f11214609
power: abort a scheduled firmware restart if klipper reports ready
...
This handles a specific scenario where a power device is bound to the Klipper service and is configured to perform a firmware restart after power on. In this case, we can detect if the firmware restart is required and abort it if necessary.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-12 10:11:39 -05:00
Eric Callahan
739af51904
power: add "on_when_upload_queued" option
...
When this option is set to "True", the device will power on after the file manager queues an upload for printing.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-12 10:11:39 -05:00
Eric Callahan
484c4aea59
eventloop: fix FlexCallback annotation
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-12 10:11:39 -05:00
Eric Callahan
ac23f00d1f
update_manager: remove initialized lock
...
Now that init occurs before the server starts there is no need to block requests until post initialization.
Signed-off-buy: Eric Callahan <arksine.code@gmail.com>
2021-11-12 10:11:39 -05:00
Eric Callahan
2d5914b358
moonraker: attempt to resolve "event loop closed" errors on restart
...
Occasionally a server restart will fail as the new loop instantiates as closed. This seems to be an issue with asyncio, attempt to work around by retyring to create a new loop.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-12 10:11:39 -05:00
Eric Callahan
c718e9d1c3
moonraker: don't use a set to load initial components
...
Previously a set was used to remove duplicate components, however this is unnecessary as the `load_component` method immediately returns dups. Using a list should preserve the load order based on the configuration, making it more predictable.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-12 10:11:39 -05:00
Eric Callahan
76731b673b
moonraker: refactor klipper initialization
...
The `send_event()` method now returns a future that can be awaited until all callbacks are complete. All events emitted during Klipper init are now awaited, and a Lock is used to prevent re-entry. This resolves potential timing issues with commands sent during the init sequence.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-12 10:11:39 -05:00
Eric Callahan
c2bf9bf551
event_loop: add create_future method
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-12 10:11:39 -05:00
Eric Callahan
9854fd36cf
power: use component_init for post initialization
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-12 10:11:39 -05:00
Eric Callahan
e6bedd1ffe
paneldue: use component_init for post initialization
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-12 10:11:39 -05:00
Eric Callahan
799e763050
mqtt: use component_init for post initalization
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-12 10:11:39 -05:00
Eric Callahan
fd59ace4f8
machine: use component_init for post initialization
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-12 10:11:39 -05:00