Hi everyone, I’m very new to Ignition and I’m trying to create a simple app that can monitor a UPS device, but I’m getting stuck and could really use some help. What I’m hoping to do is build a Perspective view that pings a UPS to see if it's online and also uses SNMPv1 to pull live data from the device — specifically the load percentage and the internal temperature, but displayed in degrees Fahrenheit. I’d like the app to show this data alongside a UPS image, a load bar, and temperature text so it looks clean and easy to read.
I’m not sure I installed the SNMP module correctly because when I try to add a device, I don’t see “SNMP Device” as an option. If someone could walk me through how to install the SNMP module and then how to set up an SNMP connection, create the right OPC tags, and display everything in Perspective, I’d really appreciate it. Since I’m still learning Ignition, the more specific and step-by-step your help can be — like what to click and what to enter — the better. Thanks so much in advance!
Kind of but not really because I am trying to connect to the web interface and pull from the snmpv1 and make an app that displays the load from the ups and its temp in fahrenheit.
This does not create a device it adds the scripting function of system.snmp.get('address', port, ['OID1', 'OID2', ...], 'community')
I have never used this module but installed it without any issues. in your modules list on the gateway you should see it at the bottom.
Open up the script console and start typing the command in and play with it. it only adds one function.
You will need to create your own tags to hold this information returned by this function.
I played with that same SNMP module and it does work. I keep thinking there was some catch with it that caused an error in certain circumstances or something, but once I figured it out, it worked well. (May have been something to do with the formatting of the OID). You just have to set up a gateway timer script to poll it periodically.