Build an Anvil web app and deploy it to a Raspberry Pi
Channel: Ben Nuttall
Date: 2020-06-01

How to build an Anvil app to display a Raspberry Pi's board info and graph the CPU temperature. This video tutorial shows you how to construct the app, and deploy it to a Raspberry Pi using the Mythic Beasts Pi cloud.

0:00 Intro
1:28 Start building the app - design the layout
5:37 Create mock server functions for pi info
10:57 Set up button handler for joke
13:44 Set up data table
14:49 Create mock save temperature function
17:48 Retrieve temperature data from database
21:40 Plot temperature data on graph
24:05 Order Raspberry Pi server
30:15 Provision Raspberry Pi - install requirements
34:58 Clone Anvil app onto Raspberry Pi
37:10 Launch Anvil app server
43:00 Test Pi info functionality on command line
47:56 Create real Pi info server functions
52:52 Create background task for logging CPU temperature
1:01:47 Wrap up and demo working app

Clone this app in Anvil (mock version): https://anvil.works/build#clone:VSPXKHLKL3BPYLKX=K3C6MJV6OXLKMSP7LQUWYNAB
Clone the Pi version on a Raspberry Pi: https://github.com/bennuttall/anvil-rpi-temp-graph