<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Development general discussion]]></title><description><![CDATA[Anything goes section for developers to discuss issues regarding Mango source code]]></description><link>https://forum.mango-os.com/category/7</link><generator>RSS for Node</generator><lastBuildDate>Wed, 10 Jun 2026 00:42:37 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/category/7.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 21 Feb 2023 07:18:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[View Excel Report]]></title><description><![CDATA[@tungthanh500 Uou might want to email the sales channel instead of support.  This is a license issue.
]]></description><link>https://forum.mango-os.com/topic/5620/view-excel-report</link><guid isPermaLink="true">https://forum.mango-os.com/topic/5620/view-excel-report</guid><dc:creator><![CDATA[CraigWeb]]></dc:creator><pubDate>Tue, 21 Feb 2023 07:18:12 GMT</pubDate></item><item><title><![CDATA[Custom Module Configuration]]></title><description><![CDATA[@terrypacker
Thank you
]]></description><link>https://forum.mango-os.com/topic/5535/custom-module-configuration</link><guid isPermaLink="true">https://forum.mango-os.com/topic/5535/custom-module-configuration</guid><dc:creator><![CDATA[Curtis]]></dc:creator><pubDate>Wed, 07 Sep 2022 23:21:42 GMT</pubDate></item><item><title><![CDATA[Cloud connect port assignments and ssh keys]]></title><description><![CDATA[@Gordoe
Yes all cloud connect clients use the same port.  I do not see why this would be more secure.  To access the clients you have to be authenticated with the server.  THe cloud connect server acts as a reverse proxy so to communicate with the clients you connect through the server.
]]></description><link>https://forum.mango-os.com/topic/5342/cloud-connect-port-assignments-and-ssh-keys</link><guid isPermaLink="true">https://forum.mango-os.com/topic/5342/cloud-connect-port-assignments-and-ssh-keys</guid><dc:creator><![CDATA[CraigWeb]]></dc:creator><pubDate>Fri, 12 Nov 2021 12:12:17 GMT</pubDate></item><item><title><![CDATA[Formatting by Active Event]]></title><link>https://forum.mango-os.com/topic/5324/formatting-by-active-event</link><guid isPermaLink="true">https://forum.mango-os.com/topic/5324/formatting-by-active-event</guid><pubDate>Mon, 04 Oct 2021 01:54:47 GMT</pubDate></item><item><title><![CDATA[Script context points as enumerable]]></title><description><![CDATA[@jared-wiltshire perfect, thanks!
]]></description><link>https://forum.mango-os.com/topic/5288/script-context-points-as-enumerable</link><guid isPermaLink="true">https://forum.mango-os.com/topic/5288/script-context-points-as-enumerable</guid><dc:creator><![CDATA[till]]></dc:creator><pubDate>Sun, 29 Aug 2021 23:15:00 GMT</pubDate></item><item><title><![CDATA[Custom Data Source]]></title><description><![CDATA[Perfect, thanks @terrypacker!
]]></description><link>https://forum.mango-os.com/topic/5147/custom-data-source</link><guid isPermaLink="true">https://forum.mango-os.com/topic/5147/custom-data-source</guid><dc:creator><![CDATA[cbyrne]]></dc:creator><pubDate>Thu, 01 Apr 2021 15:22:55 GMT</pubDate></item><item><title><![CDATA[Development and Production Environment Best Practices]]></title><description><![CDATA[Yes I use bitbucket.
I use the gitflow approach so that all changes are pushed back into the dev branch then when all works, it gets pushed into the master.
I was developing when mango stored its mangoUI in individual files so when Jared changed to webpack it was a bit too late for me as my codebase is too big to rejig to work with the way infinite do things now.
Here's how I do it:

use a local mango and deploy your userModule and file structure in

[MANGO_HOME]/overrides/web/modules/mangoUI/web

mangoUI settings for userModule location are:
/modules/mangoUI/web/userModule.js

I like to throw a ?D=timestamp on the end to help if I've changed contents of the usermodule file.
I like the user module in the web directory then store all of my components etc in other directories beyond it.


Use git to commit all of my files that I need for the userModule and the userModule itself and push them into source control.


My mango cloud is actually a cloud based server that I host mango on, so I have full control of the system. This also means unfortunately if something goes to buggery it's my boss ringing me at some ungodly hour to fix it...


Where the main mango is hosted I pull the changes I have made and that updates all corresponding files.


To fight caching, when "requiring" certain files, create a version number constant at the top of the usermodule file. It's globally accessible and appends a dateTime string to it. So when files are called by mango you add on the end:


//Don't quote me on the DateTime format I'm on holiday!
const UM_VER = "?umVer=1.0.1_"+new Date().format("yyyyMMDDhhmm").toString();
//?umVer=1.0.1_202127010810

//which makes

define('./controllers/myNewCtrl.js'+UM_VER , function(newCtrl)
{

});

//or as an injected scope variable
['$scope', './service/myNewSvc.js'+UM_VER , function($scope,newSvc){
$scope.doThis = newSvc;
}
//other controller properties...
)

Hope that helps your build. I'll answer any other questions you may have later.
If you can implement nodeJS and use the webpack system Jared has implemented however, I'd recommend it as it gives you power over other users to amend any oversights or bugs in the main dashboard code and you can then build the dashboard files in the overrides directory with your own components as well. Saves you worrying about browser as much.
Fox
]]></description><link>https://forum.mango-os.com/topic/5059/development-and-production-environment-best-practices</link><guid isPermaLink="true">https://forum.mango-os.com/topic/5059/development-and-production-environment-best-practices</guid><dc:creator><![CDATA[MattFox]]></dc:creator><pubDate>Mon, 18 Jan 2021 14:41:57 GMT</pubDate></item><item><title><![CDATA[IP address, legacy UI]]></title><description><![CDATA[@shahmansoorali  it is currently setup with static IP but the subnet is wrong. i would like to fix that.
]]></description><link>https://forum.mango-os.com/topic/4897/ip-address-legacy-ui</link><guid isPermaLink="true">https://forum.mango-os.com/topic/4897/ip-address-legacy-ui</guid><dc:creator><![CDATA[shahmansoorali]]></dc:creator><pubDate>Mon, 03 Aug 2020 23:09:37 GMT</pubDate></item><item><title><![CDATA[Modules not loading after including them in git&#x2F;ma-core-public&#x2F;Core&#x2F;web&#x2F;modules]]></title><description><![CDATA[Final Update: It took some fiddling but installing the 3.7.x branch worked. All modules are loaded can now but placed in the git/ma-core-public/Core/web/modules directory and loaded into the build. If anyone is interested, I created documentation for the process I used to set up Eclipse for version 3.7.x. Feel free to reach out and I can share it.
]]></description><link>https://forum.mango-os.com/topic/4876/modules-not-loading-after-including-them-in-git-ma-core-public-core-web-modules</link><guid isPermaLink="true">https://forum.mango-os.com/topic/4876/modules-not-loading-after-including-them-in-git-ma-core-public-core-web-modules</guid><dc:creator><![CDATA[Gord Bond]]></dc:creator><pubDate>Wed, 15 Jul 2020 18:52:29 GMT</pubDate></item><item><title><![CDATA[Data storage to the drive F:]]></title><description><![CDATA[You can configure the location of the MangoNoSQL Database in the env.properties file.  You can also configure the backup locations under the various backup settings on the System Settings page.
Here is some information on the env.properties file https://help.infiniteautomation.com/installation-configuration#env-properties
These are some of the settings you might be interested in:
#Set the base path for where the NoSQL data will be stored, relative to $MA_HOME (can also be set to an absolute path)
db.nosql.location=databases

# Default database settings
# The path in the db.url is relative to MA_HOME, or can be absolute
db.type=h2
db.url=jdbc:h2:databases/mah2

]]></description><link>https://forum.mango-os.com/topic/4831/data-storage-to-the-drive-f</link><guid isPermaLink="true">https://forum.mango-os.com/topic/4831/data-storage-to-the-drive-f</guid><dc:creator><![CDATA[JoelHaggar]]></dc:creator><pubDate>Mon, 08 Jun 2020 14:58:18 GMT</pubDate></item><item><title><![CDATA[New Developer Documentation]]></title><description><![CDATA[@hazel there are no plans to update that documentation, your best bet is to review the code for our modules here:
https://github.com/MangoAutomation/ma-modules-public
If you can be specific about what you are trying to accomplish I might be able to point you in the direction of some code that will help your specific use-case.
]]></description><link>https://forum.mango-os.com/topic/4718/new-developer-documentation</link><guid isPermaLink="true">https://forum.mango-os.com/topic/4718/new-developer-documentation</guid><dc:creator><![CDATA[terrypacker]]></dc:creator><pubDate>Fri, 21 Feb 2020 14:09:46 GMT</pubDate></item><item><title><![CDATA[Monitoring water flow with alarm point]]></title><description><![CDATA[I think you should set up an alarm on a datapoint based upon if it exceeds an upper limit for 'n' minutes then use that to fire an event or whatever is necessary.
However if it's a moving difference/average you require, utilise a meta datapoint with the value that calculates those differences over the last so many minutes and returns it. Attach the event handler to the meta point and you'll be away.
Fox
]]></description><link>https://forum.mango-os.com/topic/4584/monitoring-water-flow-with-alarm-point</link><guid isPermaLink="true">https://forum.mango-os.com/topic/4584/monitoring-water-flow-with-alarm-point</guid><dc:creator><![CDATA[MattFox]]></dc:creator><pubDate>Thu, 21 Nov 2019 21:31:56 GMT</pubDate></item><item><title><![CDATA[Modbus Polling + Meta Points + Memory Leaks]]></title><description><![CDATA[Thanks Terry, I will send through some more logs hopefully they may contain more detail.
]]></description><link>https://forum.mango-os.com/topic/4581/modbus-polling-meta-points-memory-leaks</link><guid isPermaLink="true">https://forum.mango-os.com/topic/4581/modbus-polling-meta-points-memory-leaks</guid><dc:creator><![CDATA[HSAcontrols]]></dc:creator><pubDate>Mon, 18 Nov 2019 07:13:29 GMT</pubDate></item><item><title><![CDATA[Jaxb is not longer avaible in jdk11]]></title><link>https://forum.mango-os.com/topic/4535/jaxb-is-not-longer-avaible-in-jdk11</link><guid isPermaLink="true">https://forum.mango-os.com/topic/4535/jaxb-is-not-longer-avaible-in-jdk11</guid><pubDate>Wed, 23 Oct 2019 17:34:46 GMT</pubDate></item><item><title><![CDATA[AI, Machine Learning, Neural Networks, TensorFlow]]></title><description><![CDATA[@jared-wiltshire said in AI, Machine Learning, Neural Networks, TensorFlow:

Yes, no problem running TensorFlow JS in the cloud on NodeJS. However I am not sure what advantage this would afford over the native binaries.

True, I'm not sure either, just trying to think about all the possibilities, hehe.
@terrypacker said in AI, Machine Learning, Neural Networks, TensorFlow:

@jflores13 said in AI, Machine Learning, Neural Networks, TensorFlow:
Something to look into in the future for sure, but that approach would have its own problems to overcome.  For example getting the data from Mango to the model.

Yeeeah, I don't visualize how that interaction could be simplified. I guess it's just not as simple as I was hoping.
I'll keep looking for possible solutions to this and will share anything I can find.
Thanks!
]]></description><link>https://forum.mango-os.com/topic/4530/ai-machine-learning-neural-networks-tensorflow</link><guid isPermaLink="true">https://forum.mango-os.com/topic/4530/ai-machine-learning-neural-networks-tensorflow</guid><dc:creator><![CDATA[jflores13]]></dc:creator><pubDate>Tue, 22 Oct 2019 18:21:44 GMT</pubDate></item><item><title><![CDATA[Mango HTS Dual Ethernet (Individually Addressable)]]></title><description><![CDATA[@HSAcontrols
Using nano is more comfortable in my opinon. It is also nice to install midnight-commander to your Linux env for easier navigation in the system.
// Installing midnight commander via apt-get
apt-get install mc

// running midnight commander with sudo rights for editing system files
sudo mc

I also recommend configuring your midnight-commander so that when you leave your instance it stays in the directory you left it in, see here section "hold your horses" : http://klimer.eu/2015/05/01/use-midnight-commander-like-a-pro/
The link also gives you an overview of what midnight commander has to offer.
]]></description><link>https://forum.mango-os.com/topic/4508/mango-hts-dual-ethernet-individually-addressable</link><guid isPermaLink="true">https://forum.mango-os.com/topic/4508/mango-hts-dual-ethernet-individually-addressable</guid><dc:creator><![CDATA[ThomasEinasto]]></dc:creator><pubDate>Mon, 07 Oct 2019 00:43:39 GMT</pubDate></item><item><title><![CDATA[Basic Module Development Questions]]></title><description><![CDATA[I guess I have more questions about what you are trying to achieve -

Do you require the information retrieved from your external HTTP API to be available as data points / point values? (e.g. you want to store history for them in the Mango time series database, or you want the values to be available on the watch list etc)
Is the external HTTP API available on the internet / accessible from the client web browser? If so you may be able to request the data directly from the web browser via a XHR request.

]]></description><link>https://forum.mango-os.com/topic/4303/basic-module-development-questions</link><guid isPermaLink="true">https://forum.mango-os.com/topic/4303/basic-module-development-questions</guid><dc:creator><![CDATA[Jared Wiltshire]]></dc:creator><pubDate>Wed, 10 Jul 2019 14:51:48 GMT</pubDate></item><item><title><![CDATA[Status Code 406 - Future dated points not acceptable]]></title><description><![CDATA[Hi giovanni.persia, welcome to the forum!
Is the error correct, that the data values you are trying to set are in the future?
If yes, you can change how far into the future new values may be. This setting is under the Purge Settings in the system settings page, under administration.
[image: CWTD9sN.png]
]]></description><link>https://forum.mango-os.com/topic/4290/status-code-406-future-dated-points-not-acceptable</link><guid isPermaLink="true">https://forum.mango-os.com/topic/4290/status-code-406-future-dated-points-not-acceptable</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Tue, 02 Jul 2019 13:40:30 GMT</pubDate></item><item><title><![CDATA[Best way to fix wrong historic values]]></title><description><![CDATA[Hi @jflores13
I got the same issue as you.  Could not get the points to update.  Eventually used the CSV to delete the points ana then add them again with new values.
I found this quite odd as I I am almost 100% sure I have used the update in the past.
]]></description><link>https://forum.mango-os.com/topic/4180/best-way-to-fix-wrong-historic-values</link><guid isPermaLink="true">https://forum.mango-os.com/topic/4180/best-way-to-fix-wrong-historic-values</guid><dc:creator><![CDATA[CraigWeb]]></dc:creator><pubDate>Thu, 25 Apr 2019 19:42:33 GMT</pubDate></item><item><title><![CDATA[how to build a New Data Source from SQL]]></title><description><![CDATA[I was not so clear with this thing, but it do solved!
here is my solution:
"connectionUrl":"jdbc:mysql://localhost:3306/test",
"driverClassname":"com.mysql.jdbc.Driver",
Note: replace "localhost" "3306" "test" if needed.
]]></description><link>https://forum.mango-os.com/topic/4172/how-to-build-a-new-data-source-from-sql</link><guid isPermaLink="true">https://forum.mango-os.com/topic/4172/how-to-build-a-new-data-source-from-sql</guid><dc:creator><![CDATA[cuihe]]></dc:creator><pubDate>Mon, 22 Apr 2019 07:47:08 GMT</pubDate></item><item><title><![CDATA[Data point value]]></title><description><![CDATA[I'm not sure how your smart smoke detector is working, maybe it has a delay before it rings the alarm? Lots of smoke detectors work by having some radioactive Americium ionizing air, see: https://en.wikipedia.org/wiki/Americium#Ionization-type_smoke_detector
At some point they run out. It was an side comment that smoke detectors are both imperfect and fail eventually. Some laser based smoke detectors can be easily fooled by sufficient dust in the air!
]]></description><link>https://forum.mango-os.com/topic/4159/data-point-value</link><guid isPermaLink="true">https://forum.mango-os.com/topic/4159/data-point-value</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Tue, 16 Apr 2019 07:20:01 GMT</pubDate></item><item><title><![CDATA[A problem in [set data] [dataSource-HTTP receiver]]]></title><description><![CDATA[@craigweb thank you !
this problem solved!
]]></description><link>https://forum.mango-os.com/topic/4151/a-problem-in-set-data-datasource-http-receiver</link><guid isPermaLink="true">https://forum.mango-os.com/topic/4151/a-problem-in-set-data-datasource-http-receiver</guid><dc:creator><![CDATA[cuihe]]></dc:creator><pubDate>Fri, 12 Apr 2019 08:15:00 GMT</pubDate></item><item><title><![CDATA[Some basic questions about Mango Public Code]]></title><description><![CDATA[thank you！
I think I need to improve myself for some time.
It's simpler to use Mango.
]]></description><link>https://forum.mango-os.com/topic/4148/some-basic-questions-about-mango-public-code</link><guid isPermaLink="true">https://forum.mango-os.com/topic/4148/some-basic-questions-about-mango-public-code</guid><dc:creator><![CDATA[cuihe]]></dc:creator><pubDate>Wed, 10 Apr 2019 01:07:07 GMT</pubDate></item></channel></rss>