I'm trying to set up a build server so that every time it completes a build, it notifies/pings my Raspberry Pi, which will then run some scripts and do some testing stuff.
My first idea was to set up an API server on my Pi, and the server would send an HTTP POST request to my Pi. My problem is I'm on a work network and I'm unable to expose the server running on my Pi to the internet at large.
Anyone have any ideas for a different way for a server to ping a Raspberry Pi over the internet? Ideally some solution that is python scriptable.
Thanks.
MQTT
...scp
a file from your server to the RPi when the build is completed. Monitor the presence of this file on your RPi & start your script when it does. OR: from the server, do this:echo "command" | ssh user@yourRPihost