* Internal OctoPrint file hashes are calculated by file data. If you
slice same stl with same settings multiple times and save the result in
different named files, the files will have the same hash. The plugin
uses these hashes for file browsing. Now The plugin generates its own
See also: foosel/OctoPrint#1684
* When slicing with the bundled slicer, there seems to be something
wrong with file analysis of created gecode. No length filed for filament
usage is provided. Plugin can now handle this situation.
See also: foosel/OctoPrint#1685
This fixes the issue that there were no informations about filament
usage in metadata after slicing with cura plugin. Trying to call
profile.get_float("filament_diameter") ended in en exception with
message " 'module' object has no attribute 'get_float' ". So i defined
profile before using profile and now it works.
See issue #1685
Also inserted a check to determine if filament usage is > 0 to exclude
tools with no filament usage in metadata.
(cherry picked from commit c9b38bd)