needed:scripts that generate the values of hotspot variables

where can i find the scripts that generate the values of hotspot variables such as “$(bytes-in)” , “$(bytes-out)” , “$(uptime)” ???
i want to know where are it so i can modify its work as i want

i need that necessary, anyone help me please !!