• Recent
    • Tags
    • Popular
    • Register
    • Login

    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

    Guest Login, Permissions and Kiosk Dashboards

    Dashboard Designer & Custom AngularJS Pages
    7
    45
    16.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • JoelHaggarJ
      JoelHaggar
      last edited by

      On the first one try using the Auto Login feature. I use this on my modbile device and it works great:
      0_1475783893240_upload-bb059d09-af14-47be-9e90-0f12c3a6f422

      I'll let Will or Jared answer the other question.

      1 Reply Last reply Reply Quote 0
      • M
        mihairosu
        last edited by

        I already tried that, and it didn't work for me, which is why I thought there was something else to it.

        Here's setting the login to guest:

        0_1475784895740_auto login.png

        Here's me trying to login via an incognito window. No auto login is happening.

        0_1475784913311_incognito.png

        1 Reply Last reply Reply Quote 0
        • JoelHaggarJ
          JoelHaggar
          last edited by

          It uses your browser storage to hold the login info so I don't think it will work in Incognito Mode.

          1 Reply Last reply Reply Quote 0
          • M
            mihairosu
            last edited by

            Oh I see, well we're trying out some different kiosk OSs, on some Raspberry Pis, and I think they run the browser in incognito.

            I'm looking to mimic what PRTG does with their maps. You can get a unique link to each dashboard, or map as they call it.

            1 Reply Last reply Reply Quote 0
            • Jared WiltshireJ
              Jared Wiltshire
              last edited by

              We can look at making the auto login work via URL parameters or something like that in the future, at this time the incognito mode will not work.

              If you create a menu link for your page with a state name that does not start with 'dashboard' then you will not get the menu or top bar when you go to its URL. You could create two menu links for each page, one which is displayed in the menu which starts with 'dashboard' and one which is hidden from the menu that doesn't start with 'dashboard'.

              The second issue I believe is probably due to a bug that was in an earlier version of the dashboards module. Can you post the following markup in your play area and check what the user permission is? I suspect it is empty. If it is empty, change it to user and press save. The edit permission should be edit-menus.

              <ma-json-store xid="custom-user-menu" item="myItem" value="myValue"></ma-json-store>
              
              <div layout="column">
                <md-input-container class="md-block">
                  <label>Edit permission</label>
                  <input ng-model="myItem.editPermission">
                </md-input-container>
                <md-input-container class="md-block">
                  <label>Read permission</label>
                  <input ng-model="myItem.readPermission">
                </md-input-container>
              </div>
              
              <md-button class="md-raised md-primary md-hue-3" ng-click="myItem.$save()"><md-icon>save</md-icon> Save</md-button>
              <md-button class="md-raised md-warn" ng-click="myItem.$delete()" disabled><md-icon>delete</md-icon> Delete</md-button>
              <md-button class="md-raised" ng-click="myItem.$get()"><md-icon>undo</md-icon> Revert</md-button>
              
              <div style="margin-top:10px">
              
              <pre><code>{{myItem | json}}</code></pre>
              </div>
              

              Developer at Radix IoT

              1 Reply Last reply Reply Quote 0
              • M
                mihairosu
                last edited by mihairosu

                Hey Jared,

                Regarding the first point:

                I created a page with a link as you described:

                0_1476030349212_page settings.png

                When I use the sidebar to open the page, it works as you described, without a menu.

                0_1476030368867_works from menu.png

                However, when I use the link directly from a new page, by entering the same url, it doesn't open at all. Also, please note it was opened from the same window, just a new tab, so there shouldn't be any login issues. I get the spinning gear icon show up, and then a blank page.

                0_1476030421674_not working direct link.png

                I also noticed, that the View Page link from the page editor also doesn't open the page with the new URL.

                0_1476032687408_second link.png

                Regarding your second point, the permissions were as follows:

                Edit permission: edit-menus
                Read permission: user

                Do I need to give "user" permissions to the "guest" user somewhere?

                1 Reply Last reply Reply Quote 0
                • Jared WiltshireJ
                  Jared Wiltshire
                  last edited by

                  I can't see anything wrong with your configuration, are there any errors in the browsers console? The view page link will open the first menu link it finds that links to the custom page, so it is probably finding the link that doesn't work.

                  Yes, make sure your user "guest" has the "user" permission on the users page (/users.shtm).

                  Developer at Radix IoT

                  1 Reply Last reply Reply Quote 0
                  • M
                    mihairosu
                    last edited by mihairosu

                    I checked Chrome with Developer Mode and I don't see anything at all in the Console.

                    The same issue happens with Firefox as well, if that matters at all.

                    I have confirmed again that neither the "View Page" link works, nor opening it directly from the weblink:

                    http://ip-address/dashboards/boilersOverviewKiosk.

                    Those same exact links do open from the side bar though.

                    edit: I forgot to mention that your permissions suggestions have resolved my issues on that front.

                    1 Reply Last reply Reply Quote 0
                    • Jared WiltshireJ
                      Jared Wiltshire
                      last edited by

                      @mihairosu
                      I've tracked down the bug, can you please test the fix. Replace your app.js file with this one -
                      https://raw.githubusercontent.com/infiniteautomation/ma-dashboards/0906b657b8eded627e3ca77af69daaa223f26a76/Custom Dashboards/web/mdAdmin/app.js

                      Our schedule does not allow us to release a bug fix to the store right now, sorry.

                      Developer at Radix IoT

                      1 Reply Last reply Reply Quote 0
                      • M
                        mihairosu
                        last edited by

                        Hey Jared,

                        The fix you made won't allow me to open the dashboards module. It seems to be stuck at the gear loading icon. I restored the original apps.js and now it loads ok again.

                        1 Reply Last reply Reply Quote 0
                        • Jared WiltshireJ
                          Jared Wiltshire
                          last edited by Jared Wiltshire

                          What version of the dashboards module do you have installed? The fix is for 3.2.2, ensure you are on this then apply the fix.

                          Developer at Radix IoT

                          1 Reply Last reply Reply Quote 0
                          • M
                            mihairosu
                            last edited by

                            3.2.2

                            1 Reply Last reply Reply Quote 0
                            • Jared WiltshireJ
                              Jared Wiltshire
                              last edited by

                              Can you open the developer console and tell me if there are errors in the console? What page are you trying to go to?

                              I have double checked the fix and can't find a problem with it.

                              Developer at Radix IoT

                              1 Reply Last reply Reply Quote 0
                              • M
                                mihairosu
                                last edited by mihairosu

                                I restarted the mango instance after copying over your new file, do you think I need to restart the whole computer? Could that have something to do with it?

                                Also there were no errors when I checked it last. I can try it again at some point today.

                                1 Reply Last reply Reply Quote 0
                                • M
                                  mihairosu
                                  last edited by

                                  Just to be clear, I am editing the file in the following location?

                                  /opt/mango/web/modules/dashboards/web/mdAdmin

                                  1 Reply Last reply Reply Quote 0
                                  • Jared WiltshireJ
                                    Jared Wiltshire
                                    last edited by

                                    Yes that's the right file, you should not have to restart your computer or even Mango. As long as you clear or disable your cache (on the network tab of Chrome's developer console for example) the new file will be loaded when you refresh the page.

                                    Joel mentioned that we might have access to your server so we might be able to log in and take a look at what is happening. Perhaps give us a call.

                                    Developer at Radix IoT

                                    1 Reply Last reply Reply Quote 0
                                    • M
                                      mihairosu
                                      last edited by

                                      Ah, you know what, I don't think I cleared my cache. That might have done it. Give me a little bit and I'll get to it again.

                                      1 Reply Last reply Reply Quote 0
                                      • M
                                        mihairosu
                                        last edited by

                                        Jared, sorry for giving misleading information last time. Your fix worked.

                                        Thank you.

                                        1 Reply Last reply Reply Quote 0
                                        • Jared WiltshireJ
                                          Jared Wiltshire
                                          last edited by

                                          Great, good to hear

                                          Developer at Radix IoT

                                          1 Reply Last reply Reply Quote 0
                                          • H
                                            henryblu
                                            last edited by

                                            @mihairosu did you ever find a solution to displaying a dashboard page on a raspberry pi via launching it in kiosk mode? I've noticed that the pi requires chrome to launch in incognito mode to clear the cache (so the session restore functionality is disabled), but as @JoelHaggar said, auto login requires the browser to store login info.

                                            M 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post