• S
    StephenVDK

    Re: ma-set-point-value display options

    So I'm trying to change setPointValue.html with something simple like changing what the button say's (instead of set), but I can't see where it declares what the button's text says. It doesn't seem to say it in the html or js file that I can tell.

    Thanks,
    Stephen

    posted in Dashboard Designer & Custom AngularJS Pages read more
  • S
    StephenVDK

    Set a numeric point and to display it rendered.

    posted in Dashboard Designer & Custom AngularJS Pages read more
  • S
    StephenVDK

    Hello all,
    Is there any way to change the way ma-set-point-value displays the object? When using ma-point-value there are options for rendered and converted,

    thanks,
    Stephen

    posted in Dashboard Designer & Custom AngularJS Pages read more
  • S
    StephenVDK

    Hello all,
    I'm trying to use regular expressions to pull the weather forecast out of the yahoo weather api, link:
    https://query.yahooapis.com/v1/public/yql?q=select * from weather.forecast where woeid in (select woeid from geo.places(1) where text%3D"oakbank%2Cmb")&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys

    Using regex testers, I can pull out the proper data, the high for the next day, using:

    forecast.*?[.*?{.*?{.*?high.*?\"(\d+)
    

    however when it's put into mango, it gives this error:
    Illegal repetition near index 15 forecast.?[.?{.?{.?high.*?"(\d+) ^

    has anyone else been able to properly pull forecast weather or see an issue with my regex?

    Thanks,
    Stephen

    posted in Mango Automation read more
  • S
    StephenVDK

    Sorry but when you say full markup do you want the app.js file as well? I'm using the dashboard template and building off it.

    posted in Dashboard Designer & Custom AngularJS Pages read more
  • S
    StephenVDK

    Changing the time scale for the second point to use moment didn't change any of the issues.

    posted in Dashboard Designer & Custom AngularJS Pages read more
  • S
    StephenVDK

    Sorry, didn't know about that button, I'll also try and change the other time scale and see what happens. Thanks

    h3>Weekly Heat Transfer</h3>
    <div class="row hidden-xs"> 
      <div class="col-sm-12 text-center extraPadding chart-holder">
        <ma-now update-interval="1 HOURS" output="theTimeNow"></ma-now>
        <ma-get-point-value point-xid="DP_672608" point="myPoint3"></ma-get-point-value>
        <ma-point-values point="myPoint3" values="point3Values"
        from="theTimeNow | moment:'startOf':'day'|moment:'subtract':7:'days'"
        to="theTimeNow" rollup="SUM" rollup-interval="1 DAYS">
        </ma-point-values>
        <ma-get-point-value point-xid="DP_284166" point="myPoint7"></ma-get-point-value>
        <ma-point-values point="myPoint7" values="point7Values" latest="8">
        </ma-point-values>
        <ma-serial-chart style="height: 300px; width: 100%"
    
    	series-1-values="point3Values" 
    	series-1-point="myPoint3" 
    	series-1-color="purple"
    	series-1-type="column"
    	series-3-values="point7Values"  
    	series-3-point="myPoint7"  
    	series-3-axis="right" 
    	series-3-type="column" 
    	series-3-color="green" 
    	options="{
    			valueAxes:[
    				{title:'kJ', axisColor:'black', color:'black'},
    				{title:'Outside Temp (°C)', axisColor:'green', color:'green'}
    			]
    		}">
    	</ma-serial-chart>
      </div>
    </div>
    

    posted in Dashboard Designer & Custom AngularJS Pages read more
  • S
    StephenVDK

    Here's the code, I tried using some other examples that use 'moment' from the forum and the same issue arises, but anyway:

    <h3>Weekly Heat Transfer</h3>
    <div class="row hidden-xs">
    <div class="col-sm-12 text-center extraPadding chart-holder">
    <ma-now update-interval="1 HOURS" output="theTimeNow"></ma-now>
    <ma-get-point-value point-xid="DP_672608" point="myPoint3"></ma-get-point-value>
    <ma-point-values point="myPoint3" values="point3Values"
    from="theTimeNow | moment:'startOf':'day'|moment:'subtract':7:'days'"
    to="theTimeNow" rollup="SUM" rollup-interval="1 DAYS">
    </ma-point-values>
    <ma-get-point-value point-xid="DP_284166" point="myPoint7"></ma-get-point-value>
    <ma-point-values point="myPoint7" values="point7Values" latest="8">
    </ma-point-values>
    <ma-serial-chart style="height: 300px; width: 100%"

    	series-1-values="point3Values" 
    	series-1-point="myPoint3" 
    	series-1-color="purple"
    	series-1-type="column"
    	series-3-values="point7Values"  
    	series-3-point="myPoint7"  
    	series-3-axis="right" 
    	series-3-type="column" 
    	series-3-color="green" 
    	options="{
    			valueAxes:[
    				{title:'kJ', axisColor:'black', color:'black'},
    				{title:'Outside Temp (°C)', axisColor:'green', color:'green'}
    			]
    		}">
    	</ma-serial-chart>
    </div>
    

    </div>

    posted in Dashboard Designer & Custom AngularJS Pages read more
  • S
    StephenVDK

    I may have spoke too soon.
    The graph is displaying the information the way it should be, but it's causing issues with the rest of the dashboard. It's displaying itself on other tabs, and when I click back to it's tab, it brings other graphs to that one. The graphs code are on different html files.

    posted in Dashboard Designer & Custom AngularJS Pages read more