Thank you for pointing me in the right direction. I am getting closer. I have managed to get simTime(secs):## to display at an XY coordinate. However, by enabling types to display on the gui, I have turned on ALL POI's, which is not desirable.
Is there a way to turn just the one poi programmatically, as well as change the color of the font? I also enabled maintain size on zoom which seems reasonable.
I also tried the parameter text first but was unable to display it, my sense is that potentially it may have been the same color as the background, I am guessing. Here is my code, I wanted to know if you had any suggestions on either the type or the parameter
of the poi approach.
TYPE: The all display rather than just the poi's I want, and color is default color for all POI types.
PARAMETER: Cannot get it to display although it is in the model data.
#add(self, poiID, x, y, color, poiType='', layer=0, imgFile='', width=1, height=1, angle=0)
#add(string, double, double, (byte, byte, byte, byte), string, integer, string, double, double, double)
traci.poi.add("simTime", 37000, 38500, colorBlack)
#setParameter(self, objID, param, value)
#setParameter(string, string, string) -> None
#traci.poi.setParameter(self, objID, param, value)("simTime", "simTimeKpi", "SimTime(secs):"+str(cstsecs))
while cstsecs < StartSimulationEndSeconds:
cstsecs = 1.0 * step
#traci.poi.setParameter("simTime", "simTimeKpi", "SimTime(secs):" + str(step))
#setType(self, poiID, poiType)
#setType(string, string) -> None
traci.poi.setType("simTime", "SimTime(secs):" + str(step))