johnnyt Posted October 12, 2023 Share Posted October 12, 2023 Next time you have this plugin "up on the hoist", would you be able to add the device serial as a value one could use in a program? I record my readings in an ISY web file (e.g. @webpage:@append:mydir/VOCdata.htm) and use excel to analyze my data, and I'm considering something more sophisticated using PowerBI or InfluxDB. The only thing that remains unique over time for some of my devices is the device serial number because I move them around and rename them to something representing the location they are in at that time. I need both a consistant unique identifier and a meaningful short name as separate data fields. Thanks for considering it. Quote Link to comment
Jimbo.Automates Posted May 22 Share Posted May 22 Sorry I missed this post as well, must not have marked this forum for notifications. I'd prefer not to do this since the serial number is already available in the node_name, can't you use that? Quote Link to comment
johnnyt Posted May 22 Author Share Posted May 22 9 hours ago, Jimbo.Automates said: I'd prefer not to do this since the serial number is already available in the node_name, can't you use that? How do I access node_name in a program, e.g. write it to a variable and/or write it to a file using custom messages and the built-in web server? It doesn't come up in the selection of options I see right now. Quote Link to comment
Jimbo.Automates Posted May 23 Share Posted May 23 Custom messages can use ${sys.program.#.name} if triggered from a program, or the name directly ${sys.node.n019_s_2930020110.name} Quote Link to comment
johnnyt Posted May 23 Author Share Posted May 23 the second example kind of worked but it returns more than just the serial number (e.g. 2930133445), which is all I want. It returns: node[n001_s_2930133445] With no "grep" function when creating custom messages, I have no way to take just the number I need out of the string created. So I guess I'll need to find a way to parse it out of the file after the fact if it's not easy to put it in as another device attribute. Not the end of the world. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.