kk7ds / pynx584

Python library and server for talking to NX584/NX8E interfaces
GNU General Public License v3.0
29 stars 26 forks source link

Question about version info #74

Open pepelillo opened 1 year ago

pepelillo commented 1 year ago

Hello, is there any method to get the version info via CLI? I do not found it in docs and the CLI -h info. Thanks

kk7ds commented 1 year ago

Yes:

https://github.com/kk7ds/pynx584/blob/master/nx584_client#L180

And yes, the lack of useful CLI --help output is something that needs fixing. Perhaps I should change the name of this issue to reflect that need, since the version thing exists?

pepelillo commented 1 year ago

but isn't it a parameter to get the panel version from the client? or am I wrong? I meant the pynx584 version...... server (and client)

kk7ds commented 1 year ago

No:

https://github.com/kk7ds/pynx584/blob/master/nx584/api.py#L166-L171

It's not really the pynx584 version, but the API version. Maybe it's not granular enough for what you're asking for, but it does let you know if you're talking to a new-enough-for-your-client version of the server.