• Recent
    • Tags
    • Popular
    • Register
    • Login
    1. Home
    2. ricardo
    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
    • Profile
    • Following 2
    • Followers 0
    • Topics 28
    • Posts 84
    • Best 5
    • Controversial 0
    • Groups 0

    Posts made by ricardo

    • RE: [SOLVED] Autologin or anonymous view access from kiosk for remote display

      @Jared-Wiltshire Sorry to re-open this thread, but with the anonymous user role introduced in v4, does it mean we should be able to define certain pages with anonymous "View Page" permission which allow access of these pages without the need of Mango login?

      BR,
      Ricardo

      posted in Dashboard Designer & Custom AngularJS Pages
      ricardoR
      ricardo
    • Data point multiplier

      I remember we used to have a multiplier in the data point to multiply the raw data point with a multiplier. For instance, if a MQTT data point comesĀ in as mV, we can use a 0.001 multiplier and store the data point as V. Is this no longer available?

      Best regards,
      Ricardo

      posted in How-To
      ricardoR
      ricardo
    • Remove item text in ma-pie-chart

      I have created a ma-pie-chart, I would like to remove the item text.
      Instead I would like to add a legend in chart. Does someone know how to do this?

      7a25e936-df8d-4960-8c7f-ae59d8963c95-image.png

      <ma-pie-chart style="height: 300px; width: 600px" values="[ { value: 30, text: 'hot', color: '#ff9300' }, { value: 70, text: 'cold', color: '#942192' } ]"
      options="{depth3D:15,angle:30}"></ma-pie-chart>
      
      posted in Dashboard Designer & Custom AngularJS Pages
      ricardoR
      ricardo
    • RE: Which NoSQL is used by Mango?

      @jared-wiltshire Thank you for your update. I came across InfluxDB (https://www.influxdata.com/products/influxdb/). It may be a good fit.

      posted in User help
      ricardoR
      ricardo
    • RE: Which NoSQL is used by Mango?

      @craigweb Is timeScaleDatabase ready? Any material on how to use it? I am interested in hosting the DB for the point values on another server apart from the application server.

      posted in User help
      ricardoR
      ricardo
    • RE: Mango v4.2 with mysql server 8 - Failed to validate connection

      @terrypacker the wait_timeout is at default 28,800 secs (8 hours).

      $ mysql
      Welcome to the MySQL monitor. Commands end with ; or \g.
      Your MySQL connection id is 65191
      Server version: 8.0.15.0 Source distribution

      Copyright (c) 2000, 2021, Oracle and/or its affiliates.

      Oracle is a registered trademark of Oracle Corporation and/or its
      affiliates. Other names may be trademarks of their respective
      owners.

      Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

      mysql> SHOW VARIABLES like '%timeout%';
      +-----------------------------------+----------+
      | Variable_name | Value |
      +-----------------------------------+----------+
      | connect_timeout | 10 |
      | delayed_insert_timeout | 300 |
      | have_statement_timeout | YES |
      | innodb_flush_log_at_timeout | 1 |
      | innodb_lock_wait_timeout | 50 |
      | innodb_log_closer_timeout | 1000 |
      | innodb_log_flush_notifier_timeout | 10 |
      | innodb_log_flusher_timeout | 10 |
      | innodb_log_wait_for_flush_timeout | 1000 |
      | innodb_log_wait_for_write_timeout | 1000 |
      | innodb_log_write_notifier_timeout | 10 |
      | innodb_log_writer_timeout | 10 |
      | innodb_rollback_on_timeout | OFF |
      | interactive_timeout | 28800 |
      | lock_wait_timeout | 31536000 |
      | net_read_timeout | 120 |
      | net_write_timeout | 240 |
      | rpl_stop_slave_timeout | 31536000 |
      | slave_net_timeout | 60 |
      | thread_pool_batch_wait_timeout | 10000 |
      | wait_timeout | 28800 |
      +-----------------------------------+----------+
      21 rows in set (0.01 sec)

      posted in User help
      ricardoR
      ricardo
    • Mango v4.2 with mysql server 8 - Failed to validate connection

      I have a freshly installed Mango v4.2 using mysql server 8. It keeps getting a HikariPool-1 - Failed to validate connection warning. Any ideas?

      WARN 2021-10-09T05:04:03,568 (com.serotonin.m2m2.TimedLicenseRegistrar.checkLicenses:65) - Mango NoSQL database is running in free mode, Mango will shutdown at 1:04:03 9/10/2021.
      INFO 2021-10-09T05:04:03,750 (com.serotonin.m2m2.db.BasePooledProxy.initializeImpl:28) - Initializing pooled connection manager
      INFO 2021-10-09T05:04:06,791 (com.serotonin.m2m2.db.upgrade.DBUpgrade.checkUpgrade:37) - Starting instance with core version 4.2.1, schema v42
      INFO 2021-10-09T05:04:06,936 (com.infiniteautomation.nosql.MangoNoSqlProxy.initialize:68) - Starting MangoNoSql Database
      INFO 2021-10-09T05:04:06,980 (com.infiniteautomation.tsdb.impl.IasTsdbImpl.<init>:149) - Database at /opt/mango-data/databases/mangoTSDB started
      INFO 2021-10-09T05:04:07,015 (com.infiniteautomation.tsdb.impl.IasTsdbImpl.<init>:178) - Empty dir delete for database at /opt/mango-data/databases/mangoTSDB took 7ms
      INFO 2021-10-09T05:04:07,030 (com.infiniteautomation.tsdb.impl.IasTsdbImpl.<init>:149) - Database at /opt/mango-data/databases/mangoTSDBAux started
      INFO 2021-10-09T05:04:07,060 (com.infiniteautomation.tsdb.impl.IasTsdbImpl.<init>:178) - Empty dir delete for database at /opt/mango-data/databases/mangoTSDBAux took 4ms
      INFO 2021-10-09T05:04:12,287 (com.infiniteautomation.mango.spring.MangoRuntimeContextConfiguration.contextRefreshed:159) - Spring context 'runtimeContext' refreshed: org.springframework.context.annotation.AnnotationConfigApplicationContext@6ce15112
      INFO 2021-10-09T05:04:12,290 (com.infiniteautomation.mango.spring.MangoRuntimeContextConfiguration.contextStarted:173) - Spring context 'runtimeContext' started: org.springframework.context.annotation.AnnotationConfigApplicationContext@6ce15112
      INFO 2021-10-09T05:04:14,301 (com.serotonin.m2m2.rt.DataSourceGroupInitializer.process:35) - Initializing 1 NORMAL priority data sources in 1 threads
      INFO 2021-10-09T05:04:14,399 (com.serotonin.m2m2.rt.DataPointGroupInitializer.initialize:40) - Initializing 25 data points in 1 threads
      INFO 2021-10-09T05:04:14,405 (com.serotonin.m2m2.rt.DataPointGroupInitializer.processItem:64) - Initializing group 0 of 25 data points
      INFO 2021-10-09T05:04:14,479 (com.serotonin.m2m2.rt.DataPointGroupInitializer.processItem:120) - Group 0 successfully initialized 25 of 25 data points in 74 ms
      INFO 2021-10-09T05:04:14,484 (com.serotonin.m2m2.rt.DataPointGroupInitializer.initialize:54) - Initialization of 25 data points in 1 threads took 84 ms
      INFO 2021-10-09T05:04:14,484 (com.serotonin.m2m2.rt.RuntimeManagerImpl.startDataSource:321) - Data source (name=Mango Internal, id=1, type=InternalDataSourceRT) took 175ms to start
      INFO 2021-10-09T05:04:14,484 (com.serotonin.m2m2.rt.DataSourceGroupInitializer.process:40) - Initialization of 1 NORMAL priority data sources in 1 threads took 184 ms
      INFO 2021-10-09T05:04:14,767 (com.serotonin.m2m2.rt.RuntimeManagerImpl.initialize:183) - Starting 0 Publishers...
      INFO 2021-10-09T05:04:14,779 (com.serotonin.m2m2.rt.RuntimeManagerImpl.initialize:194) - 0 Publisher's started in 19ms
      INFO 2021-10-09T05:04:16,561 (com.infiniteautomation.mango.spring.MangoRuntimeContextConfiguration.contextRefreshed:159) - Spring context 'rootWebContext' refreshed: Root WebApplicationContext
      WARN 2021-10-09T05:04:16,967 (org.springframework.core.log.CompositeLog.warn:127) - For Jackson Kotlin classes support please add "com.fasterxml.jackson.module:jackson-module-kotlin" to the classpath
      INFO 2021-10-09T05:04:17,130 (com.infiniteautomation.mango.spring.MangoRuntimeContextConfiguration.contextRefreshed:159) - Spring context 'restDispatcherContext' refreshed: WebApplicationContext for namespace 'REST_DISPATCHER-servlet'
      INFO 2021-10-09T05:04:21,000 (com.infiniteautomation.mango.spring.MangoRuntimeContextConfiguration.contextRefreshed:159) - Spring context 'restV3Context' refreshed: WebApplicationContext for namespace 'restV3DispatcherServlet-servlet'
      WARN 2021-10-09T05:14:16,684 (com.zaxxer.hikari.pool.PoolBase.isConnectionAlive:184) - HikariPool-1 - Failed to validate connection com.mysql.cj.jdbc.ConnectionImpl@6a1ff639 (No operations allowed after connection closed.). Possibly consider using a shorter maxLifetime value.
      WARN 2021-10-09T05:14:16,685 (com.zaxxer.hikari.pool.PoolBase.isConnectionAlive:184) - HikariPool-1 - Failed to validate connection com.mysql.cj.jdbc.ConnectionImpl@3b4d7ce9 (No operations allowed after connection closed.). Possibly consider using a shorter maxLifetime value.

      posted in User help
      ricardoR
      ricardo
    • Doubled event counts in fresh install of Mango v4.2

      I noticed the unack'ed event counter at the top right corner is doubled of the actual event counters shown in the Events page. Is this the expected behavior?

      c0c48acf-1fa0-403f-a368-dfc41b346eff-image.png

      7aa8ecb0-1e03-442c-aa99-4fcfc4968f04-image.png

      posted in User help
      ricardoR
      ricardo
    • RE: Mango 4.2 install-mango.sh script and mysql

      @jared-wiltshire Since I cannot do database conversion, I tried reinstalling mango via the script again and was successful after creating the .mylogin.cnf file for the root account.

      sudo -s
      mysql_config_editor set --host=...

      Thanks for your help!

      posted in User help
      ricardoR
      ricardo
    • RE: Mango 4.2 install-mango.sh script and mysql

      @jared-wiltshire We have installed Mango 4.2 with h2. Now we want to do database conversion to mysql. We tried following the method from https://docs-v4.mango-os.com/database-conversions by adding convert.db.* lines to mango.properties file. After restarting mango and reviewing the ma.log, it seems like mango is still using h2 database. Please advise.

      posted in User help
      ricardoR
      ricardo
    • RE: How we can prevent date bar call each second?

      Any advise?

      posted in Dashboard Designer & Custom AngularJS Pages
      ricardoR
      ricardo
    • Mango 4.2 install-mango.sh script and mysql

      We are not able to install mango with mysql as we got the following error:

      MySQL port? [3306]:
      Create MySQL database 'mango' and user 'mango'? [yes]:
      NOTE: MySQL admin username/password must be supplied via a .mylogin.cnf file
      Drop MySQL database and user if they already exist? [no]: yes
      ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

      I think we have setup the .mylogin.cnf file correctly as we can connect to the remote mysql server with the following command:

      $ mysql
      Welcome to the MySQL monitor. Commands end with ; or \g.
      Your MySQL connection id is 65147
      Server version: 5.6.47.0 Source distribution

      Copyright (c) 2000, 2021, Oracle and/or its affiliates.

      Oracle is a registered trademark of Oracle Corporation and/or its
      affiliates. Other names may be trademarks of their respective
      owners.

      Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

      mysql>

      Please advise.

      posted in User help
      ricardoR
      ricardo
    • How we can prevent date bar call each second?

      Is there any way to capture (md-sidenav) ma-date-range-picker on change event in any component.

      Here is the code.

      <ma-point-statistics point="myCO" from="$ctrl.dateBar.from" to="$ctrl.dateBar.to" statistics="statsObj">
      </ma-point-statistics>
       {{$ctrl.calculate(statsObj.sum.value)}}
      

      $ctrl.calculate function call each second.

      posted in Dashboard Designer & Custom AngularJS Pages
      ricardoR
      ricardo
    • RE: adjusting event detector thresholds via dashboard

      @jared-wiltshire Is there any way to add dynamic name of event detector using $index.

      <div ng-repeat="point in soapDispenserLevel">
            <ma-point-event-detector point="point" detector-type="LOW_LIMIT" alarm-level="DO_NOT_LOG" detector="soapDispenserLevel{{$index}}" ></ma-point-event-detector>
      </div>
      
      posted in Dashboard Designer & Custom AngularJS Pages
      ricardoR
      ricardo
    • RE: Mango 4.2.0 Release

      @terrypacker said in Mango 4.2.0 Release:

      Any migration guide from V4b12?

      posted in Announcements
      ricardoR
      ricardo
    • RE: realtime data not working in iPhone

      @Jared-Wiltshire Has this been resolved? I am running v4.0.0 beta.14 and noticed that the real-time data in Watchlist and dashboard is not showing up on iPhone's Safari or Chrome.

      posted in Mango feedback
      ricardoR
      ricardo
    • RE: Percent Used Bar Chart

      Hi Matt,

      Do you think we can do this dynamically with AngularJS rather than with data points? One advantage doing it dynamically is we can change the bin group dynamically. What do you think?

      BR,
      Ricardo

      posted in Dashboard Designer & Custom AngularJS Pages
      ricardoR
      ricardo
    • RE: Percent Used Bar Chart

      Hi Matt,

      The occupancy data point's logging type is set to "When point value changes".

      BR,
      Ricardo

      posted in Dashboard Designer & Custom AngularJS Pages
      ricardoR
      ricardo
    • RE: Percent Used Bar Chart

      Hi Matt,

      Thank you for your follow up. I don't understand which initial suggestion you are referring to, but I have further explored with the idea of using a meta data point for occupiedTime in sec.

      The following is the script for the meta data point and it is executed when the occupancy binary (0) is updated (update context checked).

      // return o.past(HOUR, 1).get(true).runtime / (60*1000)
      
      curState = o.value;
      lastState = o.lastValue(false).value;
      
      if(curState == false) { //falling edge only
          if(lastState != false) {
              duration = (o.time - o.lastValue(false).time) / 1000;
              LOG.info(o.time);
              LOG.info(o.lastValue(false).time);
              return duration;
      }
      

      However, this implementation has a glitch that it generates "zero" when occupancy data points goes from "false" to "true" (e.g. rising edge).

      With this occupiedTime meta data point, I can now generate bar charts showing the total occupied time by hour and possible manipulating the pointValues to generate a new series in percent. Next I will have to figure out how to do histogram (binning) the different occupied time.

      BR,
      Ricardo

      posted in Dashboard Designer & Custom AngularJS Pages
      ricardoR
      ricardo
    • RE: Upgrade from v4.0.0 beta.12 to beta.14 failed to restart

      Hi Craig,

      Thank you for your reply. I copied the web/ directory from the beta.12 download over my existing beta.12 instance. I set the system information to development and performed the upgrade via the modules pages. I am happy to report back that the system is now on beta.14.

      BR,
      Ricardo

      posted in User help
      ricardoR
      ricardo