5iver
(Scott Rushworth)
11
PersistenceViewer is just making calls to the REST API.
This works in Jython…
from core.actions import Exec
RESULT = Exec.executeCommandLine("/bin/sh@@-c@@/usr/bin/curl -s --connect-timeout 1 --max-time 10 -X GET --header \"Accept: application/json\" \"http://localhost:8080/rest/persistence/items/HEM1_Total_Energy?starttime=2019-11-14T05:55:55&endtime=2019-11-14T06:30\"", 10000)
Install the RESTDOCS UI and look under Persistence.