ESIRemote
A Python library to remotely control the environment in FwESI
Functionality
FwESI
expand
FwESI has a remote control (basically a local web server) where the user can control the application without having to interact with the computer itself.
This includes actions such as
- loading save file/sub save
- controlling variables of a fire engine (such as the height and length of the ladder)
- start a fire (in FwESI)
- check state of door
- show/hide elements
The last action is still quite buggy with smoke in the latest tested version (1.10.1) and needs to be fixed by the FwESI developers. Actions like video control are also a bit unstable.
What CAN'T be done:
- read/change coordinates of elements (like the user himself)
- get a livestream of the situation
- detect button presses (there are no buttons)
ESIRemote
The library automatically parses the available objects (also called OperatorActors), parameters and save files as Python objects.
By default, ESIRemote allows the user to modify the attributes of these objects. Changes are applied automatically, but this can be turned off.
Anything available on the remote server can be used with this library.
Installation
ESIRemote is still in early development, but can already be installed using PyPI:
pip install esiremote
Quick Start
Check out the (TODO) examples directory to get an idea of how you can use ESIRemote.
Before you can use this library, make sure the remote server is enabled. You can enable it by default in the settings.
Also make sure you have objects with the remote option enabled.
from esiremote import ESIRemote
remote = ESIRemote()
for operatoractor in remote.operatoractors:
print(operatoractor.name)
This little example lists all elements available.
TODO list
- Add more docstrings and comments
- Add more to readme (stuff like installation and usage)
- Add more helper functions (like search by ID, name, type, etc)
- Maybe do something like a custom list object with a function called "search_by_attribute" or something
- remove test code
- add some examples (and maybe supply scenes)
- make sure it works flawlessly (check the models especially)
- add
setup.pyorpyproject.toml - publish to PyPi with GH Actions
- add unittests
- Feature: load external save file (might not work at all)
Metadata
Release files for ESIRemote 0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| esiremote-0.5.tar.gz | 9.3 kB | Without provenance | Details for esiremote-0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ESIRemote-0.5-py3-none-any.whl | Python 3 | none | any | Details for ESIRemote-0.5-py3-none-any.whl |
Total release size: 20.1 kB
Release files / esiremote-0.5.tar.gz
| Download URL | esiremote-0.5.tar.gz |
|---|---|
| Size | 9.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
de6da7d3a55905a33651b401ced3395211c3030af9372a9619884320b093bec6
|
|
BLAKE2b-256 checksum How to use checksums |
3cf36f2db5b0f2b09d07450be44f87cf95e4769671ff30abcd87a2388ce5b4ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.5
|
Release files / ESIRemote-0.5-py3-none-any.whl
| Download URL | ESIRemote-0.5-py3-none-any.whl |
|---|---|
| Size | 10.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
561f4ffbc00accafe261b02be4917d13b5830d361da37d62dac5157cbb62b647
|
|
BLAKE2b-256 checksum How to use checksums |
568c182dae5a403874a8f26c2d0a16b9452e2c68a6b249f420884ecc6f0eb4f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.5
|
Security for ESIRemote 0.5
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.