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:
- Go to https://config.qmk.fm and create a keymap for your keyboard
- Download the .json file and upload it on this app
- Open the appropriate
keymap.c
file for the desired keyboard you are working on and copy-paste over the formated keymap code - Add any other additional features you desire to the keymap.c file
The app is hosted for free online, but you can also run the app locally on your computer by following these steps:
- Install R
- Run this code in R to install the shiny library:
install.packages("shiny")
- Run this code in R to launch the app:
library(shiny)
runGitHub('jhelvy/qmkJsonConverter')
The underlying R code that makes this app work can also be directly used in R. To run it, follow these steps:
- Fork or download all the files in this repo.
- Place the QMK keyboard files you are working with in the
keyboards
folder (e.g.keyboards/lily58/jhelvy
). - Go to https://config.qmk.fm and create a keymap for your keyboard
- Download the .json file and put in your keymap folder (e.g.
keyboards/lily58/jhelvy
) - Open the
qmkJsonConverter.Rproj
project and open theconvert.R
file (you'll need to have R and RStudio installed). - Open the
convert.R
script and define thekeyboardName
,jsonFileName
, andfolderName
- Run the whole
convert.R
script - 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
- Open the appropriate
keymap.c
file for the desired keyboard and copy-paste over the formatted keymap code stored in the .txt file - Add any other additional features you desire to the keymap.c file