blankhaus / klipper-filter_monitor

Air filter runtime and expiry monitoring plugin for Klipper
GNU General Public License v3.0
27 stars 1 forks source link

Instructions unclear on where to put config #1

Closed mokshmridul closed 2 months ago

mokshmridul commented 2 months ago

Hi,

I have been able to install the plugin, however, putting

[filter_monitor bed_filter]
fan: "fan_generic bed_fans"

or

[filter_monitor bed_filter]
fan: 'fan_generic bed_fans' # e.g fan_generic bed_filter, heater_generic heated_chamber, etc
max_runtime_hours: 50 # Defaults to 50 hours
max_days: 30 # Defaults to 30 days
interval: 30 # Defaults to 30 seconds
expiry_gcode: # Executed when filter meets threshold condition
path: ~/printer_data/config/plugins/filter_monitor # Folder where filter data is stored

in the `printer.cfg' causes the following errors in mainsail / klipper:

image

Note: My nevermore has the following config in printer.cfg

[fan_generic Nevermore]
# Link: https://github.com/top-gun/Nevermore-Klipper
pin: PB7
mut3xx commented 2 months ago

No worries!

Just set your "fan" parameter to "fan_generic Nevermore" like so:

[filter_monitor bed_filter]
fan: "fan_generic Nevermore"

Let me know if that works for you!

mokshmridul commented 2 months ago

Gave that a shot, and still facing the same error message.

mut3xx commented 2 months ago

Would you be ok sharing your printer.cfg with me?

mokshmridul commented 2 months ago

Sure, should i share it here? or somewhere else?

mut3xx commented 2 months ago

Here is fine with me if you're comfortable with it.

mokshmridul commented 2 months ago

Here is the file. Ive called it printer.txt, because github is not letting me upload .cfg files. printer.txt

luco85 commented 2 months ago

Same issue for me and same setup with nevermore fan as generic

mut3xx commented 2 months ago

The quotes need to be omitted from the fan config parameter. I'll update the docs.

Set your config as follows:

[filter_monitor bed_filter]
fan: fan_generic Nevermore

Let me know if that works for the both of you!

mokshmridul commented 2 months ago

Hey, just tried this as well, and its still not working. Same error.

mokshmridul commented 2 months ago

New error though: image

mut3xx commented 2 months ago

Can you please post your relevant config section for your nevermore and the plugin here? Have you also restarted your firmware?

I was able to replicate using your exact config and resolved using my suggestions above.

mut3xx commented 2 months ago

The default data path is ~/printer_data/config/plugins/filter_monitor or you can specify another. However, you will need to make sure that folder exists as per the error message.

mokshmridul commented 2 months ago

Got it working after correcting the path: ~/printer_data/config/filter_monitor and making a folder called filter_monitor. Closing this issue.

Thanks for the quick help.