Skip to content
This repository has been archived by the owner on Oct 22, 2022. It is now read-only.

Simplified Instructions #7

Open
MysticRyuujin opened this issue Mar 18, 2021 · 0 comments
Open

Simplified Instructions #7

MysticRyuujin opened this issue Mar 18, 2021 · 0 comments

Comments

@MysticRyuujin
Copy link
Contributor

MysticRyuujin commented Mar 18, 2021

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 😄

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant