• MattFox

    @mihairosu Did you run sudo aptitude as I instructed? There is an option in there for kernels.

    posted in MangoES Hardware read more
  • MattFox

    If you're concerned about a growing database, which is bizarre because the nosql database takes up very little space. Set up a USB on the mangoES to export your nosql and configuration backups to.
    Judging by what you are saying, you want to use mango on the raspberry Pi or some sort of program to talk to the trackers. Do note that given how the free version works there is no mango tcp publisher as that is a paid module. Depending on how the pi's connect you could utilise the mangoES to talk to the pi's through a virtual serial socket or sending http requests via a mango script. The other way from the Pi's can be via socat or even a nodeJS based app. What you want to do is very straightforward However!
    I feel more information is required to better accommodate what you want to achieve. Craig's idea has too many assumptions (IE what the client can afford, how critical the data is, what the guaranteed uptime is etc).
    I personally use the orangePi with our systems and mango for on site control based assignments. And have no concerns whatsoever.

    posted in Mango Automation general Discussion read more
  • MattFox

    If you are unsure about regular expressions: regexr.com is a darned good resource and has helped me on many occasions. It also has a glossary of terms you can use in order to best 'capture' the groups of data you desire.

    I use Weather Underground's API for my data (wunderground.com) as it provides a flexible API as well as forecasting.
    and would suggest that but it appears some do-gooders have decided to shut the api down in two months for a more favourable pay 20x more for everything...
    If I find something soon that works I'll keep you informed. Personally, I'd use an http query (namely curl) from a bash script to generate a file which could be in CSV format from an API that mango could parse into a datafile datasource. But that's just my approach. Keeps the API calls low too.

    posted in How-To read more
  • MattFox

    Alternatively you go by the means of using the web server with your own frontend which talks to the mangoApi. That way you can set up the site to work however you like. Do note though that will make things more complex when it comes to getting help as we will not be able to match apples with apples.

    Fox

    posted in Mango Automation Installation read more
  • MattFox

    That wholly depends on your preferred context setting. If you want updates with the timestamp, use update for the context, otherwise set to change instead.

    change the dropdown under the meta point script for context to only work on changes as opposed to value updates.

    0_1538946589483_7a30d5ed-c6a2-4b33-abb0-4d89389f6d5f-image.png

    To
    0_1538946615470_c7b58929-268f-4850-9571-0150e6754fa2-image.png

    However to make things easier for yourself and ensure your values are the same and prevent running code as well, you could run a series of if statements to check if

    point.value!==point.lastValue
    

    and simply return the metapoint's current value if the statement is false.

    That's my ten cents worth.

    Fox

    posted in User help read more
  • MattFox

    Nicely done!
    I'll get an ES updated and will test with my code.

    posted in User help read more
  • MattFox

    Thanks for hearing my pleas Jared. It's a bit of a struggle at the moment.

    You will likely need to ensure it doesnt affect charts and points/values also otherwise you will be stuck in a constant loop of having to reload all point info everytime it disconnects. I may have to rewrite to use ajax so i can at least store the information on the client side. Its a pain because I heavily use point queries and they use tags based on the username and json settings.

    posted in User help read more
  • MattFox

    The problem is the fact the user session disappears. it needs a connection to keep the session alive. All pages go faint/blank. even the watchlist as you know disconnects and goes blank when there is no connection. Makes me feel as if AngularJS is not practical for DOM intensive/orientated code.

    as for markup one example would be ng-if="User.current.username!='admin'"

    posted in User help read more
  • MattFox

    In more context they are my custom pages but they do utilise mango's angular directives.
    Some pages show different content depending on the user that is logged in and this is reflected with ng-if statements. However because of this, due to shoddy internet connections out in rural areas, The page disappears if the websocket connection is lost. Very frustrating when we need the pages to work for installers to test out hardware as they set it up.

    Is there any other way around this? I cannot work with the mango dashboard if the page keeps disconnecting from the mango instance if the websocket is somewhat intermittent. If needs be I'll rewrite my controllers but I need to get past the issue of the page losing all of its content just because the internet has hit a dead spot.

    posted in User help read more