Tweeting Raspberry Pi info – part 2

I’ve made some small changes to the startup script published here:

  • Moved all of the configuration variables to the top of the script.
  • Added theĀ interfaces variable to configure with network interfaces should be checked for and included in the Tweet. By default, eth0 and wlan0 are defined, but you can change these as required.
  • If an interface is not found, the function will return an error message rather than failing on the exception.

The updated version is available from the GitHub repository.