Skip to main content

gce.py

Build Status pyi pyi

Script Python pour interroger un module Teleinfo de GCE Electronics.

Documentation ERDF sur la téléinformation client.

Nécessite le module Requests (voir ici pour installer facilement sur un Synology).

Installation

Avec pip

pip3 install gce

Détection

Les modules Teleinfo écoutent sur le port UDP 30303. Lorsqu'ils reçoivent une trame en broadcast contenant le texte 'Discover GCE Devices', ils envoient une réponse. C'est peut-être la même chose pour un IPX800 mais je ne peux pas tester.

La réponse est composée de trois lignes faciles à analyser:

NOM<CR><LF>
ADRESSE MAC<CR><LF>
PORT<CR><LF>

Valeurs

Les valeurs de téléinformation client sont extraites de http://ECO-DEVICES/protect/settings/teleinfo1.xml

Usage en ligne de commande

Retrouver l'adresse IP du module teleinfo:

gce find [nom du device]

Exemple d'utilisation:

curl "http://$(gce find)/api/xdevices.json?cmd=10"

Afficher tous les champs

gce

Usage dans un autre script Python

#! /usr/bin/env python3
import gce
print(gce.teleinfo())

Licence et garantie

Aucune. Vous pouvez réutiliser le script sans restriction. Il est fourni "tel quel", sans aucune garantie.

Metadata

Release files for gce 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gce 1.0.2
File Size Uploaded Provenance
gce-1.0.2.tar.gz 4.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for gce 1.0.2
File Interpreter ABI Platform
gce-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 10.9 kB

Release files / gce-1.0.2.tar.gz

Download URL gce-1.0.2.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a6b3cd5039a0a20d128f6e4ccc4a6e31cb7f056070edf4442038e0fa2171a841
BLAKE2b-256 checksum
How to use checksums
c291929fa67d2c7ad8c4f3205e219e2f62bd2b9df2f16c55507acac790db26d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.5.6

Release files / gce-1.0.2-py3-none-any.whl

Download URL gce-1.0.2-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1d60f1967b07f204a41bc25159d1ace1d02275788c3f5aced82633fc9233b215
BLAKE2b-256 checksum
How to use checksums
2b4543ec8a854cbe2f1f7b9199b4b4dbfa81699947e6dc4f72c326bc785f4bcd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.5.6

Security for gce 1.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page