droans / klipper_extras Goto Github PK
View Code? Open in Web Editor NEWCustom Extras for Klipper
License: GNU General Public License v3.0
Custom Extras for Klipper
License: GNU General Public License v3.0
Long term plan. Allow user to define apps which can be called in the console or by GCode files. Apps would inherit a specialized class allowing easier access to various printer objects and functions.
This is subject to change for any reason, such as changes to Klipper, bugs discovered, new features suggested, or a ban on caffeinated beverages.
~/printer_data/functions
and ~/printer_data/filters
directoriesSupport common built-in Python functions by default instead of requiring user to define
Hello, I generally try to avoid creating an issue report until I've exhausted all other avenues, but there aren't many for this plugin quite yet!
I've added an extended macro to my config to check the time of the day and, if it is a reasonable time of day, the printer will play a jingle for me to notify that a print is done. If it's an unholy hour of the night, the printer just shut itself down, instead. The problem is, the moment I issue the macro command, the terminal just shows that there was an internal error and will not give me any further context.
Here is the section for the macro:
[extended_macro FINISHED]
gcode:
(% set hour = datetime.datetime.now().hour %}
{% if hour < 23 and hour > 7 %}
{ ['PR9000', 'XP9001', 'SMI3', 'SMB1'] | random }
{% else %}
M112
{% endif %}
Clean up the Frankenstein code and remove excess leftover code from gcode_macro.py
Allow user to define folder(s) and/or file(s) to find Python functions.
Allow plugins to be created. Plugins would have their own definition in the config yaml. They would act similarly to functions but would receive the configuration from the file.
Example:
plugins:
hass:
plugin: homeassistant
config:
url: https://my.hass.com
api: XXXXXXXX
port: 443
ssl: true
Object would be generated at startup and added to the environment for users.
To be determined if params can only be added via a function call or if we can allow them to be passed through the console.
Allow Jinja templates to render a value which can be interpreted by the caller without losing support for running GCode inside the function
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.