Widgets Not Working

Why aren’t the widgets working on my website anymore?


PurpleAir Local Air Quality Sensors

3 Likes

Same… all of a sudden the widgets aren’t working.

2 Likes

Same problem here, my web page normally displays three widgets and now the spinner just spins and the widgets are never displayed. Links to the map showing where each sensor is does work. So sensors seem to be OK, just the widgets are failing.

2 Likes

Same… endpoint is not returning valid JS

$ curl 'https://www.purpleair.com/widget.json?callback=jQuery35107784175020361858_1730334496234&show=135112&key=xxxx&_=1730334496235'
jQuery35107784175020361858_1730334496234 ({"mapVersionString":""})

2 Likes

It looks like widget.json got changed to pa.widget.js when you get new widget code from the map. Hopefully the old URL can be fixed.

Edit: nevermind, the new widget code is also broken

2 Likes

The widgets are now working! YIPPY!

2 Likes

Yes @skyepn @richard47 @StormChaser45662 @ctandy

The widget issue should be fixed as of this morning. Please let us know if you continue to have problems.

3 Likes

The only thing that still isn’t working on the widget is that is still showing I don’t have a micro SD card in it


.

3 Likes

Hi @StormChaser45662

We released some updates for the widget that should have fixed this issue. Please let us know if you’re still experiencing it.

2 Likes

Still not showing that the MicroSD Card is installed.

1 Like

It still doesn’t show that my microSD card in installed on the widget on my website, but it still does on the PurpleAir Website.
http://stormchasercenter.net/PurpleAir.aspx

(attachments)

1 Like

@StormChaser45662, we recently pushed another update for the widget. Among other things, the SD detection issue is now fixed (we’ve verified this on your site as well).

1 Like

@StormChaser45662 @ctandy @richard47 @skyepn

We’ve pushed an update to the widget with some fixes and improvements. If anything isn’t working properly, please let us know and include either your widget code or a public link.

3 Likes

I’m trying to input a Widget on my high school course’s page:
“”<divid=‘PurpleAirWidget_97817_module_US_EPA_AQI_conversion_C0_average_10_layer_US_EPA_AQI’>Loading PurpleAir Widget… /div>

"

But it shows this:

Any reason why it’s showing the wrong sensor?

You need the following coding: below:


<div id='PurpleAirWidget_97817_module_US_EPA_AQI_conversion_C0_average_0_layer_US_EPA_AQI'>PurpleAir Widget Loading...</div>
<script src='https://www.purpleair.com/pa.widget.js?key=3SC22UPQB38KU9G9&module=US_EPA_AQI&conversion=C0&average=0&layer=US_EPA_AQI&container=PurpleAirWidget_97817_module_US_EPA_AQI_conversion_C0_average_0_layer_US_EPA_AQI'></script>