Use touch /home/pi/wifi-reconnect.sh to create shell script file,
with following content:
#!/bin/bash
SSID=$(/sbin/iwgetid --raw)
| #!/bin/bash | |
| # tunejack.sh uses the TuneIn public API (at opml.radiotime.com) to search for | |
| # a radio station, print out its details and try to play it somehow. | |
| if [ "$#" -eq 0 ]; then | |
| echo "$0: search for a radio station using the TuneIn API" | |
| echo "Usage: $0 PATTERN" | |
| exit 1 | |
| fi |
| /* | |
| Added complex matches by Shimon Doodkin 2012 | |
| Developed by Elijah Rutschman 2009 - http://elijahr.blogspot.com/2009/03/javascript-cron.html | |
| */ | |
| /* | |
| a typical cron entry has either wildcards (*) or an integer: | |
| .---------------- minute (0 - 59) | |
| | .-------------- hour (0 - 23) | |
| | | .------------ day of month (1 - 31) |
Find the Discord channel in which you would like to send commits and other updates
In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe!