Code Monkey home page Code Monkey logo

octoprint-printjobhistory's People

Contributors

blalor avatar dojohnso avatar hvraven avatar ikopytko avatar manuelmclure avatar ollisgit avatar tduehr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

octoprint-printjobhistory's Issues

Camera Snapshot after print completes are upside down

I believe this issue was reported in the previous Fork for PrintJobHistory where the camera images would appear upside down. I have my camera settings in OctoPrint to be 180deg rotated as my camera is inverted. The image appears okay when I'm monitoring my prints, but PrintJobHistory is not using that 180deg rotation when it captures the image and saves it to the history file.

Minor spelling issue in dialog?

image

Think it should say "Spool Vendor"

P.S.
(actually, Vendor is British English, Vender is Am. English).
Sorry for the nit-pick, I write code for a living and these things nag me too. :-)

Migrate from PrintHistory ๐Ÿ˜„

I wanted to migrate from OctoPrint-PrintHistory to this plugin that seems to offer more features. I wrote a quick script to convert the exported CSV data from PrintHistory in a format compatible with PrintJobHistory. Tought I'd share it here, it may help somebody.

import csv
from datetime import datetime

input_file = '/path/to/input/file.csv'
output_file = '/path/to/output/file.csv'

# Mapping of column names from the input format to the output format
column_mapping = {
    'File name': 'File Name',
    'Timestamp': 'Start Datetime [dd.mm.yyyy hh:mm]',
    'Success': 'Print result [success canceled failed]',
    'Print time': 'Duration',
    'Spool': 'Spool Name',
    'Filament length': 'Used Length [mm]',
    'Filament volume': 'Used Weight [g]',
    'User': 'User'
}

# Function to convert the timestamp format
def convert_timestamp(timestamp):
    return datetime.strptime(timestamp, '%Y-%m-%d %H:%M:%S').strftime('%d.%m.%Y %H:%M')

# Function to convert the success status
def convert_success(success):
    return 'success' if success == '1' else 'failed'

# Function to convert the duration format
def convert_duration(duration):
    hours, minutes, seconds = map(int, duration.split(':'))
    return f'{hours}h{minutes}m{seconds}s'

# Read the input file and convert the data
with open(input_file, 'r') as file:
    reader = csv.DictReader(file)
    rows = []
    for row in reader:
        converted_row = {}
        for input_column, output_column in column_mapping.items():
            if input_column == 'Timestamp':
                converted_row[output_column] = convert_timestamp(row[input_column])
            elif input_column == 'Success':
                converted_row[output_column] = convert_success(row[input_column])
            elif input_column == 'Print time':
                converted_row[output_column] = convert_duration(row[input_column])
            else:
                converted_row[output_column] = row[input_column]
        rows.append(converted_row)

# Write the converted data to the output file
with open(output_file, 'w', newline='') as file:
    writer = csv.DictWriter(file, fieldnames=column_mapping.values())
    writer.writeheader()
    writer.writerows(rows)

Please add a timeout for the "print finished" popup

Hi,

I have a few multi-day prints going on. I'd like to be able to have octopi shut down itself, but at the same time, don't want to lose the information in the "print finished" popup.

Could this be automatically saved, perhaps selectable by an option?

Regards,
Hakan

Can't activate Spool Manager (version 1.7.0)

per @jjnether OllisGit#217

When trying to select filament tracking, the option for spool manager that I have installed is greyed out (see below). I even get > > notifications that I have the option of activating something for tracking filament.

image

Spool Manager version 1.7.0
Print Job History version 1.17.0

Any help would be appreciated!

Printer wont connect after PrintJobHistory 1.17.1

Printer (Creality CR10S Pro, original firmware) and Octprint worked yesterday. Upgraded PrintJobHistory 1.17.1 this morning. Now, Octoprint refuses to connect to printer, gives 'Failed to enable Bed Leveling' error. I cycle power, relevel bed & reset Z offset. Octoprint still refuses. After disabling Firmware Check and PrintJobHistory, and restart Octorprint, it still won't connect. I'm back to printing off SD card. Maybe this is a coincidence, I don't know, but after 3 years on Octoprint, no longer works.

Prefill Filament from Last Print

Heyhey,

Great plugin!
Is there any option or would it be possible to add a feature to prefill the form fields for entering the filament by copying the data from the previous print?
Because out of any given spool, I get dozens of prints and I'm always typing in the same thing many, many times.

Thanks

Add drop down with past values to dialog

For Spool, Vendor, and Materials, would it be possible to add a drop-down to show past entries? And also allowing for a new entry?

For me, I use like 4-5 vendors and always retype (or mistype) the same thing.

BTW, I don't see a need to sync the controls, such as selecting a vendor and having only spools from that vendor in the spools list.

CSV Export not working

Upon clicking the CSV Export button, the webpage indicates that the link is loading but perpetually keeps buffering. The issue occurred in OctoPrint version 1.10.1. While CSV Export legacy functions, user column information is missing from the CSV in this mode.

Nozzle temperature in status of completed job incorrect

per @morris2009 OllisGit#222

Hi,
In my setup, somehow in the status of completed jobs, it always says 160 degrees for nozzle temperature.
This is probably resulting from the start Gcode where the nozzle is heating up to a fixed temperature of 160, and the bed to printtemp, to do the bedlevel.
After bedleveleling has finished it will heat-up to print temp and start printing.

Is there a way to have printjobhistory ignore the first temperature setting, and display the correct nozzle temp with which the object was printed?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.