-
Notifications
You must be signed in to change notification settings - Fork 0
Archive Trac demo app module
madscatt edited this page Jun 20, 2026
·
1 revision
Legacy Trac archive page imported from
demo_app_module. Source: https://genapp.rocks/wiki/wiki/demo_app_module. Review age, links, and examples before treating as current.
Modifying the Module
- Edit {{{modules/penergy.json}}} file (with common editors like emacs, vi, nano, pico) and change one of the labels
- EXAMPLE: let's modify the label for the mass input:
{
"role" : "input"
,"id" : "m"
,"label" : "mass [kg]" <--- CHANGE from "mass [kg]" to "Mass in [kg]"
,"type" : "float"
,"required" : "true"
,"help" : "Enter the mass in kilograms"
}
- Note: It is recommended to run {{{check_json.pl}}} on the modified JSON file to make sure there are no syntax errors
check_json.pl penergy.json
- Regenerate application
- change to the base directory ({{{[path_to_the/demo]}}})
- run "genapp" (type {{{genapp}}} and press enter in the command line)
- take a look at the web-site
- Note: web browser will cache, so you may need to clear the cache
http://your-ip-address/demo
- Press "Simulate" on the left, then press "Energy" button. See the difference:
