Git Product home page Git Product logo

qmkjsonconverter's Introduction

License: CC BY 4.0

Built with Shiny

Overview

This app converts the .json file exported from the QMK configurator into the code for the keymap.c file in your QMK settings. Here is the recommended workflow to follow:

  1. Go to https://config.qmk.fm and create a keymap for your keyboard
  2. Download the .json file and upload it on this app
  3. Open the appropriate keymap.c file for the desired keyboard you are working on and copy-paste over the formated keymap code
  4. Add any other additional features you desire to the keymap.c file

Run locally

The app is hosted for free online, but you can also run the app locally on your computer by following these steps:

  1. Install R
  2. Run this code in R to install the shiny library:
install.packages("shiny")
  1. Run this code in R to launch the app:
library(shiny)
runGitHub('jhelvy/qmkJsonConverter')

Manual conversion

The underlying R code that makes this app work can also be directly used in R. To run it, follow these steps:

  1. Fork or download all the files in this repo.
  2. Place the QMK keyboard files you are working with in the keyboards folder (e.g. keyboards/lily58/jhelvy).
  3. Go to https://config.qmk.fm and create a keymap for your keyboard
  4. Download the .json file and put in your keymap folder (e.g. keyboards/lily58/jhelvy)
  5. Open the qmkJsonConverter.Rproj project and open the convert.R file (you'll need to have R and RStudio installed).
  6. Open the convert.R script and define the keyboardName, jsonFileName, and folderName
  7. Run the whole convert.R script
  8. Open the resulting .txt file that has now been saved in the same folder where you put the original .json file you downloaded from the QMK configurator
  9. Open the appropriate keymap.c file for the desired keyboard and copy-paste over the formatted keymap code stored in the .txt file
  10. Add any other additional features you desire to the keymap.c file

qmkjsonconverter's People

Contributors

jhelvy avatar razzeee avatar

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.