• Recent
    • Tags
    • Popular
    • Register
    • Login
    1. Home
    2. StephenVDK
    3. Posts

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website
    S
    • Profile
    • Following 0
    • Followers 0
    • Topics 10
    • Posts 30
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by StephenVDK

    • Editing setPointValue.html

      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
      S
      StephenVDK
    • RE: ma-set-point-value display options

      Set a numeric point and to display it rendered.

      posted in Dashboard Designer & Custom AngularJS Pages
      S
      StephenVDK
    • ma-set-point-value display options

      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
      S
      StephenVDK
    • RE: Weather forecast

      Ya that worked,
      Thank you

      posted in Mango General
      S
      StephenVDK
    • Weather forecast

      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 General
      S
      StephenVDK
    • RE: Setting "from" and "to" to only last 7 days without range picker

      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
      S
      StephenVDK
    • RE: Setting "from" and "to" to only last 7 days without range picker

      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
      S
      StephenVDK
    • RE: Setting "from" and "to" to only last 7 days without range picker

      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
      S
      StephenVDK
    • RE: Setting "from" and "to" to only last 7 days without range picker

      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
      S
      StephenVDK
    • RE: Setting "from" and "to" to only last 7 days without range picker

      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
      S
      StephenVDK
    • RE: Setting "from" and "to" to only last 7 days without range picker

      Great that seems to have worked, Thank you.

      posted in Dashboard Designer & Custom AngularJS Pages
      S
      StephenVDK
    • RE: Setting "from" and "to" to only last 7 days without range picker

      I have, but I'm still unsure of options I have for from="" and to="" without using date picker.

      posted in Dashboard Designer & Custom AngularJS Pages
      S
      StephenVDK
    • Setting "from" and "to" to only last 7 days without range picker

      Hello all,
      I have a daily sum of some data, and I want to display the last 7 days of it on a bar graph. Is there any documentation for other values that can go into the from and to rather than just a range picker?

      <ma-point-values point="myPoint3" values="point3Values" rollup="SUM" rollup-interval="1 DAYS" from="?" to="?">
      </ma-point-values>

      On other graphs I have used ' latest="7" ' to show the last 7 days, but those were calculated daily in mango. When used in the line above, it doesn't seem to use the rollup. Any ideas?

      Thanks,
      Stephen

      posted in Dashboard Designer & Custom AngularJS Pages
      S
      StephenVDK
    • RE: reseting a live count at a certain time

      One of the data points is always negative, so the + is what I wanted.

      I don't see where the restart of the day comes in, but I think this might work. I'll have to check the data for a while first.
      Thank you,
      Stephen

      posted in Scripting general Discussion
      S
      StephenVDK
    • reseting a live count at a certain time

      Hello all,
      I'm trying to have a live updating total of a difference between 2 points. The tough part is resetting the total at a certain time, say midnight.
      So, for example, the count will increase all day and at midnight, reset to 0 so it can count up again for the next day.
      I know there's ways to sum past values and display it after the fact, but I need a live count.
      This code doesn't work but the logic is what I want:

      if (delta.HOUR == 6) {delta = 0;
      }
      else{ delta += p3118.value + p3117.value;
      }
      return delta;

      Thank you,
      Stephen

      posted in Scripting general Discussion
      S
      StephenVDK
    • RE: app.js changes not updating

      That was the issue and I have found the right path now.

      posted in User help
      S
      StephenVDK
    • RE: app.js changes not updating

      I think I've found the issue, in the adminTemplate example, in index.html, there is a line:
      <script>require(['dashboards/adminTemplate/app']);</script>
      So it's not loading the new app.js.
      I've followed the example given and put a renamed copy of the adminTemplate in the overrides folder. What would be the new file path then in overrides? I've tried different extensions I think it should be but it says it can't find that file.

      posted in User help
      S
      StephenVDK
    • app.js changes not updating

      Hello all,

      I'm trying to make a custom dashboard but I'm having issues changing the menu. I've been able to update the html files, but when I make changes in app.js, the menu doesn't update. Anyone run into this issue or am I missing a step?

      Thanks

      posted in User help
      S
      StephenVDK
    • RE: Weather Forecast

      Well the data source is an HTTP receiver, the URL is http://weather.yahooapis.com/forecastrss?w=23401819&u=c.
      The data points I do have for forecast is the daily high and low, the value RegEx for the daily high is yweather:forecast.?high="(\d.?\d*).
      The issue is getting the high and low for the next day, which is apart of the api, but I can't figure out how to pull out that data.

      Thanks

      posted in User help
      S
      StephenVDK
    • Weather Forecast

      Hello Everyone,

      I've been trying to get future high and low temperature forecasts into mango. I can get the daily high and low and everything in between as data points, but not for tomorrow. Any idea's?

      Thanks

      posted in User help
      S
      StephenVDK