@ottawa_admin on many linux distros resolv.conf tends to have a blurb similar to this "# This file is managed by man:systemd-resolved(8). Do not edit." I can't remember how the ES works but that's something that will burn you if it's not configured correctly.
Restarting the mango service itself would not affect it since this is a system level function. What you'd need to do is restart the whole ES so that Linux reboots and then have a look to see if your entries are still there.
Posts made by psysak
-
RE: MangoES Timestamp Does Not Match Local Time
-
RE: Mango on ARM linux
@joelhaggar exactly what I have, the M1. Great to know thank you.
-
RE: MangoES Timestamp Does Not Match Local Time
@ottawa_admin I may be wrong but I think that resolv.conf gets overwritten on reboot.
-
Mango on ARM linux
I just wanted to ask if anyone has run mango on an ARM linux distro? I assume the Mango ES is an ARM processor but I was just wondering if anyone has explicitly run it on something like Ubuntu server for arm and if there was anything specific you had to do?
Thank you
-
RE: MangoES Timestamp Does Not Match Local Time
Definitely seems like classic clock drift. If the device has internet access you'll probably want to try and ping whatever NTP server is configured in the device. If it can't reach it then you'll need to change it.
-
RE: MangoES V3 - won't update
You ever find a way? I have the same issue right now.
-
Bacnet publisher multistate points
Hey, quick question. Does anyone know how to configure multistate points for use with bacnet publisher? I setup a virtual point and wanted to publish it via bacnet multistate but it doesn't work, I get errors saying inconsistent-configuration.
-
RE: Is there a way to add a token to HTTP JSON Retriever DS?
Works like a charm.
-
Fail2Ban on mango server
Have you guys ever implemented something like fail2ban on a mango server? I think my mango got taken down by something scanning it aggressively
-
RE: Is there a way to add a token to HTTP JSON Retriever DS?
Sorry @phildunlap you're right I missed details. Yes it was just a string which stores the variable name of a context object.
So can you set on a this[serial]? I'll try it later -
RE: Is there a way to add a token to HTTP JSON Retriever DS?
So I dug around in the forum a bit and for now I think I'm going to do a pointquery for the xid and then set from there :)
-
RE: Is there a way to add a token to HTTP JSON Retriever DS?
Hey @MattFox thanks for the response.
Hmm. So what I'm doing is trying to substitute serial with a string from the api call, and that string is supposed to be the same name as the "Variable Name" of a point I created in that scripting DS. I noticed that if I hard code a value of serial so for example
serial = 123456789;
Where 123456789 is an existing data point with that Variable Name, if I print serial it is an object. So I assume the issue is that I get a string back from the API and then I'm trying to substitute that for serial and call .set() on it. This is not a reference to the data point right?
-
RE: Is there a way to add a token to HTTP JSON Retriever DS?
OK laaast question :)
I've created this in a scripting source
function getRequest(_id, serial) { // This portion is the part which actually retreives the data from api HttpBuilder.get("https://thisisadomain/api/v2/sensors/" + _id + "/analyses/timeseries?dateRequest=dtd&units=l&resolution=h", headers, parameters).err(function(status, headers, content) { throw "Script failed with HTTP status: " + status; }).resp(function(status, headers, content) { // Needs to be 200 status or you can set the accepted statuses // If all is well then call the parsing function and pass the JSON to it //print(content); match = RegExp(regex).exec(content); //print(match[1]); serial.set(match[1]); }).execute(); }
Ignoring that there is clearly other parts missing which I didn't paste here, my question revolves around the line
serial.set();
I should have known that doesn't work because serial is not a variable name, but I want to someone use serial to point to the correct variable in the data source. Basically, I am passing a serial and id number to this function which calls an api passing the id to it which in turn returns a value, I regex that value and want to set a variable with the "Variable Name" of serial. I have created these variables in the DS prior to this. How do I get that reference to the point so I can run set on it?
-
Is there a way to add a token to HTTP JSON Retriever DS?
Just curious if it's possible to add a token to the ds?
-
RE: Thank you to everyone for the help
@phildunlap said in Thank you to everyone for the help:
The versatility of Mango could lead you back to it even if you find yourself in another industry, or perhaps even tinkering with home automation systems, and you'll be welcomed back should it!
Absolute fact, I'll most likely do some stuff around the house with it. The melding of the old school controls world with modern API's, web based stuff etc is pretty impressive and powerful!
I'll be working a lot with Haystack in my next adventure so if there's some opportunity to bring Mango into the fold I will do what I can to make that happen.
-
Thank you to everyone for the help
Hey guys, just wanted to let you know that I will be moving on from my current role and as such I wanted to thank you for all the help you've provided me over the last couple years. You've taken the time to answer all my questions even when many of them were probably way too basic and I appreciate that greatly. Mango has a pretty high learning curve to make it do some of the things I needed it to but the support you provided me makes up for that in spades. You may see a colleague of mine in here at some point in the future or you may hear from the company about some engineering services but I can't know for sure.
I'm not leaving the industry so it's possible I may be back but for now thank you and good luck in the future.
By the way, when is 3.6 due out?
-
Can I use alphanumeric points for generating tables and/or reports?
Just curious, if I use an alpha point to store something akin to csv data can an excel report do anything with that and is it possible to somehow do any math on the data in there?
For example lets say I store something like
1,2,3,4 - timestamp:xxx
4,3,2,1 - timestamp:other_xxxCan any math be done on the individual "columns"?
-
RE: Filter data before plotting
I'm still curious about how this would be done but TBH I just achieved the same result by changing the chart properties to not go below 0
-
Filter data before plotting
Hey hey, quick question I hope. Is it possible to filter out certain point values before plotting in Mango? For example I'm using maPointValues to get some deltas but some of those values are waaaay too negative to plot on a serial chart. I've spent the last hour poking at how angular filters work but I'm getting nowhere. Is possible to filter out all negative numbers for example?
-
RE: Creating list of items from rest response
WOW!! That's something! Thank you @MattFox , I'll give this a go.