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?

1 Like

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>
1 Like

I have five widgets on a page for Barcelona, air quality, temp in F, temp in C, humidity, and feels-like and suddenly they all show just the air quality, no temps or humidity. Looks like this:

Code:

<h3>Barcelona  &nbsp;&nbsp; <a href='https://map.purpleair.com/1/m/i/lt/mTEMP/a0/p604800/cC0?key=44VYEFQ3T76Z7SBH&select=111331#12.71/41.39233/2.14593' target='map'>Map</a></h3>
<script>showeuropetime();</script><br>
<div style='display : inline-flex;' id='PurpleAirWidget_134054_module_AQI_conversion_C0_average_0_layer_topo'>Loading PurpleAir Widgets. Please wait... <img src='./graphics/spinner.gif'></div>
<script src='https://www.purpleair.com/pa.widget.js?key=BYEQQ1L7SXFR2XM9&module=AQI&conversion=C0&average=0&layer=topo&container=PurpleAirWidget_134054_module_AQI_conversion_C0_average_0_layer_topo'></script>

<div style='display : inline-flex;' id='PurpleAirWidget_134054_module_TEMP_conversion_C0_average_0_layer_topo'></div>
<script src='https://www.purpleair.com/pa.widget.js?key=BYEQQ1L7SXFR2XM9&module=TEMP&conversion=C0&average=0&layer=topo&container=PurpleAirWidget_134054_module_TEMP_conversion_C0_average_0_layer_topo'></script>

<div style='display : inline-flex;' id='PurpleAirWidget_134054_module_TEMP_C_conversion_C0_average_0_layer_topo'></div>
<script src='https://www.purpleair.com/pa.widget.js?key=BYEQQ1L7SXFR2XM9&module=TEMP_C&conversion=C0&average=0&layer=topo&container=PurpleAirWidget_134054_module_TEMP_C_conversion_C0_average_0_layer_topo'></script>

<div style='display : inline-flex;' id='PurpleAirWidget_134054_module_HUMIDITY_conversion_C0_average_0_layer_topo'></div>
<script src='https://www.purpleair.com/pa.widget.js?key=BYEQQ1L7SXFR2XM9&module=HUMIDITY&conversion=C0&average=0&layer=topo&container=PurpleAirWidget_134054_module_HUMIDITY_conversion_C0_average_0_layer_topo'></script>
<div style='display : inline-flex;' id='PurpleAirWidget_134054_module_HUMIDEX_F_conversion_C0_average_0_layer_topo'></div>
Feels like
<script src='https://www.purpleair.com/pa.widget.js?key=BYEQQ1L7SXFR2XM9&module=HUMIDEX_F&conversion=C0&average=0&layer=topo&container=PurpleAirWidget_134054_module_HUMIDEX_F_conversion_C0_average_0_layer_topo'></script>
</div>

1 Like

Here is the new Coding for the PurleAir Widgets
http://stormchasercenter.net/testerpage.aspx

<div id='PurpleAirWidget_134054_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=BYEQQ1L7SXFR2XM9&module=US_EPA_AQI&conversion=C0&average=0&layer=US_EPA_AQI&container=PurpleAirWidget_134054_module_US_EPA_AQI_conversion_C0_average_0_layer_US_EPA_AQI'></script>

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

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

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

<div id='PurpleAirWidget_134054_module_ESTIMATED_HUMIDEX_FAHRENHEIT_conversion_C0_average_0_layer_ESTIMATED_HUMIDEX_FAHRENHEIT'>Loading PurpleAir Widget...</div>
<script src='https://www.purpleair.com/pa.widget.js?key=BYEQQ1L7SXFR2XM9&module=ESTIMATED_HUMIDEX_FAHRENHEIT&conversion=C0&average=0&layer=ESTIMATED_HUMIDEX_FAHRENHEIT&container=PurpleAirWidget_134054_module_ESTIMATED_HUMIDEX_FAHRENHEIT_conversion_C0_average_0_layer_ESTIMATED_HUMIDEX_FAHRENHEIT'></script>
1 Like

<div id='PurpleAirWidget_134054_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=BYEQQ1L7SXFR2XM9&module=US_EPA_AQI&conversion=C0&average=0&layer=US_EPA_AQI&container=PurpleAirWidget_134054_module_US_EPA_AQI_conversion_C0_average_0_layer_US_EPA_AQI'></script>

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

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

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

<div id='PurpleAirWidget_134054_module_ESTIMATED_HUMIDEX_FAHRENHEIT_conversion_C0_average_0_layer_ESTIMATED_HUMIDEX_FAHRENHEIT'>Loading PurpleAir Widget...</div>
<script src='https://www.purpleair.com/pa.widget.js?key=BYEQQ1L7SXFR2XM9&module=ESTIMATED_HUMIDEX_FAHRENHEIT&conversion=C0&average=0&layer=ESTIMATED_HUMIDEX_FAHRENHEIT&container=PurpleAirWidget_134054_module_ESTIMATED_HUMIDEX_FAHRENHEIT_conversion_C0_average_0_layer_ESTIMATED_HUMIDEX_FAHRENHEIT'></script>
2 Likes

Thank you for sending the new code. I’m surprised that they would pull the rug out from under us and break all the existing systems displaying widgets. I was hoping that they would make a simple change to display the local date and time of the sensor instead of always showing the date and time of the computer displaying the widget.

They updated the codes because the old ones wasn’t working right.