# Web widget conversion factor not being applied

**URL:** <https://community.purpleair.com/t/web-widget-conversion-factor-not-being-applied/5835>\
**Category:** Bug Reports\
**Created:** [August 1, 2023, 5:32am UTC](https://community.purpleair.com/t/web-widget-conversion-factor-not-being-applied/5835 "2023-08-01T05:32:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![peterwong](https://sea2.discourse-cdn.com/flex020/user_avatar/community.purpleair.com/peterwong/32/3224_2.png) [@peterwong](https://community.purpleair.com/u/peterwong)\
**Post date:** [August 1, 2023, 5:32am UTC](https://community.purpleair.com/t/web-widget-conversion-factor-not-being-applied/5835/1 "2023-08-01T05:32:55Z")

</div>

hello all

I’ve “built” a quick and dirty page just to host the widget for my sensor:

```
https://asl.hapahaus.com/weatherwong-widget.html

```

as can be seen in the widget string (view source on linked page), the displayed value should have the ALT cf=3 conversion factor applied. however, only the unconverted value shows. this exact same widget correctly shows the conversion factor when you bring it up on the purpleair map.

i have tried it with other conversion factors as well, but the widget will always only show the unconverted value.

---

<div class="post-metadata">

**Author:** ![dwhitemv](https://sea2.discourse-cdn.com/flex020/user_avatar/community.purpleair.com/dwhitemv/32/1508_2.png) [@dwhitemv](https://community.purpleair.com/u/dwhitemv)\
**Post date:** [August 3, 2023, 4:18am UTC](https://community.purpleair.com/t/web-widget-conversion-factor-not-being-applied/5835/2 "2023-08-03T04:18:00Z")

</div>

Looking at the widget code, the ‘ALT cf=3’ conversion is not implemented, so it will default to No conversion. There are implementations only for None, AQandU, LRAPA, US EPA, and WOODSMOKE.

---

<div class="post-metadata">

**Author:** ![peterwong](https://sea2.discourse-cdn.com/flex020/user_avatar/community.purpleair.com/peterwong/32/3224_2.png) [@peterwong](https://community.purpleair.com/u/peterwong)\
**Post date:** [August 3, 2023, 5:25am UTC](https://community.purpleair.com/t/web-widget-conversion-factor-not-being-applied/5835/3 "2023-08-03T05:25:06Z")

</div>

ok, but then why does it work with this conversion on the purpleair map? isn’t the widget the same?

otherwise, are there plans to bring the widget’s capabilities up to par with the map?

thanks for your help

---

<div class="post-metadata">

**Author:** ![dwhitemv](https://sea2.discourse-cdn.com/flex020/user_avatar/community.purpleair.com/dwhitemv/32/1508_2.png) [@dwhitemv](https://community.purpleair.com/u/dwhitemv)\
**Post date:** [August 3, 2023, 6:14am UTC](https://community.purpleair.com/t/web-widget-conversion-factor-not-being-applied/5835/4 "2023-08-03T06:14:22Z")

</div>

The widget and map are different code. I suspect the widget is an earlier version of the map code with some adaptations, but hasn’t been kept up to date with map additions.
