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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for feuersoftware-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f9eb2595942202ad5f37a8fc61415cc3cf3f8c79eff538bcc95c2222dd2a905 |
|
MD5 | e39e14c7ca7e5e221cf4c05cd963f52e |
|
BLAKE2b-256 | dfac9369bea10c4cd24c052f858253f2c0595c778a14227c2cf1ef75b44fda89 |