You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/howto-api-image-export.md
+9-5Lines changed: 9 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,20 @@
1
1
You can use the XDMoD API to image export your saved metric explorer charts. A local XDMoD account is **required** to authenticate through the API.
2
2
3
-
The following Python script will export your saved metric explorer charts. The `dotenv`library is recommended when authenticating through XDMoD API. You can install the `dotenv` library using:
3
+
The following Python script will export your saved metric explorer charts. The `dotenv`and `requests` libraries are used when authenticating through the XDMoD API. You can install these libraries through:
4
4
5
-
`$ pip install python-dotenv`
5
+
```shell
6
+
pip install python-dotenv
7
+
pip install requests
8
+
```
6
9
7
10
Before running the script,
8
11
9
-
1. Create a `.env` file with your local XDMoD account credentials in the same directory as the script
12
+
1. Install the required dependencies listed above.
13
+
1. Create a `.env` file with your local XDMoD account credentials in the same directory as the script.
10
14
1. Update `site_address` within the script with site address associated with your XDMoD instance.
11
15
1. Confirm the `image_format` within the script.
12
16
13
-
The script will export your saved metric explorer charts to the current working directory.
17
+
The script will export your saved metric explorer charts to the current working directory.**\*Note:** Replace `<XDMOD_URL_HERE>` with your site address.
0 commit comments