New update available

The following changes were made:

openmediavault 3.0.88

  • Various improvements.
  • Fix bug in ‘omv-mkconf issue’ command. Don’t run any hook scripts when executing ifquery.

Feature freeze for OMV3

OMV3 will go into maintenance mode now, this means there will be no new features but security and bugfixes. New features will be implemented in OMV4 instead.

New update available

The following changes were made:

openmediavault 3.0.87

  • Update locales.
  • Fix bug in \OMV\System::getNextDevice().

New update available

The following changes were made:

openmediavault 3.0.86

  • Update locales.
  • Various improvements in the WebUI.
  • Fix bug in omv-initsystem.
  • Fix bug in /etc/smartd.conf.
  • Mantis 0001788: Support all time zones including backwards compatible.
  • Mantis 0001790: Make S.M.A.R.T. scheduled jobs sortable by device.

How to use Python to execute a RPC

If you want to execute a RPC from an external host using Python, then you should use the following code.

import requests
import json

url='http://localhost/rpc.php'

session = requests.Session()
# Login and get the session cookie.
session.post(url, data=json.dumps({
	'service': 'session',
	'method': 'login',
	'params': {
		'username': 'admin',
		'password': 'xyz'
	}
}))
# Execute a RPC.
response = session.post(url, data=json.dumps({
	'service': 'system',
	'method': 'noop',
	'params': None
}))
print(response.json())
# Logout.
session.post(url, data=json.dumps({
	'service': 'session',
	'method': 'logout',
	'params': None
}))
# This RPC should fail because of an invalid session authentication.
response = session.post(url, data=json.dumps({
	'service': 'system',
	'method': 'noop',
	'params': None
}))
print(response.json())
session.close()