Giter Site home page Giter Site logo

keygen's Introduction

keygen

Tools for generating physical keys.

Key in Inkscape Key in OpenSCAD

How to use it

usage: keygen.py [-h] [-b BITTING] [-u OUTLINE] [-w WARDING] [-o OUTPUT]
                 filename

Generates keys.

positional arguments:
  filename              OpenSCAD source file for the key

optional arguments:
  -h, --help            show this help message and exit
  -b BITTING, --bitting BITTING
                        Key bitting
  -u OUTLINE, --outline OUTLINE
                        Key blank outline
  -w WARDING, --warding WARDING
                        Key warding
  -o OUTPUT, --output OUTPUT
                        Output file (defaults to a.stl)

All remaining arguments are passed to OpenSCAD.

Examples

bin/keygen.py scad/kwikset.scad --bitting 25536 -o housekey.stl

bin/keygen.py scad/schlage_classic.scad -u 6-pin -w L -b 999999 -o all_section_bump_key.stl

bin/keygen.py scad/schlage_classic.scad -o key.png --render

Contributing

There is a very limited selection of keys right now, to help out, see the guide on how to model keys.

Music

There is no keygen music yet, in the meantime, try here

keygen's People

Contributors

ervanalb avatar

Stargazers

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

Watchers

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

keygen's Issues

Web site keygen.co inop

Won't let you set type, outline etc. was working fine last week, but not now. Tried on different computer, servers etc.

Key Request

This isn't an issue, but would love if you could add American Lock 1100 series key to the site. Love the site, thank you for the great resource!

double sided cuts?

I wanted to contribute to this project to try and have it make me a spare key for my electric bike. So I haven't found anything about if this can handle double sided keys, and how you were running the makefile. motorcycle_guide.pdf

I found this ilco key blank reference pdf but I haven't found a bitting depth specs chart to go with it. I hope to add the ones from this pdf I need (in a new branch) and then others can maybe use this pdf as well

Key Request

I noticed another key request below, and would like to make my own. This is not an issue. Can someone make a compatible model for the ASSA (Twin) V-10? I'm not great at this, and would like some help. Thanks in advance!

Web version does not work

I am trying to use the web version posted. However, even after I point the settings to the BIN directory to see the serve.py it does not do anything. None of the dropdowns are populated with anything and the Preview key is empty. Is there data purposefully missing from this particular project?

Example does not run

I can't run the example on macOS Mojave Version 10.14.5:

Alexs-MacBook-Pro-2124:keygen alex$ bin/keygen.py scad/kwikset.scad --bitting 25536 -o housekey.stl
Traceback (most recent call last):
  File "bin/keygen.py", line 36, in <module>
    r = subprocess.call([scad, args.filename, "-o", args.output] + opts + remaining)
  File "/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 323, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 775, in __init__
    restore_signals, start_new_session)
  File "/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 1522, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'openscad': 'openscad'

Many keyways fail to generate properly. Fix: set cutter_radius=0 in module key_blank.

I discovered this while trying to generate a Primus key, but it seems to affect most Schlage keyways and possibly others. The default value for cutter_radius apparently cuts the blade in half with many keyway designs. At any rate, the final key has essentially no blade at all. Changing the default for cutter_radius to 0, (disabling this cut), seems like a safer choice, or else each .scad file should set its own value (as far as I can see the Schlage .scad files do not, though maybe others do).

Car's Key

Buenas para las llaves de auto tipo canal ??gracias

Keys not rendering properly

All/most of the keys appear to be rendering missing the center of the key:

image

There is a warning about how it is trying to scale a 2d object with 0. So it is removing the object.

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.