Skip to main content

A Feuersoftware public API implementation

Project description

feuersoftware

feuersoftware is a library that allow you to interact with the Feuersoftware Connect Public API.

Example

from feuersoftware import PublicAPI

TOKEN = ""

with open("token.txt") as f:
    TOKEN = f.read().strip()

api = PublicAPI(token=TOKEN)

# Einsatz auslösen
api.operation(
    start="2018-08-30T08:00:00", 
    keyword="Brand", 
    status="new",
    alarm_enabled=True,
    address="Musterweg 4, 12345 Entenhausen", 
    position={"latitude":"47.592127",·"longitude":"8.296870"}, 
    facts="Küchenbrand", 
    ric="10B", 
    number=54321,
    properties=[{"key":"Fettbrand":"value":"Nein"},{"key":"Noch Personen im Gebäude","value":"Ja"}],
    updateStrategy="none"
    )
api.send()

# Fahzeug Status setzen
api.vehicle_status(
    radioid=12345678, 
    status=2, 
    position={"latitude":"47.592127",·"longitude":"8.296870"}):
api.send()

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

feuersoftware-0.0.6.tar.gz (2.3 kB view hashes)

Uploaded Source

Built Distribution

feuersoftware-0.0.6-py3-none-any.whl (3.5 kB view hashes)

Uploaded Python 3

Supported by

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