PurpleAir Setup http protocol error.

Hello,

Just got my new gadget Pupleair.
Going into extra/misc/customer screen settings.

Enter the Mac as Sensor Id (as that is what is showing up in the json file)
Enter the Local IP address.

Then I get this error.
151: HTTP protocol error.500 Internal Server Error. (See screen Dump)

The PurpleAir seems to be uploading to the purplair site so i assume all systems go.

any idea why I get this http protocol error?

Thanks
Henk

From the original thread, try this:

Thanks Niko.

I am pretty sure have tried that, tried again to make sure.

Still no joy.

see if you can find its local IP
see this thread
http://discourse.weather-watch.com/t/64344

and more info:
Brian, to access the main display (data display and WiFi settings display) of my local (as outside my home/office) PurpleAir sensor through my browser I use the following link: ‘http://192.168.200.145/’ - to access and view the JSON data produce by the PurpleAir sensor through my browser, I use the following link: ‘http://192.168.200.145/json’.

This is what the JSON data file looks like:
Code: [Select]
{“SensorId”:“xx:xx:xx:xx:xx:xx”,“DateTime”:“2017/08/16T01:05:28z”,“Geo”:“AirMonitor_30f7”,“Mem”:28656,“Id”:7394,“Adc”:0.00,“lat”:48.796833,“lon”:-123.632027,“elevation”:123.85,“version”:“2.49j”,“uptime”:295475,“rssi”:-67,“hardwareversion”:“2.0”,“hardwarediscovered”:“2.0+PMSX003A+PMSX003B+BME280”,“current_temp_f”:82,“current_humidity”:34,“current_dewpoint_f”:50.87,“pressure”:996.99,“pm1_0_atm_b”:5.32,“pm2_5_atm_b”:7.18,“pm10_0_atm_b”:7.80,“pm1_0_cf_1_b”:5.32,“pm2_5_cf_1_b”:7.18,“pm10_0_cf_1_b”:7.80,“p_0_3_um_b”:1102.43,“p_0_5_um_b”:308.52,“p_1_0_um_b”:36.17,“p_2_5_um_b”:2.45,“p_5_0_um_b”:0.35,“p_10_0_um_b”:0.35,“pm1_0_atm”:5.71,“pm2_5_atm”:8.20,“pm10_0_atm”:8.29,“pm1_0_cf_1”:5.71,“pm2_5_cf_1”:8.20,“pm10_0_cf_1”:8.29,“p_0_3_um”:1528.39,“p_0_5_um”:334.85,“p_1_0_um”:36.63,“p_2_5_um”:3.39,“p_5_0_um”:0.34,“p_10_0_um”:0.23}

The ‘SensorId’ tag (where you see a bunch of ‘x’) is in fact the (inique) MAC address of the sensor.

Should you want to have the JSON data file, please let me know…

Brian,

Thanks for your reply,
If you see the screen shots in the first post, you will find that I already tried that. Unless I do something really wrong (which is very possible).

H

try ticking, use local IP

Ok I set in the setting screen the following:

Sensor ID I left blank.
Local ip i entered http:///json
I ticked Use Local Data

When I click test, I do not get the error. Fingers crossed.

H

what was the Mac address that you were using?
as I want to test that here (as that tries to get the data from the purpleair web site ( you would need to use the Mac address that the purpleair web data has for your sensor)

actually the sensor ID is not a Mac Address
but instead a number (e.g 1256)
I think that ID number is on the actual sensor?

Brian, the ID is assigned when you register. From page 7 of the original thread:

[size=83]The sensor ID number is only assigned once a PurpleAir unit has been registered (through the PurpleAir site) and data has started uploading to the Thingspeak cloud storage.[/size]

You have to look for your ID in this big file, search for your location, lat, longitude or whatever. https://map.purpleair.org/json

The entry will look something like this {“ID”:2883,“ParentID”: (this is my ID 2883).

Indeed Henk and Brian, the sensor ID will not be available (or assigned) until the PurpleAir unit has connected to the Internet and has started sending its data to the Thingspeak cloud storage.

Henk, if you still cannot find the correct IP address that your router has assigned to your PurpleAir unit, may I recommend that you install the free NirSoft utility Wireless Network Watcher - in the ‘Advanced Options’ (the F9 key), set the program to scan the IP addresses that your network is using. You should see something about the ‘PurpleAir-Sensor’ with the IP address it has been assigned.