You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 22, 2022. It is now read-only.
So, when I'm reading the instructions it basically tells me to do this:
service gpd stop
service mosquitto stop
uci set gridplus.remote_mqtt_address=<address>:<port>
uci commit
Which sets uci get gridplus.remote_mqtt_address to return <address>:<port>
Then it tells me to add that block comment to the /etc/init.d/mosquitto file so that the mosquitto config doesn't get overwritten.
However, there's nothing that would get overwritten? The ${REMOTE_MQTT_ADDRESS} is pulled from uci get gridplus.remote_mqtt_address so this is an unnecessary step, I think. It wouldn't cause and problems for the config to get overwritten.
In fact, by adding that block comment, you ensure that future updates to uci set gridplus.remote_mqtt_address don't propigate to the cat /etc/mosquitto/mosquitto.conf file automatically, and you have to go update it there as well manually.
The only thing that actually needs to be modified (potentially) is the bridge_capath /etc/ssl/certs/ part to add a comment in front of it to disable the SSL check, if you're not using SSL.
Which means the entire setup can be simplified into:
service gpd stop
service mosquitto stop
uci set gridplus.remote_mqtt_address=<address>:<port>
uci commit
sed -i 's/^bridge_capath/#bridge_capath/' /etc/init.d/mosquitto
service mosquitto start
service gpd start
Which is a lot cleaner and easier to understand than the whole block comment section 😄
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
So, when I'm reading the instructions it basically tells me to do this:
Which sets
uci get gridplus.remote_mqtt_address
to return<address>:<port>
Then it tells me to add that block comment to the
/etc/init.d/mosquitto
file so that the mosquitto config doesn't get overwritten.However, there's nothing that would get overwritten? The
${REMOTE_MQTT_ADDRESS}
is pulled fromuci get gridplus.remote_mqtt_address
so this is an unnecessary step, I think. It wouldn't cause and problems for the config to get overwritten.In fact, by adding that block comment, you ensure that future updates to
uci set gridplus.remote_mqtt_address
don't propigate to thecat /etc/mosquitto/mosquitto.conf
file automatically, and you have to go update it there as well manually.The only thing that actually needs to be modified (potentially) is the
bridge_capath /etc/ssl/certs/
part to add a comment in front of it to disable the SSL check, if you're not using SSL.Which means the entire setup can be simplified into:
Which is a lot cleaner and easier to understand than the whole block comment section 😄
The text was updated successfully, but these errors were encountered: