With two graphs, and only one data readout (the one generously generated by the Ninja Kitty Wizard at the beginning), it's time to make another readout so that we know exactly what the second temperature is reading.
MDX has done this by giving us a Static Image, and overlaying a Text Label on top. I recreated this in the following steps:
1) Load your configuration, and go to the Graphical Layout screen again. Click the button New Static Image
2) Don't worry about all the boxes with "0" in them. Click the Blue button, and navigate to the only static image provided with MDX. This is in the static_images folder. By selecting this, Configurator will automatically retrieve the size of the image, and set the default size of the image on screen. You can make it bigger or smaller if you want to, but for now, take a note of its size; 355, 70
3) The position of the image can be anything you like, but to make it line up with the existing image, the values of 402, 119 are put in the Top Left Location fields. Tick the box in the Visible on Pages box.
4) Z-Order relates to the idea that images can be placed on top of eachother, like layers. The higher the number, the closer to the top. This can stay at 0 for now. Click the Green Tick.
5) To make the actual display, we need a Text Label. Click the New Text Label button.
6) The name of the button is to identify it in the Configurator menu. The Default Text is the words shown alongside our varying input data, so I typed Temperature 2. How imaginative. Bear in mind that MDX will display the data from the sensor IMMEDIATELY after this text, so it would help to put a colon and a space after whatever you type as your Default Text. Otherwise, it'll look a bit strange.
7) For the font, select Verdana, which is the one used on the other box. Give it the colour of white by double-clicking that black square and playing with the sliders, and set the size to 25 so that it matches the first box. Bear in mind that the colour of the entire Text Label is determined by the colour of your font, so if you don't change the colour here, then the Text Label will show up as an enormous black square in the Graphical Layout screen.
8) Then, just like the multi-image, we have to select what kind of input, and which one, and tick the box to make it visible on the page. We also need to specify the size of the Text Label - it would be silly to make it bigger than the static image underneath (unless you want it like that) so put in those same numbers from Step 2; 355, 70. Click the Green tick, Save the Graphical Layout and go back to the Configurator, save your config and test in MDX
COMMENT: It all worked extremely simply, but having snooped around the Static Images, the one I made had a Z-Order of "0", while the one made by the Ninja Kitty Wizard had a Z-Order of "0.9". I can't see the relevance of that just now.
PRAISE: Adding text readouts of sensor data is an absolute breeze.



LinkBack URL
About LinkBacks

Reply With Quote



Bookmarks