mirror of
https://github.com/OpenEPaperLink/OpenEPaperLink.git
synced 2026-03-21 00:04:28 +01:00
[PR #363] [CLOSED] Preprocess *.json files to support conditional "compile" and comments. #503
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/OpenEPaperLink/OpenEPaperLink/pull/363
Author: @skiphansen
Created: 8/28/2024
Status: ❌ Closed
Base:
master← Head:oepl_pr_14📝 Commits (3)
2889c37Preprocess *.json files to support conditional "compile" and comments.33db596Remove local content from content_cards.json.6602e36Fix Current date and RSS feed ifdefs.📊 Changes
5 files changed (+89 additions, -15 deletions)
View changed files
📝
ESP32_AP-Flasher/.gitignore(+1 -0)📝
ESP32_AP-Flasher/platformio.ini(+37 -2)➕
ESP32_AP-Flasher/preprocess_json.py(+32 -0)📝
ESP32_AP-Flasher/src/content_cards.json(+19 -0)📝
ESP32_AP-Flasher/src/contentmanager.cpp(+0 -13)📄 Description
I'm using these changes locally and I would like the team's feedback if they should be merged into the main repo or not.
Goals:
Background:
I've developed some content such as tide level charts which are of limited interest. I'd like to make that content available as a compile time option, but I don't want to "spam" the content_cards.json file.
One thing I've found frustrating about .json files for years is the lack of support for comments. I find adding comments to entries like
"gridparam": [ 5, 17, 20, "calibrib16.vlw", "tahoma9.vlw", 14 ]helpful to avoid needing to find the corresponding code to figure out what the the numbers mean.
Summary of changes:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.