hishizuka / pizero_bikecomputer

An open source bike computer based on Raspberry Pi Zero (W, WH, 2W) with GPS and ANT+. Including offline map and navigation.

Home Page:https://qiita.com/hishi/items/46619b271daaa9ad41b3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Change layout (question)

joeydejong112 opened this issue · comments

Hi, i wanted to change the gui (layout) from the first screen with the power graph, in which file can i find this?

Hi @joeydejong112 ,
Thank you for using my program.

Oh, The power graph items require direct program modification.

FIrst, bring PERFORMANCE_GRAPH to the top in layout.yaml.

PERFORMANCE_GRAPH:
  STATUS: true

MAIN:
  STATUS: true
  LAYOUT:
    Power: [0, 0, 1, 2]
    HR: [0, 2]
    Speed: [1, 0]
    Cad.: [1, 1]

Second, modify L9-L12 of modules/pyqt/graph/pyqt_value_graph.py to change it to the item of your choice.

        "Power": (0, 0),
        "HR": (0, 1),
        "W'bal(Norm)": (0, 2),
        "LapTime": (0, 3),