Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
Kadi4
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Lucía Elizo Gómez
Kadi4
Commits
9c0758dd
Commit
9c0758dd
authored
Jun 02, 2026
by
Lucía Elizo Gómez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Biaprint Plugin
parent
24b7fc9a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
12 deletions
+12
-12
kadi_plugin_biaprint/README.md
+12
-3
kadi_plugin_biaprint/kadi.cfg
+0
-8
kadi_plugin_biaprint/kadi_plugin_biaprint/plugin.py
+0
-1
No files found.
kadi_plugin_biaprint/README.md
View file @
9c0758dd
...
@@ -48,12 +48,21 @@ setup(
...
@@ -48,12 +48,21 @@ setup(
## Configuración en /opt/kadi/config/kadi.py
## Configuración en /opt/kadi/config/kadi.py
```
python
```
python
PLUGINS
=
[
"
...
"
,
"biaprint"
]
PLUGINS
=
[
"
influxdb"
,
"zenodo
"
,
"biaprint"
]
PLUGIN_CONFIG
=
{
PLUGIN_CONFIG
=
{
"influxdb"
:
{
"test"
:
{
"url"
:
"https://foo.bar"
,
}
},
"zenodo"
:
{
"base_url"
:
"https://foo.bar"
,
"client_id"
:
"foo"
,
"client_secret"
:
"bar"
,
},
"biaprint"
:
{
"biaprint"
:
{
"host"
:
"https://192.168.128.44"
,
"api_token"
:
"TU_TOKEN"
,
# INTRODUCIR TOKEN DE CUENTA KADI4MAT
"api_token"
:
"TU_TOKEN"
,
"upload_dir"
:
"/tmp/biaprint_uploads"
,
"upload_dir"
:
"/tmp/biaprint_uploads"
,
},
},
}
}
...
...
kadi_plugin_biaprint/kadi.cfg
deleted
100644 → 0
View file @
24b7fc9a
PLUGINS = ["biaprint"]
PLUGIN_CONFIG = {
"biaprint": {
"api_token": "pat_286fd4dd7b415a0448c4d9be052a509adf1ac396494613fb",
"upload_dir": "/tmp/biaprint_uploads",
},
}
kadi_plugin_biaprint/kadi_plugin_biaprint/plugin.py
View file @
9c0758dd
...
@@ -229,7 +229,6 @@ def _build_extras(metricas: dict) -> list:
...
@@ -229,7 +229,6 @@ def _build_extras(metricas: dict) -> list:
if
isinstance
(
value
,
bool
):
if
isinstance
(
value
,
bool
):
extras
.
append
({
"key"
:
key
,
"type"
:
"str"
,
"value"
:
str
(
value
)})
extras
.
append
({
"key"
:
key
,
"type"
:
"str"
,
"value"
:
str
(
value
)})
elif
isinstance
(
value
,
(
int
,
float
)):
elif
isinstance
(
value
,
(
int
,
float
)):
# Igual que el script: todo numérico va como float
extras
.
append
({
"key"
:
key
,
"type"
:
"float"
,
"value"
:
float
(
value
)})
extras
.
append
({
"key"
:
key
,
"type"
:
"float"
,
"value"
:
float
(
value
)})
else
:
else
:
extras
.
append
({
"key"
:
key
,
"type"
:
"str"
,
"value"
:
str
(
value
)})
extras
.
append
({
"key"
:
key
,
"type"
:
"str"
,
"value"
:
str
(
value
)})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment