Log of ReNewport Project


Tue Mar 19 21:43:28 EDT 2024


Mon Mar 18 21:36:42 EDT 2024

asdf
Saturday, March 16th


Sat Mar 16 01:18:39 EDT 2024


Sun Feb 25 08:34:46 EST 2024


Thu Feb 22 22:31:44 EST 2024


Wed Feb 21 22:39:26 EST 2024


Sun Feb 18 14:19:49 EST 2024


Mon Feb 12 21:49:36 EST 2024

  • RISE Communities FREE Training and PurpleAir Sensors
  • I tried making a pull, but was told that I don't have any points; since I've moved the points, I can make a call, based on the example at this page (search for ....)

  • Loading PurpleAir Widget...
  • PurpleAir Map of Cincinnati

  • So we're somewhere in the vicinity of /39.0969/-84.51483 and /39.08311/-84.46898

    So I'm going to make this call

    which got me this:

    {
      "api_version" : "V1.0.11-0.0.49",
      "time_stamp" : 1707795173,
      "data_time_stamp" : 1707795164,
      "location_type" : 0,
      "max_age" : 604800,
      "firmware_default_version" : "7.02",
      "fields" : ["sensor_index","name","latitude","longitude"],
      "data" : [
        [177011,"Trinity Episcopal Church",39.08723,-84.510574],
        [184237,"Monitor 7",39.086807,-84.49592],
        [184671,"Monitor 12",39.092567,-84.48834],
        [184699,"Monitor 10",39.084312,-84.497215],
        [184711,"Monitor 9",39.087906,-84.4918],
        [184723,"ReNewport",39.094616,-84.48508],
        [184721,"Monitor 4",39.090923,-84.49152],
        [184799,"338 E 9th St Newport KY 41071",39.0902,-84.48639]
      ]
    }
    
  • Let's expand things with this call

    {
      "api_version" : "V1.0.11-0.0.49",
      "time_stamp" : 1707795657,
      "data_time_stamp" : 1707795620,
      "location_type" : 0,
      "max_age" : 604800,
      "firmware_default_version" : "7.02",
      "fields" : ["sensor_index","name","latitude","longitude"],
      "data" : [
        [173711,"Hellmann Creative Center",39.07635,-84.51451],
        [175247,"home",39.09708,-84.48963],
        [177011,"Trinity Episcopal Church",39.08723,-84.510574],
        [184237,"Monitor 7",39.086807,-84.49592],
        [184259,"Monitor 6",39.082287,-84.498024],
        [184605,"Monitor 11",39.099586,-84.49018],
        [184671,"Monitor 12",39.092567,-84.48834],
        [184699,"Monitor 10",39.084312,-84.497215],
        [184711,"Monitor 9",39.087906,-84.4918],
        [184723,"ReNewport",39.094616,-84.48508],
        [184721,"Monitor 4",39.090923,-84.49152],
        [184725,"Monitor Mickey 8",39.082706,-84.49669],
        [184799,"338 E 9th St Newport KY 41071",39.0902,-84.48639],
        [188039,"McFarland",39.098476,-84.51862]
      ]
    }
    
  • A little bit more: this call

    And that did it:

    		{
      "api_version" : "V1.0.11-0.0.49",
      "time_stamp" : 1707797663,
      "data_time_stamp" : 1707797617,
      "location_type" : 0,
      "max_age" : 604800,
      "firmware_default_version" : "7.02",
      "fields" : ["sensor_index","name","latitude","longitude"],
      "data" : [
        [160405,"Devou Park",39.08122,-84.52894],
        [168209,"Park Hills",39.068443,-84.53976],
        [172829,"The Bluffs near Devou Park",39.085186,-84.527145],
        [173711,"Hellmann Creative Center",39.07635,-84.51451],
        [175247,"home",39.09708,-84.48963],
        [177011,"Trinity Episcopal Church",39.08723,-84.510574],
        [184237,"Monitor 7",39.086807,-84.49592],
        [184259,"Monitor 6",39.082287,-84.498024],
        [184605,"Monitor 11",39.099586,-84.49018],
        [184671,"Monitor 12",39.092567,-84.48834],
        [184699,"Monitor 10",39.084312,-84.497215],
        [184711,"Monitor 9",39.087906,-84.4918],
        [184723,"ReNewport",39.094616,-84.48508],
        [184721,"Monitor 4",39.090923,-84.49152],
        [184725,"Monitor Mickey 8",39.082706,-84.49669],
        [184799,"338 E 9th St Newport KY 41071",39.0902,-84.48639],
        [188039,"McFarland",39.098476,-84.51862]
      ]
    }
    
  • Now in R, I'm loading in a csv file of that stuff. From there I'll try loading in the csv of the data off the PurpleAir site for the region, and we'll see what happens....

    source("readCSV.R")
    sensors
    sensors$sensor_index
     [1] 160405 168209 172829 173711 175247 177011 184237 184259 184605 184671
    [11] 184699 184711 184723 184721 184725 184799 188039
    max(sensors$longitude)
    [1] -84.48508
     min(sensors$longitude)
    [1] -84.53976
    

  • Website maintained by Andy Long. Comments appreciated.