Comments (8)
or just the possibility to run a shell script #61
from moonraker.
Not to go resurrecting a dead issue, but on the basis of the title, I think this can be closed. I'm controlling an ESPHome power plug using the generic HTTP config, e.g.
[power SV06]
locked_while_printing: True
restart_klipper_when_powered: True
type: http
on_url: http://x.x.x.x/switch/athom_smart_plug_v2/turn_on
off_url: http://x.x.x.x/switch/athom_smart_plug_v2/turn_off
status_url: http://x.x.x.x/switch/athom_smart_plug_v2
request_template:
{% if command in ["on", "off"] %}
{% do http_request.set_method("POST") %}
{% do http_request.set_body({}) %}
{% endif %}
{% do http_request.send() %}
response_template:
{% if command in ["on", "off"] %}
{% do async_sleep(1.0) %}
{% do http_request.set_method("GET") %}
{% do http_request.set_body(None) %}
{% do http_request.set_url(urls.status) %}
{% set response = http_request.send() %}
{% do response.raise_for_status() %}
{% endif %}
{% set resp = http_request.last_response().json() %}
{resp["state"]}
from moonraker.
or may be add simple pull http url e.g. wget or curl as [power printer]
from moonraker.
As mentioned in issue 61, simple url's won't work with the power plugin, as it must be able to query the state of the device. The tasmota device was contributed by a user. Someone who owns a "esphome" device is free to contribute an implementation.
There are major security implications with running configurable scripts, so it is unlikely that I add that ability.
from moonraker.
As mentioned in issue 61, simple url's won't work with the power plugin, as it must be able to query the state of the device. The tasmota device was contributed by a user. Someone who owns a "esphome" device is free to contribute an implementation.
There are major security implications with running configurable scripts, so it is unlikely that I add that ability.
ok, im migrate to tasmota, but its not work, with any config i see that
Fluidd warnings found.
Moonraker has failed plugins, please check your logs, update your configuration and restart moonraker.
power
Moonraker plugin configuration can be found here.
its my config
[power printer]
type: tasmota
address: 10.0.0.100
output_id: 1
i try anything config but hope is die)
and if i go to
http://10.0.0.100/cm?user=admin&password=&cmnd=Power1%20off printer is off. tasmota work
from moonraker.
Moonraker.log should tell you what the error is. I suspect it is because device query failed, but I won't be able to tell without the log file. If that is the case, you need to make sure that SetOption26
is set in Tasmota.
from moonraker.
i comment 13 line at power.py #import gpiod
and all works. its trouble as #75
then i try ./install-moonraker.sh -r
uncomment 13 line at power.py import gpiod
and all ok. but...
i can turn off printer from web fluiid macros button, but cant POWER ON from macros button.
!! Lost communication with MCU 'mcu'
macros for power on not work with power_off mcu.
But all work from top/right popup menu.
Thanks ...
from moonraker.
You can't power on with a GCode Macro as Klipper can only execute RESTART and FIRMWARE_RESTART when it is in the shutdown state. You must use the API to power on.
from moonraker.
Related Issues (20)
- Apprise update. HOT 2
- Add option to power off a power device when operating system shutdown. HOT 2
- Non working links for ids.
- Power device: add option to run custom gcode on on/off action
- [database.py:insert_item()] - Error inserting key 'instance_id' in namespace 'moonraker' HOT 5
- Login fails after upgrade HOT 9
- Missing Documentation for altering the instance_uuid HOT 3
- Add filament I’d to print history
- Mainsail cannot connect to Moonraker (connection Failed) HOT 1
- power type `uhubctl` without specifying port HOT 1
- PAM authentication support HOT 1
- Queue should be paused when non-queued file is finished printing HOT 5
- After upgrade moonraker is broken - Unable to load component (template). Caused by jinja HOT 1
- [Spoolman] Support fetching filament information from spoolman
- Print history has inaccurate “print duration” and “used filament” when using T1 HOT 2
- Update Manager Enhancement
- Repo Corrupt? HOT 1
- Allow setting MQTT ClientId in moonraker.conf HOT 1
- APC UPS - Status monitoring HOT 2
- AttributeError: module 'moonraker.components.job_queue' has no attribute 'load_component' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moonraker.