Repository navigation
PurpleAir senor AQI #1054
|
I'm trying to display the AQI from the PurpleAir sensor in my neighborhood. On the PurpleAir map they give an embed code for individual sensors, but when I add it to my glance it only shows the loading text without pulling the data. Here is an example of their provided code as I have it in my glance.yml: Is there any way to make this work? |
Replies: 2 comments
|
Separate them. The script should be in document:
head: |
<script src='https://www.purpleair.com/pa.widget.js?key=12NYKPH9M2HG0AO9&module=US_EPA_AQI&conversion=C0&average=10&layer=US_EPA_AQI&container=PurpleAirWidget_127367_module_US_EPA_AQI_conversion_C0_average_10_layer_US_EPA_AQI'></script>
pages:
- name: Test
columns:
- size: full
widgets:
- type: html
source: |
<div id='PurpleAirWidget_127367_module_US_EPA_AQI_conversion_C0_average_10_layer_US_EPA_AQI'>Loading PurpleAir Widget...</div> |
Separate them. The script should be in
document