• Recent
    • Tags
    • Popular
    • Register
    • Login
    1. Home
    2. chrapchp

    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
    C
    • Profile
    • Following 0
    • Followers 0
    • Topics 18
    • Posts 66
    • Best 1
    • Controversial 0
    • Groups 0

    chrapchp

    @chrapchp

    1
    Reputation
    1.4k
    Profile views
    66
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    chrapchp Unfollow Follow

    Best posts made by chrapchp

    • Temporal observational data on collected data

      We want to set observations on hydroponic system. We have growing chambers and different sources of nutrients. Some of the data collected includes CO2, temps, humidity, EC, pH, etc. What we would like to do is add meta data. We tried via virtual data sources and question if there is a better way as adding a tag by chamber seems cumbersome.

      I was thinking of a JSON store. What makes it unique is the growing chamber + nutrient and the plant type.

      Here is a usage scenario
      At time t, add an observation e.g. for growing chamber X, nutrient tank Y, plant type Z, such as the characteristics of the plants, and other types of observations that could influence the growth. In the future, the data collected could be analyzed in the context of these observations.

      Is the JSON route appropriate?
      peter

      posted in User help
      C
      chrapchp

    Latest posts made by chrapchp

    • RE: H2 to mySQL Error

      The reason I jump on mySQL 8 is because someone said it worked. I'll try an older version.

      https://forum.mango-os.com/topic/4686/mysql-version/6?_=1614639710932

      posted in User help
      C
      chrapchp
    • H2 to mySQL Error

      I thought this should be a straightforward process. I installed Mango 3.77 on a headless ubuntu server 20.04 and mysql 8+. Moved the mango files and config to new env and worked fine under H2. Then configured env.properties to include mySQL and convert.

      I get this error. Duplicate column? Any ideas?

      INFO 2021-03-01T09:21:02,784 (com.serotonin.m2m2.Lifecycle.loadLic:670) - License file not found
      INFO 2021-03-01T09:21:02,870 (com.serotonin.m2m2.db.BasePooledProxy.initializeImpl:36) - Initializing pooled connection
      manager
      WARN 2021-03-01T09:21:05,381 (com.serotonin.m2m2.db.upgrade.DBUpgrade.checkUpgrade:98) - Upgrading 'core' from 1 to 2
      INFO 2021-03-01T09:21:05,383 (com.serotonin.m2m2.db.upgrade.DBUpgrade.createUpdateLogOutputStream:169) - Writing upgrad
      e log to /opt/mango/logs/com.serotonin.m2m2.db.upgrade.Upgrade1.log
      FATAL 2021-03-01T09:21:05,578 (com.serotonin.m2m2.db.AbstractDatabaseProxy.initialize:185) - Exception initializing data
      base proxy: org.springframework.jdbc.BadSqlGrammarException: StatementCallback; bad SQL grammar [alter table publishers
      add column rtdata longblob; ]; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Duplicate
      column name 'rtdata'
      com.serotonin.ShouldNeverHappenException: org.springframework.jdbc.BadSqlGrammarException: StatementCallback; bad SQL gr
      ammar [alter table publishers add column rtdata longblob; ]; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSy
      ntaxErrorException: Duplicate column name 'rtdata'
      at com.serotonin.m2m2.db.upgrade.DBUpgrade.checkUpgrade(DBUpgrade.java:104) ~[mango-3.7.7.jar:?]
      at com.serotonin.m2m2.db.upgrade.DBUpgrade.checkUpgrade(DBUpgrade.java:36) ~[mango-3.7.7.jar:?]
      at com.serotonin.m2m2.db.AbstractDatabaseProxy.initialize(AbstractDatabaseProxy.java:171) ~[mango-3.7.7.jar:?]
      at com.serotonin.m2m2.Lifecycle.databaseInitialize(Lifecycle.java:732) ~[ma-priv-3.7.7.jar:?]
      at com.serotonin.m2m2.Lifecycle.initialize(Lifecycle.java:285) ~[ma-priv-3.7.7.jar:?]
      at com.serotonin.m2m2.Main.main(Main.java:159) ~[ma-priv-3.7.7.jar:?]
      Caused by: org.springframework.jdbc.BadSqlGrammarException: StatementCallback; bad SQL grammar [alter table publishers a
      dd column rtdata longblob; ]; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Duplicate c
      olumn name 'rtdata'
      at org.springframework.jdbc.support.SQLExceptionSubclassTranslator.doTranslate(SQLExceptionSubclassTranslator.ja
      va:93) ~[spring-jdbc-5.1.7.RELEASE.jar:5.1.7.RELEASE]

      posted in User help
      C
      chrapchp
    • MQTT Can't connect

      Hello,
      I can test publish/subscribe via python but can't make the subscribe work on Mango. Attached is the data source config. What am I missing?

      ![alt text](![image url](![image url](mqtt.png image url)))

      ERROR 2021-02-01T21:09:38,258 (com.infiniteautomation.m2m2.mqtt.client.MqttClientDataSourceRT.connect:712) - ERROR initializing MQTT Client
      com.serotonin.ShouldNeverHappenException: @ "DISCONNECTING" don't know how to handle event: "CONNECT_ASYNC"
              at com.infiniteautomation.m2m2.mqtt.client.MqttClientDataSourceRT.handleBokerConnectionevent(MqttClientDataSourceRT.java:264) ~[?:?]
              at com.infiniteautomation.m2m2.mqtt.client.MqttClientDataSourceRT.connect(MqttClientDataSourceRT.java:710) ~[?:?]
              at com.infiniteautomation.m2m2.mqtt.client.MqttClientDataSourceRT.access$1200(MqttClientDataSourceRT.java:44) ~[?:?]
              at com.infiniteautomation.m2m2.mqtt.client.MqttClientDataSourceRT$4.run(MqttClientDataSourceRT.java:756) ~[?:?]
              at java.util.TimerThread.mainLoop(Timer.java:556) ~[?:?]
              at java.util.TimerThread.run(Timer.java:506) ~[?:?]
      Exception in thread "Timer-2" com.serotonin.ShouldNeverHappenException: @ "DISCONNECTING" don't know how to handle event: "INITIALIZATION_FAILED"
              at com.infiniteautomation.m2m2.mqtt.client.MqttClientDataSourceRT.handleBokerConnectionevent(MqttClientDataSourceRT.java:264)
              at com.infiniteautomation.m2m2.mqtt.client.MqttClientDataSourceRT.connect(MqttClientDataSourceRT.java:715)
              at com.infiniteautomation.m2m2.mqtt.client.MqttClientDataSourceRT.access$1200(MqttClientDataSourceRT.java:44)
              at com.infiniteautomation.m2m2.mqtt.client.MqttClientDataSourceRT$4.run(MqttClientDataSourceRT.java:756)
              at java.base/java.util.TimerThread.mainLoop(Timer.java:556)
              at java.base/java.util.TimerThread.run(Timer.java:506)
      ERROR 2021-02-01T21:09:39,080 (com.infiniteautomation.m2m2.mqtt.client.MqttClientDataSourceRT$2.onFailure:703) - MQTT Connection not established
      ERROR 2021-02-01T21:10:30,899 (com.infiniteautomation.m2m2.mqtt.client.MqttClientDataSourceRT$2.onFailure:703) - MQTT Connection not established
      
      posted in User help
      C
      chrapchp
    • RE: Serial data source causing crash

      @robmalone Mango did not even what to start up with JDK 1.14. I did recover the old jdk I was using on the crashed system and will revert to that.

      thx

      posted in User help
      C
      chrapchp
    • RE: Serial data source causing crash

      I'm getting this as well.

      I restored from a windows crash and using the recommended AdoptOpenJDK JDK. I was using the old JDK from Oracle prior. I now get this error and I know the port works fine as I can communicate using a modbus master tool.

      posted in User help
      C
      chrapchp
    • Rest API vs object methods

      I am using the rest API in my user module, components, etc. and works fine. However, I recently read on a post an example using a call on the pointvalues object. e.g.

      PointValues.getPointValuesForXid(...)
      

      I tried it and works fine and was wondering this officially documented?

      pjc

      posted in User help
      C
      chrapchp
    • RE: Retrieving Historical Values

      Thanks. It will probably end up a user component.

      pjc

      posted in User help
      C
      chrapchp
    • Retrieving Historical Values

      I would like to retrieve the historical values stored via cron/meta-data point that are run once an hr and per month for a chart. When I perform a mysql query, I get what I expect. e.g. if there are 5 entries I get 5 entries.
      MySql query returns what I expect.
      e.g.

      
      select pointValue, from_unixtime(ts/1000) from pointvalues where datapointid=474
      

      via ma-point-values I get the 5 + a current value which is the same as the last log value. I am using these to seed a chart and always get an extra point that mirrors that of what was saved via cron.

      <ma-point-values point="point1" values="point1Values" from="dateBar.from" to="dateBar.to" rollup="{{dateBar.rollupType}}" rollup-interval="{{dateBar.rollupIntervals}} {{dateBar.rollupIntervalPeriod}}">
      </ma-point-values>
      
      <p>There are {{point1Values.length}} rows to display.</p>
      
      
      <md-table-container>
          <table md-table>
              <thead md-head>
              <tr>
                  <th md-column>TimeStamp</th>
                  <th md-column>Point Value</th>
              </tr>
              </thead>
              <tbody md-body>
              <tr ng-repeat="value in point1Values">
                  <td md-cell>{{value.timestamp | maMoment:'format':'ll LTS'}}</td>
                  <td md-cell>{{value.value}}</td>
              </tr>
              </tbody>
          </table>
      </md-table-container>
      

      This is an output on the per month points. I don't want the Dec 3 to return. mySql only has the 1 entry.
      0_1543887564989_Capture.JPG

      posted in User help
      C
      chrapchp
    • RE: Create menu item

      Thanks. It worked.

      posted in User help
      C
      chrapchp
    • Create menu item

      How does the parent item drop down list get populated in the create menu item from the dashboard designer? via the register a menu item in a user module? I am trying to create a menu bar at the top using the suggestions in forum and nothing but the canned entries appear.

      I;m obviously missing something.

      pjc

      posted in User help
      C
      chrapchp