Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ajout de collectes #52

Open
scalmaa opened this issue Jan 11, 2025 · 0 comments
Open

Ajout de collectes #52

scalmaa opened this issue Jan 11, 2025 · 0 comments

Comments

@scalmaa
Copy link

scalmaa commented Jan 11, 2025

Bonjour

Est-il possible de collecter les informations suivantes

  • mémoire : https://mabbox.bytel.fr/api/v1/device/mem
    {
    "device": {
    "mem": {
    "total": 957560,
    "free": 511572,
    "cached": 111780,
    "committedas": 236732
    }
    }
    }

  • led : https://mabbox.bytel.fr/api/v1/device/led (permet de collecter le statut des ports ethernet)
    {
    "led": {
    "power": "off"
    },
    "ethernetPort": [
    {
    "id": 1,
    "state": "Down"
    },
    {
    "id": 2,
    "state": "Up"
    },
    {
    "id": 3,
    "state": "Up"
    },
    {
    "id": 4,
    "state": "Up"
    },
    {
    "id": 5,
    "state": "Down"
    }
    ],
    "screen": {
    "state": "off",
    "counter": 128766
    }
    }
    ]

  • cpu : https://mabbox.bytel.fr/api/v1/device/cpu
    {
    "device": {
    "cpu": {
    "time": {
    "total": 1697168,
    "user": 831457,
    "nice": 340,
    "system": 848595,
    "io": 175,
    "idle": 48488190,
    "irq": 16776
    },
    "process": {
    "created": 152082,
    "running": 1,
    "blocked": 0
    },
    "temperature": {
    "main": 46407
    }
    }
    }
    }

  • info (version, ...) : https://mabbox.bytel.fr/api/v1/device

  • {
    "device": {
    "now": "2025-01-11T09:45:02+0100",
    "status": 1,
    "numberofboots": 7,
    "modelname": "F@st5688b",
    "modelclass": "F5688b-osin",
    "optimisation": 1,
    "user_configured": 1,
    "display": {
    "luminosity": 2,
    "luminosity_extender": 100,
    "state": "."
    },
    "main": {
    "version": "24.6.12",
    "date": "2024-11-08T15:56:18Z"
    },
    "reco": {
    "version": "24.6.12",
    "date": "2024-11-08T15:42:46Z"
    },
    "running": {
    "version": "24.6.12",
    "date": "2024-11-08T15:55:39+0100"
    },
    "spl": {
    "version": "3.6.2"
    },
    "tpl": {
    "version": "3.6.2"
    },
    "ldr1": {
    "version": "4.0.2"
    },
    "ldr2": {
    "version": "4.0.2"
    },
    "firstusedate": "2024-10-03T01:32:04Z",
    "uptime": 126747,
    "using": {
    "ipv4": 1,
    "ipv6": 1,
    "ftth": 1,
    "adsl": 0,
    "vdsl": 0

  • Synthèse : https://mabbox.bytel.fr/api/v1/device/summary

  • {
    "device": {
    "now": "2025-01-11T09:50:41+0100",
    "status": 1,
    "default": 1,
    "modelname": "F@st5688b",
    "serialnumber": "127213048216797"
    }
    }

Il faut être au préalable authentifié (et avoir obtenu un token: https://mabbox.bytel.fr/api/v1/device/token)

MERCI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant