• phildunlap

    I recommend changing the point clean interval (ms) and the stale data period (ms) to 60000, which is at least currently the default. There is a decent chance this is actually causing the issue, but we're still investigating.

    posted in User help read more
  • phildunlap

    I would start by having a look in the web-src directory of some of the public modules. They're also examples! https://github.com/infiniteautomation/ma-modules-public

    To add some context, the end goal of this module I'm building is essentially a more refined version of the HTTP Retriever data source, dedicated to only a specific site with a specific API protocol. I want to be able to add/select certain parameters for an HTTP GET request (likely as a drop down box of some sort), and then automatically parse the resulting JSON file.

    I personally would be hesitant to create a whole module for this. You can probably achieve this ambition using the HttpBuilder in a script. You would just have to set values to points to change how the script behaves instead of configure it as a data source.

    posted in Development general discussion read more
  • phildunlap

    Hi jwang,

    Classes which extend ModuleElementDefinition classes are reflected out of modules when loading them in startup. So, no, you do not need to place them in any particular package. REST controllers are not unconditionally reflected out of modules, though, so currently you would need to place rest controllers in com.serotonin.mango.rest.v1 or com.serotonin.mango.rest.v2

    posted in Development general discussion read more
  • phildunlap

    Hi Vincent,

    That sounds to me like maybe the new script that you're using doesn't have adequate script permissions to the data point in question. Perhaps your old script has superadmin permission?

    posted in User help read more
  • phildunlap

    @support-jo said in AC data point:

    I press the green refresh arrow but when I select "present value " then save the work , the green refresh arrow return to appear

    That is the the expected behavior in the old UI. If you were on the latest Mango you could create this BACnet data source in the new UI, which does not have the refresh arrows on data type and property identifier.

    Speaking of version numbers, what Mango version are you on? It looks like there was a bug fixed with the relinquish tag, which is what the screenshot of the error seems to be about: https://github.com/infiniteautomation/ma-core-public/commit/a6c2a0f8714368c61a0e167bc1cc73328fa48e30

    The stack trace would be in the Mango/logs/ma.log file, accessible through the logging console page or the logging console within Administration --> System Status

    posted in User help read more
  • phildunlap

    Thank you for going into such detail! It may take me a couple days to test things / read around to see if I can reproduce what you're reporting, but I just wanted to say thanks for so much information!

    Either way, I don't know what to do about it.

    If it's just the count getting off and not values accruing in memory, it's not a big problem. it won't interfere with writing the data that is actually queued to get written, and so there would not be an increasing amount of memory allocated to this task, just a number that doesn't reflect the accurate size of the queue (the values waiting aren't counted in the queue, they tracked, because it's much more efficient not to count the large queue).

    posted in User help read more
  • phildunlap

    Hi support-jo,

    when I try to save the point ... Property Identifier field can't take the Present Value why ?

    I'm not sure what you mean. If you wanted to use a different property you would have to press the green refresh arrow, as the old UI didn't automatically look up what property types were possible for a given object type.

    plz tell me how can I fix this error ??

    It may be easier with the stacktrace right below what you have shown in the image, but, the first thing to try is deleting your Mango/work/jsp directory. This has the compiled JSPs, which this error is certainly related to. Alternatively you could use the new UI, as BACnet is supported on the new data sources page in 3.6 already.

    posted in User help read more
  • phildunlap

    Hi chio,

    You could achieve this with an ma-date-range-picker that was hidden on the page. Something like,

    <ma-date-range-picker style="display: none" preset="LAST_1_WEEKS" to="toTimestamp" from="fromTimestamp"></ma-date-range-picker>
    

    and then use the toTimestamp and fromTimestamp in the chart's markup.

    posted in User help read more
  • phildunlap

    I should have added that the HttpBuilder is adding a Content-Type: application/json header if no Content-Type is supplied, which is probably a bad behavior for a GET. I would still suggest pointing these at a Linux system with a listening netcat, though, so that you could see exactly how the HTTP requests were differing.

    I was able to use that URL with a header of Content-Type: text/plain

    And oddly no API key required, but that probably means there's some limiter. You may want to remove the image from your initial post, since you included your API key and where it goes.

    Edit: I have made it such that in the next version no Content-Type header will be added to GET requests if missing.

    posted in Scripting general Discussion read more