Arksine
db0eb8f22b
extract_metadata: remove base64 data from metadata
...
The previously deprecated "data" field has now been removed. The "size" field now reports the size of the png. Clients may use the "relative_path" field to retrieve thumbnail png files.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-05-18 19:12:54 -04:00
Arksine
eaf35ded0c
extract_metadata: add support for ufp file extraction
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-05-18 19:12:54 -04:00
Arksine
ecbf663b18
file_manager: make the thumbs directory hidden
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-05-18 19:12:54 -04:00
Arksine
52f08eda08
extract_metdata: fix whitespace errors
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-05-09 08:17:24 -04:00
th33xitus
4d69a1f1c6
extract_metadata: parse filament_total and filament_total_weight for Slic3r
...
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
2021-04-17 06:06:53 -04:00
th33xitus
f203567381
extract_metadata: add Cura filament weight parsing
...
Adds a simple implementation for parsing filament weight from Cura g-code with help of a custom start-g-code comment.
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
2021-04-17 06:06:53 -04:00
th33xitus
0d601073a6
extract_metadata: add parsing of filament weight
...
This will parse the total used filament weight of g-code files created by Simplify3D, PrusaSlicer, SuperSlicer and ideaMaker
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
2021-04-17 06:06:53 -04:00
th33xitus
dae0f05378
extract_metadata: assign correct data parameter
...
This fix will now correctly parse the used filament from g-code generated by ideaMaker. The used filament is located in the footer of the g-code file.
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
2021-04-11 11:36:06 -04:00
Arksine
05b8c4eaef
extract_metadata: Copy thumbnails to the "thumbs" directory
...
Include a relative path the the thumbnail in the metadata. This commit deprecates base64 image transfers. A future commit will remove base64 data from the metadata, clients will be expected to retrieve thumbnails as a static file.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-03-14 14:33:24 -04:00
Arksine
9e41d9d84b
extract_metadata: write log output to stderr
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-02-27 12:55:18 -05:00
Arksine
dd81beab47
extract_metadata: add support for metadata thumbnail extraction in Cura
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-02-06 08:39:41 -05:00
Arksine
e2c325a724
extract_metadata: support first layer height expressed as a percentage
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-01-16 12:46:56 -05:00
Arksine
a1f2228473
extract_metadata: add shebang to script
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-01-16 12:38:54 -05:00
Arksine
222dda50bc
extract_metadata: parse "gcode_start_byte" and "gcode_end_byte"
...
Determine the byte location of the first and last gcode command (Either Mxxx or Gxxx commands). This is useful for determining the portion of the file that consists of actual commands.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-11-13 06:45:21 -05:00
Arksine
aac11a9fb8
extract_metadata: Add support for extracting Cura thumbnails
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-10-31 08:40:49 -04:00
Arksine
dfb1e19948
extract_metadata: store file "modified" time as unix time
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-10-21 17:53:45 -04:00
Arksine
8440a10b9e
extract_metadata: attempt to parse object height from PrusaSlicer comments
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-09-26 11:44:18 -04:00
Arksine
57fe71c800
extract_metadata: parse slicer version during identifcation
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-09-09 08:29:22 -04:00
Arksine
ec86c7bfda
extract_metadata: optimize regex
...
Use calls to re.search() in place of re.findall() where appropriate.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-09-08 17:29:08 -04:00
Arksine
ad8680be38
extract_metadata: Add support for IceSL slicer
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-09-08 12:49:42 -04:00
Arksine
805821c928
extract_metadata: extract first layer temperatures
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-09-08 11:33:10 -04:00
Arksine
e38f63254f
extract_metadata: extract basic metadata when slicer is unknown
...
It is possible to extract some metatdata, such as layer height, from bare gcode script.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-09-08 08:41:09 -04:00
Arksine
bcb7e17105
extract_metadata: Set slicer type to "Unknown" if not able to detect
...
Signed-off-by: Eric Callahan <akrsine.code@gmail.com>
2020-08-30 15:28:21 -04:00
Arksine
9613bb01de
extract_metadata: include "days" when calculating time for PrusaSlicer
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-28 14:26:08 -04:00
Arksine
b3f02a73a4
extract_metadata: Improve error reporting
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-11 14:28:59 -04:00
Arksine
d1c740b900
moonraker: add initial source
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-07-02 12:24:15 -04:00