maps? was: Re: German Air Quality Egg Community

233 views
Skip to first unread message

Simone Cortesi

unread,
Apr 13, 2012, 3:54:19 PM4/13/12
to airqua...@googlegroups.com
has anyone started doing maps of locations already?

If not, I will start one based on OSM over the weekend.

BTW: anyone in Italy so far?

On Fri, Apr 13, 2012 at 18:22, Ed Borden <borden...@gmail.com> wrote:
> I've been saying this to any and all communities who want to try and
> build a bit of a density of interest in one place:
>
> If you can connect with local hackerspaces that might be interested or
> special interest/activist groups, we can plan together some kind of
> event or workshop or rally or whatever we want to call it.  I can come
> there with some of the other people in the community here and we can
> have an Egg party.
>
> On Fri, Apr 13, 2012 at 12:18 PM, Thomas Heigl
> <heigl....@googlemail.com> wrote:
>> My Egg will be placed at following location: 22941 Delingsdorf, Schleswig
>> Holstein, Germany

--
-S

Carsten Dannat

unread,
Apr 13, 2012, 4:18:28 PM4/13/12
to airqua...@googlegroups.com
Hi Simone,
we haven't started any mapping yet.

Egg Prototype Unit 3:  Parkaue 2, 22926 Ahrensburg, Germany
Sending live data:  https://pachube.com/feeds/48307 

Take care,
Carsten

Simone Cortesi

unread,
Apr 13, 2012, 8:56:10 PM4/13/12
to airqua...@googlegroups.com

I've created a very rough initial map: http://maps.cortesi.com/aqe.html

3 mapped so far.

--
-S

Ed Borden

unread,
Apr 13, 2012, 9:34:00 PM4/13/12
to airqua...@googlegroups.com
Can you code this to pull automatically from the API?

JSON: http://api.pachube.com/v2/feeds.json?tag=airqualityegg&per_page=1000&order=created_at&key=YOURKEYGOESHERE

You can parse that for just geolocation...

Right now, the only live feed seems to be our buddy from jeenodes. I
followed up with the rest of the people from our workshops... We will
definitely get some deployed at Parsons in NYC asap. We've just been
prototyping so quickly that nothing ever stays active long enough.

Simone Cortesi

unread,
Apr 14, 2012, 5:13:46 AM4/14/12
to airqua...@googlegroups.com
You are right, but this way it doesnt take care of not active ones, like mine.

I will try to incorporate the changes over the weekend.

-Simone.

--
-S

Michael H

unread,
Apr 14, 2012, 10:30:51 AM4/14/12
to airqualityegg
I would love to see the data from the AQ eggs mapped on
AirCasting.org. The AirCasting maps provide two data views: the
CrowdMap, which averages all the sensor readings for a given area and
displays them as a colored rectangle; and the sessions map, which maps
and graphs the data from a single sensor. Both maps can be filtered
by location and time range along with several other parameters.

(o) Permalink to an example from the CrowdMap: http://bit.ly/HIYpoT
(o) Permalink to an example from the Sessions Map: http://bit.ly/IPd0lb
(to see the graph you'll need to click the arrow at the bottom left)

Currently the maps are only displaying sound level data from
smartphone microphones. However, by the end of next week both the
AirCasting app and website will be able to record and map data from
any type of sensor. To get an idea of how your data needs to be
structured in order to be fed into the AirCasting platform and
displayed on the maps, download our Arduino PDE file,
http://dl.dropbox.com/u/29720355/aircasting.pde.txt.

If you want to learn more about what's happening behind the scenes or
contribute to the code, check out the code repositories on GitHub:
GitHub AirCasting Android app, https://github.com/LunarLogicPolska/AirCastingAndroidClient;
GitHub AirCasting web app, https://github.com/LunarLogicPolska/AirCasting.

Here's a look at our Arduino powered air monitoring unit: http://t.co/5axW0lxb.
And the IOIO powered LED jacket were hooking up to AirCasting app to
display the intensity of the sensor readings (it's only one quarter
lit up in this picture): http://t.co/oDdgrPDd


On Apr 14, 5:13 am, Simone Cortesi <sim...@cortesi.com> wrote:
> You are right, but this way it doesnt take care of not active ones, like mine.
>
> I will try to incorporate the changes over the weekend.
>
> -Simone.
>
>
>
>
>
>
>
>
>
> On Sat, Apr 14, 2012 at 03:34, Ed Borden <borden.edw...@gmail.com> wrote:
> > Can you code this to pull automatically from the API?
>
> > JSON:http://api.pachube.com/v2/feeds.json?tag=airqualityegg&per_page=1000&...

Benjamin Lebsanft

unread,
Apr 15, 2012, 9:09:25 AM4/15/12
to airqua...@googlegroups.com
Looks interesting, but I'd prefer OpenStreetMap for community projects
like the AQE

Benjamin Lebsanft

unread,
Apr 15, 2012, 9:12:21 AM4/15/12
to airqua...@googlegroups.com
Hi,

> I've created a very rough initial map:
> http://maps.cortesi.com/aqe.html
>
> 3 mapped so far.
>

thanks for using OSM :) Mine will be located at Eimsb�tteler Chaussee
85, 20259 Hamburg

Bye
Ben

Simone Cortesi

unread,
Apr 15, 2012, 7:51:40 PM4/15/12
to airqua...@googlegroups.com
On Sun, Apr 15, 2012 at 15:12, Benjamin Lebsanft <benj...@lebsanft.org> wrote:
> Hi,
>
>> I've created a very rough initial map:
>> http://maps.cortesi.com/aqe.html
>>
>> 3 mapped so far.
>>
>
> thanks for using OSM :) Mine will be located at Eimsbütteler Chaussee
> 85, 20259 Hamburg

added: http://maps.cortesi.com/aqe.html

@ed: I need some more time to add the json stream from pachube, since
it is not a geojson file, but a json generic one.

--
-S

Carsten Dannat

unread,
Apr 16, 2012, 3:43:28 AM4/16/12
to airqua...@googlegroups.com

Daniel's Egg:  
AQ Egg location: 481.. Münster, Germany

Carsten Dannat

unread,
Apr 16, 2012, 4:58:32 AM4/16/12
to airqua...@googlegroups.com
 

Another soon to be Egg in Hamburg:


Stefan's AQ Egg location: 20255, Hamburg, Germany  

Simone Cortesi

unread,
Apr 16, 2012, 7:31:55 PM4/16/12
to airqua...@googlegroups.com

I had to add some PHP code in order to fetch Pachube API data, so the
new URL, complete with both:

* live data from Pachube
* data from people who told me on this list

is here: http://maps.cortesi.com/aqe.php

--
-S

Luis Fraguada

unread,
Apr 20, 2012, 7:53:35 AM4/20/12
to airqua...@googlegroups.com
Hello Simone,
What is the best way to add a location to the map? 
1. Make pachube feed, perhaps I can just hook up temp and humidity since it is what I have available.
2. Tell you on this thread?

Seems #1 is the best choice.  In that case, what are the tags that should be added?  Is 'Air Quality Egg' enough?

Thanks!
Luis

Simone Cortesi

unread,
Apr 20, 2012, 9:13:57 AM4/20/12
to airqua...@googlegroups.com
Hi,
My map-page does read this feed from pachube [0] to show the "green"
circles, as well does show the "red" ones which are instead hard coded
and represent the non active ones, not arrived ones: like mine (the
one in Italy).

I'm planning to show on the map some info like live temperature by
altering the size or the color of the "green" circles as soon as this
is appropriate.

by the way, any suggestion is more than welcome.

[0] http://api.pachube.com/v2/feeds.json?tag=airqualityegg&per_page=1000&order=created_at

So...back to your question: as long your data end up in the feed with
tag=airqualityegg it is good for me.

Thanks,
Simone.

--
-S

Luis Fraguada

unread,
Apr 20, 2012, 9:52:49 AM4/20/12
to airqua...@googlegroups.com
Really great you have set this up.  I would love to see where all of the eggs will go!  Maybe you could add further coloring based on whether the feed has any datastreams available, whether it is frozen, etc...

Can we get more of the community to join along?  Would be great to have for these last days of the kickstarter campaign!

Carsten Dannat

unread,
Apr 20, 2012, 12:54:31 PM4/20/12
to airqua...@googlegroups.com
Hi Simone,
FYI: The AQEgg https://pachube.com/feeds/48307 is identical with the one at the 22926 Ahrensburg, Germany location. The Egg is sending live data as well if you would like to do some tests representing AQ Egg's data in the map itself.

Cheers,
Carsten

Paolo Bassetti

unread,
Apr 21, 2012, 5:50:25 AM4/21/12
to airqua...@googlegroups.com
I'd love to join for Italy! 

Paolo

Simone Cortesi

unread,
Apr 21, 2012, 7:24:58 AM4/21/12
to airqua...@googlegroups.com

ok.
let me know your location. my egg will be in Pavia.

NOTE TO ALL : I will be traveling  this weekend. I will update the map, including other suggestions, starting Monday evening.

Paolo Bassetti

unread,
Apr 21, 2012, 7:38:40 AM4/21/12
to airqua...@googlegroups.com

ours in Turate, CO

Paolo

Carsten Dannat

unread,
Apr 28, 2012, 2:12:54 PM4/28/12
to airqua...@googlegroups.com
Hi Simone,
I can't load your map anymore - really missing it. Can you give us a status update, please?

Cheers,
Carsten

Simone Cortesi

unread,
Apr 29, 2012, 8:32:39 AM4/29/12
to airqua...@googlegroups.com
On Sat, Apr 28, 2012 at 20:12, Carsten Dannat
<carsten...@it-trend.de> wrote:
> I can't load your map anymore - really missing it. Can you give us a status update, please?

Yes,
I've noticed it yesterday as well, I will be fixing it tomorrow.

--
-S

Simone Cortesi

unread,
May 16, 2012, 8:26:26 AM5/16/12
to airqua...@googlegroups.com
Sorry for the delay, it is now back online, same url:
http://maps.cortesi.com/aqe.html

it was some sanity problem with the JSON feed from pachube.

anyone who wishes to be added?
--
-S

Nafis

unread,
May 16, 2012, 3:43:00 PM5/16/12
to airqua...@googlegroups.com
Are you planning on adding color based on the values of particular feed ranges (say PM2.5)? It would be nice to generate something similar to AIRNOW (http://airnow.gov/). This should be a general functionality in COSM/Pachube (maybe it's already there? Ed?)

It also implies that we should start consistent COSM feed naming and units....

Simone Cortesi

unread,
May 16, 2012, 4:17:04 PM5/16/12
to airqua...@googlegroups.com
I am indeed planning this.

I still have to look around and find out which of the eggs are online
as of today, and which info they do send out (pm2.5, no2, co2?).

and then visualize them. any help? pointers?

-S
--
-S

Nafis

unread,
May 16, 2012, 5:52:31 PM5/16/12
to airqua...@googlegroups.com
I was thinking we could generate an HTTP request like the COSM search does using the tag we are interested in. We could set the flags for "live" and then parse the returned HTML page for Feed #'s. But we still need to encourage folks to use the same tags and units. I think COSM should provide a list of "official" tags and "units".
The API has a way to get the LAT/LONG info from a feed#.

I would have thought COSM would have a mechanism for finding Feeds, but I didn't see it off-hand.

Ed Borden should be able to help us with this?

Victor Aprea

unread,
May 16, 2012, 6:02:32 PM5/16/12
to airqua...@googlegroups.com
Nafis,

Some (most?) of the tagging will/can sort of be "standardized" by the egg units themselves, right? We just need to settle on what the units tag each stream with during the feed creation process. Users, I think, will be able to go in after the fact to add additional metadata to the feeds created by their respective devices (e.g. location)... or am I missing something? 

Regards,

Vic

Usman Haque

unread,
May 16, 2012, 6:32:21 PM5/16/12
to airqua...@googlegroups.com
docs for the api are here: http://cosm.com/docs/ and more specifically the doc page for listing feeds is here: http://cosm.com/docs/v2/feed/list.html

basically, you can make a request searching by query (i.e. term appears anywhere in the name, description, tags, etc) by tag or units, by status, and even by geolocation.

assuming egg feeds are tagged with 'project:id=aqe' (which is preferable to 'air_quality_egg', though that would also work) or something like that, to get all live eggs within 10km of london you might make a request something like:

http://api.cosm.com/v2/feeds?tag=project%3Aid%3Daqe&lat=51.5&lon=-0.1&distance=10&status=live

which currently returns 0 feeds of course, but just to give you an idea of the data that's returned here's the same query for more popular 'electricity':

http://api.cosm.com/v2/feeds?tag=electricity&lat=51.5&lon=-0.1&distance=10&status=live

of course, if you just want all the eggs, drop the geo parameters from the request.

in general you can do more with the cosm api than you can with the website, so there's no need to parse the web HTML for things like feed numbers! :)

hope that helps.

u





Nafis wrote:
> I was thinking we could generate an HTTP request like the COSM search does using the tag we are interested in. We could set the flags for "live" and then parse the returned HTML page for Feed #'s. But we still need to encourage folks to use the same tags and units. I think COSM should provide a list of "official" tags and "units".
> The API has a way to get the LAT/LONG info from a feed#.
>
> I would have thought COSM would have a mechanism for finding Feeds, but I didn't see it off-hand.
>
> Ed Borden should be able to help us with this?
>
> On Wednesday, May 16, 2012 4:17:04 PM UTC-4, Simone Cortesi wrote:
>
> I am indeed planning this.
>
> I still have to look around and find out which of the eggs are online
> as of today, and which info they do send out (pm2.5, no2, co2?).
>
> and then visualize them. any help? pointers?
>
> -S
>
> On Wed, May 16, 2012 at 9:43 PM, Nafis <na...@nycap.rr.com <mailto:na...@nycap.rr.com>> wrote:
> > Are you planning on adding color based on the values of particular feed
> > ranges (say PM2.5)? It would be nice to generate something similar to AIRNOW
> > (http://airnow.gov/). This should be a general functionality in COSM/Pachube
> > (maybe it's already there? Ed?)
> >
> > It also implies that we should start consistent COSM feed naming and
> > units....
> >
> >
> > On Wednesday, May 16, 2012 8:26:26 AM UTC-4, Simone Cortesi wrote:
> > >
> > > Sorry for the delay, it is now back online, same url:
> > > http://maps.cortesi.com/aqe.html <http://maps.cortesi.com/aqe.html>
> > >
> > > it was some sanity problem with the JSON feed from pachube.
> > >
> > > anyone who wishes to be added?
> > >
> > > On Sun, Apr 29, 2012 at 2:32 PM, Simone Cortesi <sim...@cortesi.com <mailto:sim...@cortesi.com>>
> > > wrote:
> > > > On Sat, Apr 28, 2012 at 20:12, Carsten Dannat
> > > > <carsten...@it-trend.de <mailto:carsten...@it-trend.de>> wrote:
> > > >> I can't load your map anymore - really missing it. Can you give us a
> > > >> status update, please?
> > > >
> > > > Yes,
> > > > I've noticed it yesterday as well, I will be fixing it tomorrow.
> > > >
> > > > --
> > > > -S
> > >
> > >
> > >
> > > --
> > > -S
>
>
>
> --
> -S

--

.....................................................
Usman Haque
http://www.pachube.com/

3 Scrutton Street
London EC2A 4HF
United Kingdom
Direct: +44 20 3441 1343
Mobile: +44 7796 507 162

Ed Borden

unread,
May 16, 2012, 6:49:03 PM5/16/12
to airqua...@googlegroups.com
Regarding the "official" tags and units point, that's part of what I
think Martin is tackling as part of the overall "data"
structure/analysis/calibration project. He is starting to work on
that, although I think his initial thread got yanked a bit off topic
(http://groups.google.com/group/airqualityegg/browse_thread/thread/253d1b5c80d4c7b2).

Once we define that, all of the Eggs will use Cosm's device
provisioning features to make every Egg come online with the data
defined in the same way.

Chris Nafis

unread,
May 16, 2012, 6:56:37 PM5/16/12
to airqua...@googlegroups.com
Vic,
 
I guess it depends how the Pachube/COSM feeds are set up. When I did it with the Arduino for the particle sensors (under Pachube), I had to fill in all the info manually. I see 5-6 other COSM/Dylos sensors and we have each named things differently.
 
Now with COSM, once you log in and hit the "+Feeds" button, it looks like it walks you thru the process. But it still asks the user for info. Maybe if we spend more time with the Arduino code, we could do it there? I haven't done it yet (I do faintly remember a AQE thread discussing setting up the feeds automatically... I'll have to go back and look.)
 
Chris

Chris Nafis

unread,
May 16, 2012, 7:13:11 PM5/16/12
to airqua...@googlegroups.com
Per tags and units, I was trying to think "bigger" than just the egg. Once
the "cat is out of the bag" (ie people come up with their own tags/units),
it's hard to put the cat back into the bag.
By definition, the AQE will be a platform for development. So I assume
people will be constantly adding new devices. Having some COSM way to
register "official" tags and "units" would help people pick standard naming
unless they really didn't want to

----- Original Message -----
From: "Ed Borden" <borden...@gmail.com>
To: <airqua...@googlegroups.com>
Sent: Wednesday, May 16, 2012 6:49 PM
Subject: Re: maps? was: Re: German Air Quality Egg Community


Ed Borden

unread,
May 16, 2012, 7:17:31 PM5/16/12
to airqua...@googlegroups.com
I hear you. This is something that we've been bouncing around with
for years.. I'm going to go and re-open the issue with the product
team. I'll point them to this thread.

Chris Nafis

unread,
May 16, 2012, 7:53:49 PM5/16/12
to airqua...@googlegroups.com
per putting the "cat back in the bag" for all the existing COSM/Pachube
accounts/feeds...

How about we follow in the tradition of C's Lint or HTML's validator
(http://validator.w3.org/)? We could either put up a web page that suggests
changes to COSM naming, feed descriptions, and units. Or we since I assume
COSM has everyones email, we could send users suggested changes to their
data?

We could sort all the Feed Tags/units and come up with a suggested list?
The sooner we do it the better. I don't know how many live feeds there are,
but I would bet they are growing fast.

Martin Dittus

unread,
May 18, 2012, 8:57:10 AM5/18/12
to airqua...@googlegroups.com
I like the general direction this is headed.

First off, I think the AQE team should go ahead and create the tagging scheme that is perfect for them. Let's not get tempted to create a standard for fictitious projects :) We'll keep liaising with the Cosm product team, and I'm sure they'll be reading our docs anyway.

Also want to point out that in their API docs Cosm do suggest a standard notation for *units*: https://cosm.com/docs/v2/datastream/ "For a description of unit-types see here: http://www.eeml.org/#units. "

m.

Ilze Black

unread,
May 24, 2012, 8:34:46 AM5/24/12
to airqua...@googlegroups.com
Hi List,

I was wondering if there is any AQE specific trouble shoot/user forum
space anyone can suggest? looking for some help with code and sensor
problem solving. been trying to make my egg work for some time and
problems seems growing. most likely being 'not so great geek' these
might be silly ones for people on this list but might help to know how
other people deal with some basic issues.

i suppose as user base grows some dedicated forum space for this could
be quite useful?!

any suggestions?

ilze

Dirk Swart

unread,
May 24, 2012, 8:43:16 AM5/24/12
to airqua...@googlegroups.com
Hi Ilze,

I would recommend using forum.wickeddevice.com, and tagging the question AQE.

Cheers
Dirk


Follow me on Twitter now: dswart

Ilze Black

unread,
May 24, 2012, 8:49:08 AM5/24/12
to airqua...@googlegroups.com
thanks Dirk,

with this question I also wanted to suggest that may be there should be a AQE specific forum space as now growing number of us using very similar (or if not the same) sensor/board/code framework in a local settings or modifying its uses etc.

would also help to feel that community pulse :)

ilze

Ilze Black

unread,
May 24, 2012, 8:57:53 AM5/24/12
to airqua...@googlegroups.com
well, may be someone can help me here. Joe has done a great work on CS_MQ7 library, however
the very CS_MQ7.h library example file called CS_MQ7.pde is not compiling

---
In file included from CS_MQ7.cpp:18:
/Users/user/Documents/Arduino/libraries/CS_MQ7/CS_MQ7.h:24: error: 'boolean' does not name a type
/Users/user/Documents/Arduino/libraries/CS_MQ7/CS_MQ7.h:31: error: 'boolean' does not name a type
/Users/user/Documents/Arduino/libraries/CS_MQ7/CS_MQ7.h:32: error: 'boolean' does not name a type
CS_MQ7.cpp: In function 'void loop()':
CS_MQ7.pde:-1: error: 'class CS_MQ7' has no member named 'CurrentState'

--
what went wrong?

questions like this i mean....

ilze

Joseph Saavedra

unread,
May 24, 2012, 9:01:21 AM5/24/12
to airqua...@googlegroups.com
Ilze,

can you zip up ALL of your code and email it to me?

this is actually not really egg related, since the eggs won't be using the MQ-7.

i'll have a look. 

thanks!!

joe

_ _ _
Joseph Saavedra
Creative Technologist, Developer

Adjunct Faculty,
School of Art, Media, and Technology,
Parsons the New School for Design

Ilze Black

unread,
May 24, 2012, 9:08:20 AM5/24/12
to airqua...@googlegroups.com
thank you Joe,

will do. makes me think we do need to keep a track of AQE versions and related issues somewhere :)

ilze
Reply all
Reply to author
Forward
0 new messages