Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix authentication flow #2

Merged
merged 2 commits into from
Aug 7, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix the invert condition
  • Loading branch information
alanolimont authored Jun 18, 2022
commit f90687eafb76d8adb7d95b44b0be066d2f339b19
4 changes: 2 additions & 2 deletions run
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ do
DOWN=$(cat /tmp/fastlog | cut -d' ' -f5)
UP=$(cat /tmp/fastlog | cut -d' ' -f9)

if [[ -z "${MQTT_PASS}" ]]; then
if [[ "${MQTT_PASS}" ]]; then
echo "Sending Data to MQTT ($MQTT_SERVER)"
mosquitto_pub -u $MQTT_USER -P $MQTT_PASS -h $MQTT_SERVER -t $MQTT_DOWN -m $DOWN
mosquitto_pub -u $MQTT_USER -P $MQTT_PASS -h $MQTT_SERVER -t $MQTT_UP -m $UP
Expand All @@ -28,4 +28,4 @@ do

sleep $SLEEP

done
done