Turns out that the SEND TEST EMAIL doesn't send a test email using the values that you just entered but using the values that are saved. So you cannot test before saving.
Latest posts made by till
Email send failure
I'm using Mango 3.7. Recently I noticed I don't get any email alerts from Mango anymore. Event handlers are set up to send emails and they worked for years and years.
I went to email settings and confirmed the SMTP settings are still correct. I also tested the settings in a different tool and they definitely work.
When I hit the button to SEND TEST EMAIL, I get no email but an error message in Mango: Error sending email to 'email@example.com' — Email send failure
What can be wrong?
RE: How to connect to the mango database (for resetting admin password)?
@terrypacker Cool that works. Removing both .h2 and .db was the key. I'll
How to connect to the mango database (for resetting admin password)?
I've got the Web Console running (sudo)
Web Console server running at http://127.0.1.1:8081 (others can connect)
But it cannot find the DB. The path is correct, there is a
Too much data for a datapoint
I get this exception
device_hub 'myDevice': Script error in point "myPoint": com.infiniteautomation.tsdb.IasTsdbException: com.infiniteautomation.tsdb.impl.BadRowException: Exception trying to serialize bytes: Data length can not exceed 65536
when trying to stuff too much into a virtual datapoint.
What other options do I have for storing a large amount of alphanumeric data. It's JSON, so I'm eying the JSON store but can't find any working examples of how to access that from a meta datapoint.
The code in https://forum.mango-os.com/topic/4495/calling-json-store-item-in-scripting-datasource/2?_=1630557115032 gives me another exception:
java.lang.RuntimeException: java.lang.ClassNotFoundException: com.serotonin.m2m2.Common.getBean
I need to publish these JSON objects to another mango instance eventually, which works fine with my datapoints.
RE: Script context points as enumerable
So I found this on CONTEXT_POINTS
CONTEXT_POINTS CONTEXT_POINTS is a variable declared in all scripting environments. It is a map of variable names to context point runtimes.
Is there more documentation somewhere?
Your example gives me a list of elements like this:
DataPointRT(id=1, name=MyPoint) DataPointRT(id=2, name=MyOtherPoint)
From there, how do I get to the full datapoint details, like value, last value, timestamp etc?
Where do I find out more about context point runtimes