I tried to run the entire script and got the message:
“dfu-util: Cannot open DFU device 2b04:d006” I am sure you know why.
The 2nd time the script was executed the final screen message was
File downloaded successfully
The new firmware version 0.5.4 is successfully installed
Use of the Particle app went also successfully, giving the BrewPI Spark an IP address 192.168.1.172 on the screen.
I have changed the IP-address in the maintenance panel (http://raspberrypi.local/#), but I cannot update the device list. I got the following error:
Error while receiving device configuration: Couldn’t write to socket:  Connection refused Is the script running?
The script is not running and I cannot get it running for some reasons?
I can Ping the device over my network, so far so good!
Thanks for your help!