This website is hosted on a Raspberry Pi Pico W, in the Robotlab, hotglued inside a Big Mouth Billy Bass. You can remotely control Big Mouth Billy by clicking the buttons on the main page.
7 |The Pico W runs MicroPython code to control the Fish motors, and to receive requests for web pages and to render out the webpages based on templates.
8 | br> 9 | br> 10 |Phew! is the web server, logging system, and page templating system use a new MicroPython library from Pimoroni
13 |The logging system enables you to log important information to the Pico W's local file system, noting the date and time, type of message and the message itself. 15 | The types of messages are: debug, info, warn, error.
16 |The logging system has a function called Truncate
which can be used to trim the log file down to a certain number of lines. This ensures the Pico W doesn't run out of space.
NTP is used to Synchronise the Pico W's realtime clock with a network type protocol server, which it does right after connecting to the local wifi network.
21 |This ensures the log files record the correct time, and uptime is correctly displayed on the main website.
22 | br> 23 | br> 24 |You can download this code yourself to have a play with by visiting: https://www.github.com/kevinmcaleer/bigmouth_wifi
26 |