• Recent
    • Tags
    • Popular
    • Register
    • Login
    1. Home
    2. dovydasz
    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
    D
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 10
    • Posts 20
    • Groups 0

    Posts

    Recent Best Controversial
    • No authentication set in security context

      Hello,
      How can I know what permissions I'm missing in my case? Mango v5 starts and almost immediately starts printing errors: "Authentication not set in security context".
      My configuration is imported from a Mango v3 backup, than I set up tags to use with the pi-portfolio subsystem and configured sites. Otherwise I don't notice any more problems, users can see the data..

      INFO  2025-01-24T11:17:18,897 (com.serotonin.m2m2.Main.createLifecycle:290) - Starting Mango 5.3.0 with Schema Version: 52
      INFO  2025-01-24T11:17:18,897 (com.serotonin.m2m2.Main.createLifecycle:294) - Java VM: OpenJDK 64-Bit Server VM, version: 17.0.13+11-Debian-2deb12u1, vendor: Debian
      INFO  2025-01-24T11:17:18,897 (com.serotonin.m2m2.Main.createLifecycle:295) - Java spec: Java Virtual Machine Specification, version: 17, vendor: Oracle Corporation
      INFO  2025-01-24T11:17:18,897 (com.serotonin.m2m2.Main.createLifecycle:301) - Operating System: Linux, arch: amd64, version: 6.1.0-28-amd64
      INFO  2025-01-24T11:17:18,897 (com.serotonin.m2m2.Main.createLifecycle:307) - Running as user account: mango
      INFO  2025-01-24T11:17:18,897 (com.serotonin.m2m2.Main.createLifecycle:310) - Installation directory: /opt/mango
      INFO  2025-01-24T11:17:18,898 (com.serotonin.m2m2.Main.createLifecycle:311) - Data directory: /opt/mango
      INFO  2025-01-24T11:17:18,898 (com.serotonin.m2m2.Main.createLifecycle:312) - Configuration file: /opt/mango/mango.properties
      
      ERROR 2025-01-24T11:17:46,021 (org.snmp4j.log.Log4jLogAdapter.error:68) - com.serotonin.m2m2.vo.permission.PermissionException: No authentication set in security context
      ERROR 2025-01-24T11:20:33,028 (org.snmp4j.log.Log4jLogAdapter.error:68) - com.serotonin.m2m2.vo.permission.PermissionException: No authentication set in security context
      ERROR 2025-01-24T11:21:08,942 (org.snmp4j.log.Log4jLogAdapter.error:68) - com.serotonin.m2m2.vo.permission.PermissionException: No authentication set in security context
      
      posted in User help
      D
      dovydasz
    • RE: Pi Portfolio creating

      I still can't get it working.. Could you please share some screenshots how you configured it? Do I need to you some specific values for datapoints tags keys?

      posted in User help
      D
      dovydasz
    • RE: New Feature Request: Expansion of "Discard Extreme Values" feature with a "Discard if Delta > X" argument.

      @mattfox said in New Feature Request: Expansion of "Discard Extreme Values" feature with a "Discard if Delta > X" argument.:

      just have another idea... use an event that fires on update and deletes the latest value if it's greater than n size of your previous value... it'd be no different than infinite coding the exact same behavi

      I have a very similar situation as Turbo. Could you please help with an example how to create an event which fires some script for deleting the last value?

      posted in Mango feedback
      D
      dovydasz
    • Grey out data points if no connection

      Hello,
      Could you suggest how to grey out or change a color of data points in dashboards and watch lists when there is no connection with data source?

      Dovydas

      posted in Dashboard Designer & Custom AngularJS Pages
      D
      dovydasz
    • RE: Accessing remote running mango on Internet and mobile.

      Just install Teamviewer (https://www.teamviewer.com/ on PC with Mango. Teamviewer lets you to connect to PC remotely to see computers display and to control it as you be in front of it. Then customer should install the same on his home PC. Then customer could connect to PC with Mango from home PC. I think it's the easiest solution for you.

      Good luck!

      posted in User help
      D
      dovydasz
    • permission groups

      Hello,

      I'm trying to make different permission groups to separate datapoints and dashboards for different users.
      So now I created a user 'test' with permissions group 'user1', Added some datapoints for this group and edited my dashboard page "apzvalgine" to "Permissions required: user, user1" in Edit menu items window.
      Administration ->System settings -> Permissions: edited all fields with 'user' to 'user,user1', so the same settings for both groups.

      But after I login with this user 'test' I'm redirected to blank webpage with url:

      http://192.168.0.21/ui/not-found?path=%2Fui%2Fapzvalgine
      
      firefox console shows:
      https://pastebin.com/9cYPvsKb
      

      But if I go to http://192.168.0.21/point_details.shtm I can see all datapoints I gave for this usergroup.

      I think I'm missing some settings for MangoUI to be set..?

      Dovydas

      posted in User help
      D
      dovydasz
    • RE: apache2 reverse proxy setup

      Thank you! It's working now :)

      posted in User help
      D
      dovydasz
    • apache2 reverse proxy setup

      Hello,

      I'm trying to make access to mango via Apache reverse proxy installed on the same machine, and after that I will try to use Let's Encrypt certificate.

      Now my apache .conf looks like:

      <VirtualHost *:80>
      
      RewriteEngine On
      RewriteCond %{HTTP:Connection} Upgrade [NC]
      RewriteCond %{HTTP:Upgrade} websocket [NC]
      RewriteRule /(.*) ws://127.0.0.1:8080/$1 [P,L]
      
      ProxyRequests off
      <Location />
          ProxyPass http://127.0.0.1:8080/
          ProxyPassReverse /
      </Location>
      
      </VirtualHost>
      

      Actually with this setup I can open Mango webpage, can see datapoints, but some my points are pictures (datasource: HTTP Images) which aren't loaded.

      Failed to load resource: net::ERR_CONNECTION_REFUSED
      http://127.0.0.1:8080/imageValue/1516192015304_110.jpg
      

      As you see they still have localhost address..

      Can you help me with this setup?

      posted in User help
      D
      dovydasz
    • Data Source Copy error

      Hello,

      I'm trying to make a copy of all Data Source (SNMP) with Data points inside but get an error:

      PreparedStatementCallback; SQL [INSERT INTO eventDetectors (xid,sourceTypeName,typeName,data,dataPointId) VALUES (?,?,?,?,?)]; Unique index or primary key violation: "EVENTDETECTORSUN1_INDEX_D ON PUBLIC.EVENTDETECTORS(XID) VALUES ( /* 83 */ CAST('ED_36ee074e-96d4-4fa2-a7ab-581e45afd47d_43' AS VARCHAR_IGNORECASE) )"; SQL statement:
      INSERT INTO eventDetectors (xid,sourceTypeName,typeName,data,dataPointId) VALUES (?,?,?,?,?) [23505-181]; nested exception is org.h2.jdbc.JdbcSQLException: Unique index or primary key violation: "EVENTDETECTORSUN1_INDEX_D ON PUBLIC.EVENTDETECTORS(XID) VALUES ( /* 83 */ CAST('ED_36ee074e-96d4-4fa2-a7ab-581e45afd47d_43' AS VARCHAR_IGNORECASE) )"; SQL statement:
      INSERT INTO eventDetectors (xid,sourceTypeName,typeName,data,dataPointId) VALUES (?,?,?,?,?) [23505-181]
      

      If I remove Event Detectors from Data Points then I can make a copy.
      If I'm copying just Data point with Event Detector then Mango makes a copy but without Event Detector configured..

      posted in User help
      D
      dovydasz
    • RE: Displaying time and date in text form

      Hello,

      how can I uppercase letters?
      Now I have:

      <ma-now update-interval="1 SECONDS" output="time"></ma-now>
      
      <div >{{time|maMoment: 'format':'MMMM Do, dddd'}}</div>
      // sausio 12-oji, penktadienis
      <div >{{time|maMoment: 'format':'dddd'}}</div>
      // penktadienis
      

      All letters are lowercase always...

      Locale on OS is set to Lithuania:
      [mango@Mango ~]$ localectl status
      System Locale: LANG=lt_LT.utf8
      VC Keymap: us
      X11 Layout: us

      posted in Dashboard Designer & Custom AngularJS Pages
      D
      dovydasz
    • RE: List of events for users

      I think I found that it's a Firefox issue..
      I can see events list with Chrome browser (for both user and superadmin), and with MS Edge, but it's not working on Firefox ESR 52.5.2 (32-bit) for Windows. So it's not related to user permissions.
      And I checked on Firefox 57.0.1 (64-bit) for Ubuntu - it's working as well.

      posted in User help
      D
      dovydasz
    • List of events for users

      Hello,

      Only superuser can see events. Any other user see:
      {{$pagination.min()}} - {{$pagination.max()}} {{$pagination.label.of}} {{$pagination.total}}

      I think I did something wrong with permissions but can't find what.. :(

      0_1515502164187_events list.jpg

      posted in User help
      D
      dovydasz
    • SNMP set-request sent with wrong community

      Hello,
      I have SNMP v1 Data source with settings:
      Read community: public
      Write community: private

      So then I try to set a value, mango always sends "community: public" instead of "private" (checked with wireshark). What I'm doing wrong? Device replays with "authenticationFailure" but it works if I set-request with community:private (checked).

      Regards,
      Dovydas

      posted in User help
      D
      dovydasz
    • webcam view

      Hello,

      I need help to add video from hikvision ip camera to dashboard.
      I can see video (MJPEG) with web browser on this link: http://user:password@192.168.222.31/Streaming/channels/1/preview

      So I think I need to create HTTP Image data source. Then I create data point and URL field with a link I wrote.
      In dashboard designer I create ma-point-value with this datapoint but it doesn't work.

      I think I need to write some code in "Webcam live feed code"? :) Do you have any example about this?

      Regards,
      Dovydas

      posted in User help
      D
      dovydasz
    • RE: Intesis integration

      There were some errors (can't find jar or smth) on updating process so I just extracted m2m2-core-3.2.2.zip into my Mango directory. And yes, there were two files - mango-3.2.1.jar and mango-3.2.2.jar, so I deleted 3.2.1 and now it started with HttpBuilder.
      Thanks! Going to analyze your script..

      posted in User help
      D
      dovydasz
    • RE: Intesis integration

      Hello Phillip,
      thanks for your answer!

      I updated my Mango to newest version 3.2.2+20171009170034 but unfortunately still have this error:
      ReferenceError: "HttpBuilder" is not defined in at line number 15

      Should I install this somehow manually?

      Dovydas

      posted in User help
      D
      dovydasz
    • Intesis integration

      Hello
      I'm wondering how to integrate air conditioners connected with Intesis adapters.
      They provide this REST API documentation:
      https://www.intesishome.com/developers/rest-api-documentation/

      Can you give some tips or even better examples of how to do it with Mango?

      Sincerely,
      Dovydas

      posted in User help
      D
      dovydasz
    • RE: Events Table refreshing

      Sorry, just found that there is an upgrade for MangoUI and it seems that now it works like I want. But would be great to play some alarm sound if there is a new event.

      posted in User help
      D
      dovydasz
    • Events Table refreshing

      Hello,

      I have just started to learn and check if Mango would be a good choice for my current project. I think I'll have lots of questions because I'm not familiar with HTML programming... :)

      But the first thing I really need is to refresh Events Table when the new event occurs. Now I can see only “a clock with number” on right top corner. Is it possible to add new row into table immediately? Is it possible to show some popup window and/or play sound if new event occurs?

      Now I’m using free-m2m2-core-3.2.1.

      Best Regards,
      Dovydas

      posted in User help
      D
      dovydasz