There is a script on pi that creates the content of the bolt menu. You can extend it to contain more lines. E.g. add content of a weight file that you update in an other job from time to time. So also I can not say how to write a weight function in pi this is how you could get it on display. Description of the script:
Description for $database/scripts/hardware_info rsp. hardware_info.bat/.exe
Return format is a tab separated List of data to return:1. Name shown2. Msg type: 0 = text, 1 = int value, 2 = 1 digit info, 3 = 2 digit info, 10 = splitter, 11 = Block Headline3. unit4. Value/Text5. Urgency: 0 = hidden, 1 = message, 2 = warning, 3 = error6. Icon7. URL for detailed description or empty
List of icons:0: None1: Bolt2: Temperature3: exclamation-triangle4: Battery5: Bug6: Plug7: Usb logo8: Camera9: Tasks10: Bell11: Bluetooth12: Square13: Checked Square14: HDD15: Hourglass16: wifi17: Microchip18: Clock