My Purpleair script is available from
Support for the Leuven Scripts => Menu: Demo - Purpleair.
There are two versions of the script. The basic version uses the data from the PurpleAir database. It displays only PM2.5 for all available times.
The mmore extensive versions uses data directly uploaded from the sensor to ones own webserver. It can therefor display PM1, PM2.5 and PM10 values and calculates the 24 hour values.
The script can use USA AQ calculations, but also European calculations.
This script is not as extensively tested as the other Leuven scripts. There are only 2 users of the PurpleAir sensor in the area. But the script is similar to the "Luftdaten sensor" script of which there are dozens of users.
I use both sensors at my personal site :
https://weer.sluispark.be/index.php?p=mnu_home&lang=enWim