Hello,
I need to configure the ChirpStack MQTT Forwarder
and ChirpStack Concentrator
in an advanced way in ChirpStack Gateway OS
.
I understand the uci
configuration allows to generate the configuration files when the init.d
chirpstack services in openWrt are restarted.
The uci configuration can be modified from the LuCI web interface or via the uci cli.
However the configuration files of the ChirpStack MQTT Forwarder
and ChirpStack Concentrator
applications do not seem to be fully implemented with the uci configuration system.
For example the commands
and metadata
of the ChirpStack MQTT Forwarder
do not seem to be implemented.
[metadata]
[metadata.static]
serial_number="1234"
[metadata.commands]
datetime=["date", "-R"]
[commands]
reboot=["/usr/bin/reboot"]
And, the gateway_id
configuration for the concentrator only works with the semtech sx1301 chips.
config sx1302
option gateway_id '0000000000000000'
[gateway]
gateway_id="0000000000000000"
Is this planned, or can I contribute to implement it, at least for the uci cli.
I started working on the subject on my side.
Is there any uci documentation for chirpstack services or does everything go through the interface?
Thanks in advance if you have more info.
brocaar
November 19, 2024, 8:42am
2
Contributions are welcome
Is there any uci documentation for chirpstack services or does everything go through the interface?
There is no documentation, about this, but I’m using the OpenWrt utilities for this. For the MQTT Forwarder you can find the implementation here:
For the Concentratord:
Hello,
Perfect, thanks for the answer.
I made two Pull Requests.
This one implements the custom gateway_id
for sx1302
chipsets
chirpstack:master
← devleesch001:master
opened 11:22AM - 13 Nov 24 UTC
The gateway_id in uci config for concentratord it's ignored by config builder.
…
The objective is made possible to configure gateway_id from user config.
I don't know if other methods already exists, but it work for sx1301 and I used the same method
Linked with #10
And this one adds the management of commands
, metadata
.
chirpstack:master
← devleesch001:feat-uci-mqtt-forwarder-add-commands-and-metadata
opened 09:43AM - 19 Nov 24 UTC
Implemente `Commands` and `Metadata` of `chirpstack-mqtt-forwarder` with UCI in … `chirpstack-mqtt-forwarder.sh` for openWrt init.d service.
UCI config file
```uci
config commands 'reboot'
option command '["/usr/bin/reboot"]'
config commands 'shutdown'
option command '["/usr/bin/shutdown"]'
config metadata 'datetime'
option command '["date", "-R"]'
config metadata 'serial_number'
option static '1234'
```
generate
```yaml
[metadata]
[metadata.static]
serial_number=1234
[metadata.commands]
datetime=["date", "-R"]
[commands]
reboot=["/usr/bin/reboot"]
shutdown=["/usr/bin/shutdown"]
```
All this from the uci
cli only
system
Closed
February 16, 2025, 8:23pm
5
This topic was automatically closed after 90 days. New replies are no longer allowed.