OMV 6 API

  • This command works sudo omv-rpc -u admin "SMB" "getShareList" '{"start":0,"limit":25}'. Are you passing start and limit? They are required.

    No, I didnt even tried that, as they are optional everywhere else. Thanks.


    I have already asked HA community to submit feature request and how they want to use it.

    May as well make this to a fully featured integration, since I already commited into supporting it further.

    • Official Post

    as they are optional everywhere else.

    Any function like getShareList that validates input params with rpc.common.getlist is going to require them.

    omv 7.7.10-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.8 | compose 7.6.10 | cterm 7.8.7 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.3.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Any function like getShareList that validates input params with rpc.common.getlist is going to require them.

    Ah, I see. None of those I chosen for use so far had rpc.common.getlist validation.

    I have still not finished going through all the endpoints, since I'm testing everything that looks useful using my API client and reviewing what makes sense for HA.

    Of course I dont need all of them, many dont have any use for automation.


    I also found sources for official addons, so no more problems here. Thank you very much for your help.

    Not sure about extras yet, but from my OMV days I remember those were widely used. I still need to install that package in my dev envinroment and see what would be useful for automation purpouses. But I think I will wait for next integration version for that.


    Looks like I have a lot of work in front of me :)

  • Is network activity available through API? It was one of requested features and I see its use, but I cannot find it in API.

    Btw, OMV6 UI looks really good. I was just testing it today and made OMV6 supported by integration.

    • Official Post

    Is network activity available through API?

    I don't think so. The web interface generates graph images from collectd info.

    omv 7.7.10-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.8 | compose 7.6.10 | cterm 7.8.7 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.3.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • If the snmp plugin is installed snmp will show network stats. Plus a lot more info.


    Thanks I have been thinking about using HA. Will have to look into it. How do we get your plugin?

    Yea, but SNMP would be different integration. SNMP integration is actually already build into HA.

    All my integrations are available directly through HACS, no need to add custom repositories, just install HACS.

    • Official Post

    Yea, but SNMP would be different integration. SNMP integration is actually already build into HA.

    All my integrations are available directly through HACS, no need to add custom repositories, just install HACS.

    Is HACS an acronym I am not aware of? Just installed and don't see that or the snmp either.


    Will look more later.


    Thanks

    • Official Post

    I created a feature request for this. Please add more details.

    https://github.com/openmediavault/openmediavault/issues/1247


    Reply from Votdev:

    "If the data is displayed in the UI, then it is available via RPC API; because the UI is using it to fetch the data.

    You should get a little bit more clearer which data you are interested in. Please understand that i do not have the time to read the whole forum post to pick the information. Please describe it here."

    Here being github.


    I can paste what you reply if you dont have a git account.


    Thanks

  • Is HACS an acronym I am not aware of? Just installed and don't see that or the snmp either.


    Will look more later.


    Thanks

    HACS is a Home Assistant Community Store:

    https://hacs.xyz/


    HA SNMP doc, it does not have GUI setup as far as I know:

    https://www.home-assistant.io/integrations/snmp/


    I have github account, no worries. After all everything I do is opensource and available there :)

    I will look into it tomorrow. I think only RRD graphs were available, but I may be mistaken.


    EDIT: Thanks, I will implement network sensors once next OMV update is released :)

  • Just want to say, I'm very happy, that my attempt to connect the right people together worked out and there are results of this cooperation. Thank you all, guys, for all the effort!


    HA rocks, OMV rocks and Tomaa rocks double!


    :*

    to all open source volunteers!

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!