• T
    thewizardguy

    @phildunlap I used both CSV and Excel, I actually discovered the issue on the csv version, but it works the same for me either way. Emailing files now.

    posted in Mango feedback read more
  • T
    thewizardguy

    @pedro If you're going to, I'd go all out, get a little NUC or something as a linux server, transfer the historical data/configs, don't try to just straight upgrade. Either that, or just get the Mango ES, it's been great for us. Just wire up some 24VDC power from a panel like a typical controller, but you can SSH into it. Viola!

    In my experience, the windows version of Java doesn't allow mango to work as well as the linux implementation, and is far less stable (due to windows not being stable).

    posted in Mango feedback read more
  • T
    thewizardguy

    @pedro On mine it DOES say Configuration Import/Export for the tooltip on /emport.shtm (Mango 3.3)

    posted in Mango feedback read more
  • T
    thewizardguy

    how the hell do you upload files properly lol it doesnt look like its anything but text

    posted in Mango feedback read more
  • T
    thewizardguy

    I've run into errors, but at the moment I'm extraordinarily confident in this being the issue. Errors mostly prevent me from even importing. Yes, I'm using /dataImport.shtm.

    One import with a time range that is jan-17->november-16 for instance will allow the import to occur, but show the dreaded "points to be written" forever, but a november-16->jan-17 import with the same format in every other way will import perfectly and write the objects within seconds.

    The only thing in the log file is "Error during receive: NPDU [from=Address blahblahblah" all morning from 8am to now.

    I just tested it again, and confirmed results. To be clear, the import APPEARS to work, but then it never writes and the "Point Values to be written" field in /internal/status.shtm never drops below the imported amount.

    [1_1517512951906_mangoExampleBroken.xlsx](Uploading 100%) [0_1517512951906_mangoExampleWorking.xlsx](Uploading 100%)

    posted in Mango feedback read more
  • T
    thewizardguy

    TL;DR: The Data Import feature requires the next datetimestamp in the sheet/csv to be newer than the one before it, and that's not cool.

    Alright, I believe I've found, in my opinion, a less-than-desirable behavior in the data import feature. I stumbled upon it while importing data from an old instance of Mango where for some reason it wouldn't show me "chart" info, and therefore wouldn't give me the option to download the data.

    So naturally, I clicked on "Show xxx most recent records," and copied and pasted it into a spreadsheet that matched the format of a normal export.

    I spent HOURS wondering what I had done wrong, for every time I imported, it would show me

    Point values to be written           7218
    

    Or some such nonsense. And it would NEVER go away until I rebooted. So, after much gnashing of teeth, I actually found one or two imports here and there among the objects I was trying to import from, and realized that sometimes it was importing the FIRST value listed, but not others. BUT WHY!?

    The dates were from newest->oldest, not oldest->newest. Now, call me crazy, but if each line is individually evaluated, there should be no reason you can't import with ANY time in ANY cell order, but there it is. It seems to me that the Data Import will ONLY import data if the next date in the list is NEWER than the last, which makes absolutely no sense to me.

    I have already imported all necessary data as of this moment, but I figured y'all might want to either fix it or maybe someone else has this issue and they can find the solution here.

    posted in Mango feedback read more
  • T
    thewizardguy

    @phildunlap Ah! Well, this way creates less requests, so it's better anyways! Glad to know I wasn't crazy, just lazy =P

    posted in Dashboard Designer & Custom AngularJS Pages read more
  • T
    thewizardguy

    @phildunlap Thank you! Firstly, it worked. Secondly, I added that mysterious get line to add the cookies to the request, and it seemed to work since I got the 200 response, but not in the "correct" way ? The requests looks really weird to me, but it works! Yay! Thank you!

    posted in Dashboard Designer & Custom AngularJS Pages read more
  • T
    thewizardguy

    @phildunlap Alright I'm sure you never tire of hearing from me, but I can't figure this out...I can successfully log in, and even though I continue using the same session (afaik), I can't seem to do anything but login. I'm sure it's my fault, but ... please help!

    #!/usr/bin/python
    
    import requests
    
    s = requests.Session()
    
    s.headers.update({'Accept': 'application/json', 'Accept-Encoding': 'gzip,deflate,sdch'})
    
    r = s.get('http://localhost/')
    s.headers["X-Xsrf-Token"] = s.cookies["XSRF-TOKEN"]
    print(s.headers)
    
    r = s.post('http://localhost/rest/v2/login',data='{"username":"admin","password":"yourPasswordHere"}')
    print(r)
    r = s.get('http://localhost/rest/v2/event-types')
    print(r)
    

    outputs:

    {'Connection': 'keep-alive', 'User-Agent': 'python-requests/2.4.3 CPython/2.7.9 Linux/3.10.82+', 'X-Xsrf-Token': 'c5bb2d4c-bf26-46da-ae68-ac1543f9fbd4', 'Accept': 'application/json', 'Accept-Encoding': 'gzip,deflate,sdch'}
    <Response [200]>
    <Response [401]>
    

    posted in Dashboard Designer & Custom AngularJS Pages read more
  • T
    thewizardguy

    For anyone still having issues logging in, I could only see the v2 login option on my swagger and decided to tackle it. I am a COMPLETE beginner to Python but it was very frustrating to figure this out, so I thought I'd post it:

    #!/usr/bin/python
    
    import requests
    
    s = requests.Session()
    
    s.headers.update({'Accept': 'application/json', 'Accept-Encoding': 'gzip,deflate,sdch'});
    
    s.headers["X-Xsrf-Token"] = s.cookies["XSRF-TOKEN"]
    
    #print s.headers
    
    r = s.post('http://localhost/rest/v2/login',data='{"username":"admin","password":"yourPasswordHere"}')
    

    I receive <Response [200]> when I send this, and 403 when I do it any other way. Hope this helps someone!

    posted in Dashboard Designer & Custom AngularJS Pages read more