we should perhaps limit ourselves to assuming that the pi is internet connected and the Pi's web server is just a websocket API to communicate with the remote (actual web) server.
alternatively, we could just deploy mostly the same web server on the pi... but then we probably wouldn't want to run postgres on the pi and save all the data in both places... or would we?