Skip to content

devPeete/nextcloud_monitor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NextcloudMonitor

Python wrapper around Nextcloud monitor api

Installation

pip install nextcloudmonitor

QuickStart

>>> from nextcloudmonitor import NextcloudMonitor
>>> ncm = NextcloudMonitor("https://your_nextcloud_url", "nextcloud_admin_username", "nextcloud_app_password")
>>> ncm.data['nextcloud']['system']['version']
'16.0.5.1'
>>> ncm.data['activeUsers']['last24hours']
1

Notes:

  • The user must be a user that has access to the nextcloud monitor api (generally an admin user)
  • The nextcloud app password should be generated from the nextcoud security settings page.

Change Log

  • v1.0.0 : Initial Release
  • v1.1.0 : Added basic error handling for api errors
  • v1.2.0 : Allow ssl verification bypass
  • v1.2.1 : Privide more detailed feedback for api connection errors

About

Python wrapper around Nextcloud monitor api

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%