Ham Radio API 🔗
This is an add-on for the Ham Radio mod that allows transmitting text messages between servers or a local client via a Web API. To use the mod, you need to enable HTTP/HTTPS requests. To do this, add the following line to your minetest.conf: secure.http_mods = ham_radio_api
How it works 🔗
Place a transmitter and a receiver in the world, and configure their transmit and receive frequencies. Before using, make sure the selected frequencies are free and not currently in use. Share your frequency with a friend or acquaintance playing on another server or client to establish communication. The frequency range transmitted through the Web API can be limited using the parameters ham_radio_api.min_frequency and ham_radio_api.max_frequency.
API 🔗
The Web API is implemented at: https://apocalypse.texnoblog.uz
Currently, only basic message transmission is implemented. In the future, the mechanics may be expanded.
Example of API usage:
The transmitter sends a request: https://apocalypse.texnoblog.uz/api/hamRadio/set/?frequency=5&text=Text+for+broadcast
Response on successful transmission:
{ "status": "ok", "frequency": 5, "text": "Text for broadcast" }
The receiver sends a request: https://apocalypse.texnoblog.uz/api/hamRadio/get/?frequency=67000
Response:
{ "status": "ok", "frequency": 67000, "text": "[ Radio | singleplayer ] test" }