1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2026-03-28 18:06:37 +01:00

Moved to c++17 and espressif32 @ 6.9.0, fixed waypoint boatdata code

This commit is contained in:
2025-08-06 14:04:54 +02:00
parent 2d47702627
commit f823dadc6b
7 changed files with 1983 additions and 1995 deletions

View File

@@ -20,7 +20,7 @@ import getopt
import re
import json
__version__ = "0.2"
__version__ = "1.2"
def detect_pages(filename):
# returns a dictionary with page name and the number of gui fields
@@ -110,11 +110,10 @@ def create_json(device, no_of_pages, pagedata):
"description": "The display for field {}".format(number_to_text(field_no)),
"category": f"{device.upper()} Page {page_no}",
"capabilities": {device.lower(): "true"},
"condition": [
{f"page{page_no}type": page}
for page in pages
if pagedata[page] >= field_no
],
"condition": {
f"page{page_no}type": [page for page in pages if pagedata[page] >= field_no],
"visiblePages": [vp for vp in range(page_no, no_of_pages + 1)]
},
}
output.append(field_data)