Skip to content

Instantly share code, notes, and snippets.

@KunYi
Created December 16, 2020 11:23
Show Gist options
  • Save KunYi/54674cceb161e84c0ee3b26fb6a81371 to your computer and use it in GitHub Desktop.
Save KunYi/54674cceb161e84c0ee3b26fb6a81371 to your computer and use it in GitHub Desktop.
a startup script for my weather station project
#!/bin/bash -e
# setting ip
#/sbin/ifconfig eth0 192.168.92.183/27 192.168.92.161 || true
# java -classpath WeatherStation2MQTT.jar com.uwingstech.Main -b test.mosquitto.org -t "FORMOSA00001/WeatherStation01/rx"
/usr/bin/java -jar /opt/weather/WeatherStation2MQTT.jar -b 10.50.19.11 -t "none/FORMOSA00001/WeatherStation01/rx"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment