Skip to main content

A python package for the public fireplan API.

Project description

python-fireplan

PyPI version Run tests and lint

Ein Python Modul um die Öffentliche fireplan API.

Installation

pip install python-fireplan

Verwendung

  1. API-Key in Fireplan erzeugen Create Api Key

  2. Einen Standort Registrieren

from fireplan import Fireplan

fp = Fireplan("Mein-API-Key")
fp.register("Mein-Standort")

Alarm senden

fp.send_alarm({
  "ric": "1234567",
  "subRIC": "A",
  "einsatznrlst": "20250429001",
  "strasse": "Musterstrasse",
  "hausnummer": "23",
  "ort": "Musterhausen",
  "ortsteil": "Musterteil",
  "objektname": "Schule",
  "koordinaten": "48.6928957,9.1928973",
  "einsatzstichwort": "Probealarm",
  "zusatzinfo": "Was ist denn da los?"
})

Einsatzliste abrufen

operations = fp.get_operations_list(2024)

Einsatztagebuch abrufen

logs = fp.get_operations_log("123456","Mein-Standort")

Einsatztagebuch Eintrag anlegen

fp.add_operations_log({
  "id": 2025015,
  "einsatzNrLeitstelle": "20250429001",
  "tagebuchText": "Mein Text",
  "von": "Max Meier",
  "an": "Herbert Müller",
  "standort": "Grossbrand Fa. Heinrich",
  "typ": "Info",
  "timestamp": "2025-04-29T14:04:25.459Z"
})

FMS Status senden

fp.set_fms_status({
  "fzKennung": "1234567",
  "status": "2",
  "statusTime": "2025-04-29T14:08:22.030Z"
})

[!NOTE]
fzKennung korrespondiert mit der Spalte FZRIC unter Administration -> Optionen -> Fahrzeuge

Kalender abrufen

calendar = fp.get_calendar()

Inbound SMS

[!IMPORTANT]
Dieser API Endpoint ist momentan noch nicht implementiert.

Sonstige Dienste abrufen

other_services = fp.get_other_services(2024)

Termine abrufen

events = fp.get_events(1)

[!NOTE]
Die Kalendernummer die übergeben werden muss kann über den API Endpoint get_calendar() herausgefunden werden.

Termin anlegen

fp.add_event({
  "startDate": "2025-04-28T14:08:22.030Z",
  "endDate": "2025-04-29T14:08:22.030Z",
  "allDay": True,
  "subject": "Papiersammlung",
  "location": "Gerätehaus",
  "description": "Halbjährliche Papiersammlung",
  "jahr": "2025",
  "monat": "04",
  "kalenderID": 15
})

[!NOTE]
Die KalenderID die übergeben werden muss kann über den API Endpoint get_calendar() herausgefunden werden.

Testing

uv run pytest

Notice of Non-Affiliation and Disclaimer

We are not affiliated, associated, authorized, endorsed by, or in any way officially connected with Fireplan, or any of its subsidiaries or its affiliates. The official Fireplan website can be found at https://www.fireplan.de.

The name Fireplan as well as related names, marks, emblems and images are registered trademarks of their respective owners.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python_fireplan-0.3.3.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_fireplan-0.3.3-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file python_fireplan-0.3.3.tar.gz.

File metadata

  • Download URL: python_fireplan-0.3.3.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for python_fireplan-0.3.3.tar.gz
Algorithm Hash digest
SHA256 2d82ffdb58c768fcfd5c8445faa0d7d0bb14a7febe37a474d0edfaa26017322e
MD5 52c59e572cee1d500f4e3f39841eea4e
BLAKE2b-256 9186d7f0dd377fb63cf8f705858716e6391adf9ff0db8bcf72cd7b342a26a6fc

See more details on using hashes here.

Provenance

The following attestation bundles were made for python_fireplan-0.3.3.tar.gz:

Publisher: publish-to-pypi.yml on Bouni/python-fireplan

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file python_fireplan-0.3.3-py3-none-any.whl.

File metadata

File hashes

Hashes for python_fireplan-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 86da6bbb9f1688a9daa7b9768dbdcd226a33794dd03e91187d753540cfa67876
MD5 8f06bb8450f1fe50c7e387d67f7d9268
BLAKE2b-256 563d2a3817072fac686b149abb618132815fb71a31ba4d0610ee91d1e14115d2

See more details on using hashes here.

Provenance

The following attestation bundles were made for python_fireplan-0.3.3-py3-none-any.whl:

Publisher: publish-to-pypi.yml on Bouni/python-fireplan

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page