Intro 2 - Binding Data From Mango and Creating a Dock Layout Dashboard
Thanks for the videos, they are very helpful.
On this Intro 2 video (around min. 5.50) you choose an interval picker; by default this option does not appear, only a dropdown menu.
So my question is, how to create an interval picker?
Thanks, keep on this path.
That interval picker is constructed in a drop down by entering this list in the data text field under the "Data" tab:
then binding the text or selected index to a dynamic property you create on the same drop down. Make it a num prop, bind whichever field and use a map for the values, mapping them to the corresponding numbers of seconds.
The other widget around that time is the date range picker, and I believe that does come preloaded in DGLux.
I'll give it a try now.
phildunlap, I don't understand this part...
"then binding the text or selected index to a dynamic property you create on the same drop down. Make it a num prop, bind whichever field and use a map for the values, mapping them to the corresponding numbers of seconds."
Binding the text or selected index from the drop down? to its own dynamic property? And the map for the values, there I'm lost.
Sorry I'm super newbie.
No worries. So under the "Data" tab there is an attribute called "selected index". This is a zero-indexed pointer to what in the drop down has been selected. Let's use that for our binding.
Double click the selected index to bring up the binding box. Now go to the Dynamic Properties and create a number property. Click and drag the binding box onto the field for that number property, go to the map tab in the binding menu and enable the map. Now, you need to go through all the indexes and map what output value you want them to have. So, in the example Joel was giving, the mapping is as follows (the number of seconds in any of those values):
Now that number property will have the corresponding value for whatever index is selected in the drop down, and you can bind it elsewhere.
I did exactly what you said, and it worked, thanks!
I found myself a little lost when the time of mapping got to me, because in the map chart it appeared a min, max, and map values and did not know what to do there, so based on what you said I tried this
min and max values are equal and correspond to the seconds (1, 60, 300, 600, 900, 1800, 3600) and map (0, 1, 2, 3, 4, 5, 6)
, and then bound the "Text (for binding)" from the drop down to the data interval of a chart line (like in the video)
Worked like a charm!
Any comment will be appreciated (you can correct me if I am wrong, please).
Thanks phildunlap, I'm a little closer now to understand what is going on with DGLux.
That's cool, I'm glad you found a solution that worked. As everyone who has made DGLux tutorial videos seems fond of saying, "There's several ways to do anything in DGLux"
If you're interested in learning more about DGLux, their wiki and support pages are worth checking out. The support page has many, many quality videos explaining various aspects and practices of DGLux.
What sort of system are you automating/displaying data for?
I want to use DGLux (DGBox actually) to control a small HVAC system with two 60 Ton Carrier air cooled water chillers and 61 AHUs and fan coils, with temco thermostats (I'm going to try this thermostat for the first time) they are very cheap.
And that is it, the only variable to control is the return air temperature, very simple.
Lets see how it goes