Ein Python Modul um die Öffentliche Feuersoftware API.
Project description
Feuersoftware
Feuersoftware is a library that allow you to interact with the Feuersoftware Connect Public API.
[!IMPORTANT]
A lot of API routes are not yet implemented. If you need a specific API route, open an issue or submit a Pull request an I try to implement it ASAP.
Example
Setup the API
from feuersoftware import FeuersoftwareAPI
TOKEN = '2xgRoQfoMGb4IveCDJIZqOO1l8hZZ5jT5mAw7SSk1otrFSq50IA2HIYB3luEpv7Vw8BWwG'\
'Y2zV96VUkOF3FCZs2OP03qaTWF3CDrUHOKndvLIFTTgx0FCMBTFBRF1DfG4g3rs8BSMHB4'\
'6qph1AlxOZ6parmJlp90V3GQB4EoI6DFdKE4SZeBuu46mXoaDlSmpTTS3FCpeG7oEUJVgy'\
'pLZkZSFPRng5HdKhp6HG2XmNIMAtKTG3DAUWuKRi3cZ4JstLj05y4r7jt81g4DYXz9gVYc'\
'UWk2pOkIZ9RPmu0s4LlaXHEK3TJlxLIUt5eHIzPUVKXyhdJDckviPsTYNfRxkpcNGd0vAb'\
'zfzwMadgb4xaOi1v6ZpsRfXyOPgpudcnO6rwwi9TlAWNZ2075CO7HVFEP31yGhXmYsdFwj'\
'ne3UIraWovMWHqeyv2yQLigKLePDAgXYUFqQpZ9P5ScznSMUg0ZnxS0Miy0qKe9zDYtqTk'\
'qQVwrUGfGVFp4Ti83NJLCCGUOCmF0ovOB28mYyQIqGAi2MDaNIuAvz6HT1tGAo5nYdzOeu'
api = FeuersoftwareAPI(TOKEN)
Receive data about running operations
api.get_operations()
Start new operation
alarm_data = {
"Start": "2025-05-15T12:19:48.909Z",
"End": "2025-05-15T12:19:48.909Z",
"Status": 0,
"AlarmEnabled": True,
"Keyword": "string",
"Address": {
"Street": "string",
"HouseNumber": "string",
"ZipCode": "string",
"City": "string",
"District": "string"
},
"Reporter": {
"Name": "string",
"PhoneNumber": "string"
},
"Position": {
"Latitude": 0,
"Longitude": 0
},
"Facts": "string",
"Ric": "string",
"Number": "string",
"Source": "string",
"Properties": [
{
"Key": "string",
"Value": "string",
"Priority": 0
}
],
"AlarmedVehicles": [
{
"Id": 0,
"RadioIdentifier": "string"
}
],
"AssignedVehicles": [
{
"Name": "string",
"VehicleId": 0,
"RadioId": "string",
"Assigned": "2025-05-15T12:19:48.909Z",
"Alerted": "2025-05-15T12:19:48.909Z",
"Finished": "2025-05-15T12:19:48.909Z",
"Status1": "2025-05-15T12:19:48.909Z",
"Status2": "2025-05-15T12:19:48.909Z",
"Status3": "2025-05-15T12:19:48.909Z",
"Status4": "2025-05-15T12:19:48.909Z",
"Status7": "2025-05-15T12:19:48.909Z",
"Status8": "2025-05-15T12:19:48.909Z"
}
]
}
api.post_operation(alarm_data)
If you want to update a running operation, you can pass an argument to api.post_operation
:
api.post_operation(alarm_data, update_strategy="byNumber")
update_strategy
can be one of four strings: "none", "byNumber", "byAddress", "byPosition"
[!NOTE]
Only Start and Keyword are mandatory
Set vehicle status
status_data = {
"Status": 3,
"Position": {
"Latitude": 47.59902386911071,
"Longitude": 8.334801219413004
},
"StatusTimestamp": "2025-05-15T12:24:08.905Z",
"PositionTimestamp": "2025-05-15T12:24:08.905Z",
"Source": "ILS"
}
api.post_vehicle_status(radioid=12345678, status_data)
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
Built Distribution
File details
Details for the file feuersoftware-0.2.4.tar.gz
.
File metadata
- Download URL: feuersoftware-0.2.4.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
be8bd26655c694df1a3a35767b02e0bb75e19e2849d4283b4acb7b91cf38b18a
|
|
MD5 |
d111e67e009a43e51a2d2eaec6929c9f
|
|
BLAKE2b-256 |
b526efdce5e004bba69c6493775082f3a97a23e1961eb3786e5cc855f23a3a99
|
Provenance
The following attestation bundles were made for feuersoftware-0.2.4.tar.gz
:
Publisher:
publish-to-pypi.yaml
on Bouni/feuersoftware
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
feuersoftware-0.2.4.tar.gz
-
Subject digest:
be8bd26655c694df1a3a35767b02e0bb75e19e2849d4283b4acb7b91cf38b18a
- Sigstore transparency entry: 213472419
- Sigstore integration time:
-
Permalink:
Bouni/feuersoftware@feb2419f282f2fee84fb2bc01b2b055b55f61b9e
-
Branch / Tag:
refs/tags/0.2.4
- Owner: https://github.com/Bouni
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
publish-to-pypi.yaml@feb2419f282f2fee84fb2bc01b2b055b55f61b9e
-
Trigger Event:
release
-
Statement type:
File details
Details for the file feuersoftware-0.2.4-py3-none-any.whl
.
File metadata
- Download URL: feuersoftware-0.2.4-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
8a93d156791e537a61733137992f8195b04ea899ef7f2c894aae5748ed4985ac
|
|
MD5 |
ca1f61cebbaf135f3558ed7ea8de298f
|
|
BLAKE2b-256 |
7ee52fd5e65835b7b3c2ab5a82ac0656529db54b437d3f264dcbe8dade1ed15b
|
Provenance
The following attestation bundles were made for feuersoftware-0.2.4-py3-none-any.whl
:
Publisher:
publish-to-pypi.yaml
on Bouni/feuersoftware
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
feuersoftware-0.2.4-py3-none-any.whl
-
Subject digest:
8a93d156791e537a61733137992f8195b04ea899ef7f2c894aae5748ed4985ac
- Sigstore transparency entry: 213472421
- Sigstore integration time:
-
Permalink:
Bouni/feuersoftware@feb2419f282f2fee84fb2bc01b2b055b55f61b9e
-
Branch / Tag:
refs/tags/0.2.4
- Owner: https://github.com/Bouni
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
publish-to-pypi.yaml@feb2419f282f2fee84fb2bc01b2b055b55f61b9e
-
Trigger Event:
release
-
Statement type: