Skip to content
This repository was archived by the owner on Jul 23, 2025. It is now read-only.

Commit 9764fe5

Browse files
authored
chore: sort json (#50)
1 parent b026518 commit 9764fe5

2 files changed

Lines changed: 78 additions & 80 deletions

File tree

json/ct-index.json

Lines changed: 72 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -5371,45 +5371,6 @@
53715371
},
53725372
"notes": []
53735373
},
5374-
"node-red": {
5375-
"name": "Node-Red",
5376-
"slug": "node-red",
5377-
"categories": [
5378-
16
5379-
],
5380-
"date_created": "2024-05-02",
5381-
"type": "ct",
5382-
"updateable": true,
5383-
"privileged": false,
5384-
"interface_port": 1880,
5385-
"documentation": null,
5386-
"website": "https://nodered.org/",
5387-
"logo": "https://github.com/home-assistant/brands/blob/master/custom_integrations/nodered/icon.png?raw=true",
5388-
"description": "Node-RED is a visual programming tool that allows developers and non-developers alike to easily wire together hardware devices, APIs, and online services to create custom applications. It provides a visual interface for building workflows, making it easy to create and modify complex integrations without having to write any code. Node-RED is used in a wide range of applications, from simple automations to complex integrations, and is known for its simplicity, versatility, and ease of use.",
5389-
"install_methods": [
5390-
{
5391-
"type": "default",
5392-
"script": "ct/node-red.sh",
5393-
"resources": {
5394-
"cpu": 1,
5395-
"ram": 1024,
5396-
"hdd": 4,
5397-
"os": "debian",
5398-
"version": "12"
5399-
}
5400-
}
5401-
],
5402-
"default_credentials": {
5403-
"username": null,
5404-
"password": null
5405-
},
5406-
"notes": [
5407-
{
5408-
"text": "To install themes, type `update` in the LXC console.",
5409-
"type": "info"
5410-
}
5411-
]
5412-
},
54135374
"nodebb": {
54145375
"name": "NodeBB",
54155376
"slug": "nodebb",
@@ -5450,6 +5411,45 @@
54505411
}
54515412
]
54525413
},
5414+
"node-red": {
5415+
"name": "Node-Red",
5416+
"slug": "node-red",
5417+
"categories": [
5418+
16
5419+
],
5420+
"date_created": "2024-05-02",
5421+
"type": "ct",
5422+
"updateable": true,
5423+
"privileged": false,
5424+
"interface_port": 1880,
5425+
"documentation": null,
5426+
"website": "https://nodered.org/",
5427+
"logo": "https://github.com/home-assistant/brands/blob/master/custom_integrations/nodered/icon.png?raw=true",
5428+
"description": "Node-RED is a visual programming tool that allows developers and non-developers alike to easily wire together hardware devices, APIs, and online services to create custom applications. It provides a visual interface for building workflows, making it easy to create and modify complex integrations without having to write any code. Node-RED is used in a wide range of applications, from simple automations to complex integrations, and is known for its simplicity, versatility, and ease of use.",
5429+
"install_methods": [
5430+
{
5431+
"type": "default",
5432+
"script": "ct/node-red.sh",
5433+
"resources": {
5434+
"cpu": 1,
5435+
"ram": 1024,
5436+
"hdd": 4,
5437+
"os": "debian",
5438+
"version": "12"
5439+
}
5440+
}
5441+
],
5442+
"default_credentials": {
5443+
"username": null,
5444+
"password": null
5445+
},
5446+
"notes": [
5447+
{
5448+
"text": "To install themes, type `update` in the LXC console.",
5449+
"type": "info"
5450+
}
5451+
]
5452+
},
54535453
"notifiarr": {
54545454
"name": "Notifiarr",
54555455
"slug": "notifiarr",
@@ -7097,29 +7097,29 @@
70977097
},
70987098
"notes": []
70997099
},
7100-
"prometheus-paperless-ngx-exporter": {
7101-
"name": "Prometheus Paperless NGX Exporter",
7102-
"slug": "prometheus-paperless-ngx-exporter",
7100+
"prometheus": {
7101+
"name": "Prometheus",
7102+
"slug": "prometheus",
71037103
"categories": [
71047104
9
71057105
],
7106-
"date_created": "2025-02-07",
7106+
"date_created": "2024-05-02",
71077107
"type": "ct",
71087108
"updateable": true,
71097109
"privileged": false,
7110-
"interface_port": 3000,
7110+
"interface_port": 9090,
71117111
"documentation": null,
7112-
"website": "https://github.com/hansmi/prometheus-paperless-exporter",
7113-
"logo": "https://raw.githubusercontent.com/paperless-ngx/paperless-ngx/main/resources/logo/web/svg/square.svg",
7114-
"description": "Prometheus metrics exporter for Paperless-NGX, a document management system transforming physical documents into a searchable online archive. The exporter relies on Paperless' REST API.",
7112+
"website": "https://prometheus.io/",
7113+
"logo": "https://raw.githubusercontent.com/loganmarchione/homelab-svg-assets/main/assets/prometheus.svg",
7114+
"description": "Prometheus is widely used to monitor the performance and health of various infrastructure components and applications, and trigger alerts based on predefined rules. It has a multi-dimensional data model and supports various data sources and exporters, making it an extremely flexible and scalable monitoring solution.",
71157115
"install_methods": [
71167116
{
71177117
"type": "default",
7118-
"script": "ct/prometheus-paperless-ngx-exporter.sh",
7118+
"script": "ct/prometheus.sh",
71197119
"resources": {
71207120
"cpu": 1,
7121-
"ram": 256,
7122-
"hdd": 2,
7121+
"ram": 2048,
7122+
"hdd": 4,
71237123
"os": "debian",
71247124
"version": "12"
71257125
}
@@ -7129,40 +7129,31 @@
71297129
"username": null,
71307130
"password": null
71317131
},
7132-
"notes": [
7133-
{
7134-
"text": "Please adjust the Paperless URL in the systemd unit file: /etc/systemd/system/prometheus-paperless-ngx-exporter.service",
7135-
"type": "info"
7136-
},
7137-
{
7138-
"text": "Please adjust the Paperless authentication token in the configuration file: /etc/prometheus-paperless-ngx-exporter/paperless_auth_token_file",
7139-
"type": "info"
7140-
}
7141-
]
7132+
"notes": []
71427133
},
7143-
"prometheus": {
7144-
"name": "Prometheus",
7145-
"slug": "prometheus",
7134+
"prometheus-paperless-ngx-exporter": {
7135+
"name": "Prometheus Paperless NGX Exporter",
7136+
"slug": "prometheus-paperless-ngx-exporter",
71467137
"categories": [
71477138
9
71487139
],
7149-
"date_created": "2024-05-02",
7140+
"date_created": "2025-02-07",
71507141
"type": "ct",
71517142
"updateable": true,
71527143
"privileged": false,
7153-
"interface_port": 9090,
7144+
"interface_port": 3000,
71547145
"documentation": null,
7155-
"website": "https://prometheus.io/",
7156-
"logo": "https://raw.githubusercontent.com/loganmarchione/homelab-svg-assets/main/assets/prometheus.svg",
7157-
"description": "Prometheus is widely used to monitor the performance and health of various infrastructure components and applications, and trigger alerts based on predefined rules. It has a multi-dimensional data model and supports various data sources and exporters, making it an extremely flexible and scalable monitoring solution.",
7146+
"website": "https://github.com/hansmi/prometheus-paperless-exporter",
7147+
"logo": "https://raw.githubusercontent.com/paperless-ngx/paperless-ngx/main/resources/logo/web/svg/square.svg",
7148+
"description": "Prometheus metrics exporter for Paperless-NGX, a document management system transforming physical documents into a searchable online archive. The exporter relies on Paperless' REST API.",
71587149
"install_methods": [
71597150
{
71607151
"type": "default",
7161-
"script": "ct/prometheus.sh",
7152+
"script": "ct/prometheus-paperless-ngx-exporter.sh",
71627153
"resources": {
71637154
"cpu": 1,
7164-
"ram": 2048,
7165-
"hdd": 4,
7155+
"ram": 256,
7156+
"hdd": 2,
71667157
"os": "debian",
71677158
"version": "12"
71687159
}
@@ -7172,7 +7163,16 @@
71727163
"username": null,
71737164
"password": null
71747165
},
7175-
"notes": []
7166+
"notes": [
7167+
{
7168+
"text": "Please adjust the Paperless URL in the systemd unit file: /etc/systemd/system/prometheus-paperless-ngx-exporter.service",
7169+
"type": "info"
7170+
},
7171+
{
7172+
"text": "Please adjust the Paperless authentication token in the configuration file: /etc/prometheus-paperless-ngx-exporter/paperless_auth_token_file",
7173+
"type": "info"
7174+
}
7175+
]
71767176
},
71777177
"prowlarr": {
71787178
"name": "Prowlarr",

misc/index.sh

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# including only the files that have a "type"="ct" key-value pair
66

77
# get the current directory
8-
DIR="$( pwd )"
8+
DIR="$(pwd)"
99

1010
# get the json directory
1111
JSON_DIR="$DIR/json"
@@ -20,11 +20,10 @@ rm -f $INDEX_FILE
2020
JSON_FILES=$(ls $JSON_DIR)
2121

2222
# create the index file
23-
echo "{" > $INDEX_FILE
23+
echo "{" >$INDEX_FILE
2424

2525
# loop through the json files
26-
for JSON_FILE in $JSON_FILES
27-
do
26+
for JSON_FILE in $JSON_FILES; do
2827
# get the type of the json file
2928
JSON_TYPE=$(jq -r '.type' $JSON_DIR/$JSON_FILE)
3029

@@ -36,8 +35,7 @@ do
3635
# write the contents to the index file
3736
# removing ".json" from the filename
3837

39-
echo "\"${JSON_FILE%.*}\": $JSON_CONTENT," >> $INDEX_FILE
40-
38+
echo "\"${JSON_FILE%.*}\": $JSON_CONTENT," >>$INDEX_FILE
4139

4240
#echo "\"$JSON_FILE\": $JSON_CONTENT," >> $INDEX_FILE
4341
fi
@@ -47,6 +45,6 @@ done
4745
sed -i '$ s/.$//' $INDEX_FILE
4846

4947
# close the json object
50-
echo "}" >> $INDEX_FILE
51-
48+
echo "}" >>$INDEX_FILE
5249

50+
jq --sort-keys . "$INDEX_FILE" >"$INDEX_FILE".tmp && mv "$INDEX_FILE".tmp "$INDEX_FILE"

0 commit comments

Comments
 (0)