• H
    henryblu

    Thanks @Jared-Wiltshire - this worked perfectly.
    The motivation was to be able to easily change the energy saving prompts on an energy usage dashboard, quite similar to the ones from Greensense View: http://greensense.com.au/greensense-view/product-tour/reduce-energy-water-waste/

    0_1503028024100_33a657f7-61bf-431a-88a5-037d70544161-image.png

    Now users can log into the input page, save the prompts and it will appear immediately on the dashboard. Cheers!

    posted in Wishlist read more
  • H
    henryblu

    This may be possible, but it may be a stretch. What I would like to do is design one page as an input box for some text.
    0_1502952924366_64a0588a-80d6-421f-9523-85c4bedf495d-image.png
    This text that is entered will then be stored in some way and displayed on another page inside a <div></div>

    I'm not sure whether there is a mango specific way to do this, i.e. setting the value of a mango data point: type text. Or using the file store??

    Any thoughts / suggestions are welcome!

    posted in Wishlist read more
  • H
    henryblu

    Hi,
    Is there a way to clear the play area without opening it and editing the file (i.e clear it in the file store). I was testing some code I found online and saved it - now because of the CSS formatting the play screen goes completely white when I open it.

    Cheers,
    Henry

    posted in Mango Automation general Discussion read more
  • H
    henryblu

    Hi @Jared-Wiltshire,

    This question is relatively similar, so I thought I would post it here. If I have a stacked bar chart: 0_1501126576068_aad2fdde-4935-4c55-8ddd-53176bc43c48-image.png

    Is there an easy way to edit the 'stacking method', in order to convert it to a cluster chart? i.e.
    0_1501126662944_dd45273a-6add-4533-aa57-53c9e7dfe311-image.png

    In an ideal world, perhaps something like

    stacktype: cluster
    

    Any suggestions would be really appreciated!

    posted in Mango Automation general Discussion read more
  • H
    henryblu

    Thanks Jared, I managed to get it working with this directive:

    <ma-point-query query="{name: 'Energy'}" limit="8" points="point_array"></ma-point-query>
    
        <div layout="" layout-align="space-around center">
            <div ng-repeat="point in point_array track by point.xid" layout="column" layout-align="start center">
                <ma-bar-display style="height: 350px; width: 40px;" ng-style="{color: point.chartColour}" point="point" maximum="2" direction="bottom-to-top"></ma-bar-display>
                <span>{{point.name}}</span>
            </div>
        </div>
    

    It does work, but still obviously lacks the serial chart functionality (selecting/unselecting, axis labels/titles, pop-up toggle etc.) From an energy monitoring perspective I think it would make a great addition to the dashboard UI. For example if you wanted to set up a virtual point of the total energy used in each building per person, and display that on a bar chart - comparing the performance of each building.

    I hope it comes out in the next release, cheers!

    posted in Mango Automation general Discussion read more
  • H
    henryblu

    Awesome - managed to make it work this time! Thank you, all is fine now.

    posted in Mango API and Dashboards read more
  • H
    henryblu

    Sorry I'm a little unsure about pasting the Auto login code into a dashboard page. Say for instance my username is test and the password is testtest. I would edit the auto-login code to look like this?

    <!DOCTYPE html>
    <!-- You need to include ma-app here so ma-username and ma-password are picked up -->
    <html lang="en" ma-app ma-username="test" ma-password="testtest">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="x-ua-compatible" content="ie=edge">
        <title>Angular Material Template</title>
        <meta name="viewport" content="width=device-width, initial-scale=1">
        
        <link rel="stylesheet" href="/modules/mangoUI/web/vendor/angular/angular-csp.css"></link>
        <link rel="stylesheet" href="/modules/mangoUI/web/vendor/angular-material/angular-material.css">
        <link rel="stylesheet" href="/modules/mangoUI/web/vendor/material-design-icons/iconfont/material-icons.css">
        <link rel="stylesheet" href="/modules/mangoUI/web/vendor/mdPickers/mdPickers.css">
    </head>
    
    <body layout="column">
        <div ng-if="appLoading">
            <span>App is loading..</span>
        </div>
    
        <div ng-cloak layout="column" flex>
            <!-- Your content here -->
        </div>
    
        <script src="/modules/mangoUI/web/vendor/requirejs/require.js"></script>
        <script src="/modules/mangoUI/web/loaderConfig.js"></script>
    	<script>require(['ngMango/bootstrap']);</script>
    </body>
    </html>
    

    Which part of the code do I then paste into a dashboard page? Thanks.

    posted in Mango API and Dashboards read more
  • H
    henryblu

    That's it @mihairosu . The reason I am after this solution is because enabling the cache for auto-login causes this pop-up every time the pi boots when the dashboard turns on in the morning, quite similar to this post - https://community.risevision.com/rise_vision_inc/topics/chrome-restore-pop-up-after-crash

    0_1500511194437_dec21bea-3a69-4633-8e3a-b21f81600b0e-image.png

    Most solutions suggest to launch chrome/chromium in incognito mode to clear the cache. There are a few other old techniques out there which I have tried to remove the pop-up but none seem to work besides going incognito.

    That's my motivation for wanting a webpage with either no login required or auto login stored in the URL.

    posted in Mango API and Dashboards read more
  • H
    henryblu

    @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.

    posted in Mango API and Dashboards read more

Looks like your connection to Mango Automation Forum was lost, please wait while we try to reconnect.