First version of deployment visualization

100 views
Skip to first unread message

Adam Laskowitz

unread,
Dec 4, 2012, 7:40:21 PM12/4/12
to airqua...@googlegroups.com
Hi everyone.

I have gotten a first version of a deployment visualization at a point which I feel comfortable sharing it with the community.

A few words before you try it out.
- I built this all with Processing 1.5.1
- I have used a few libraries which I had to install (the list of them is below)
- The zip you can download includes a standalone Windows app, Mac app, and Linux app that were exported from processing. Also included are the source files and a folder including the libraries used (I am not sure it will just work, you will probably have to figure out how to get these installed for Processing to use if you want to run the source code in Processing). These apps can be run without installing Processing or doing any backend work, they should just work. If they do not, please let me know.
- The app will hang for seconds depending on your internet connection AND Cosm servers. The data being used here are all being downloaded in realtime from our 10 Cosm egg feeds. So just be patient and you will be rewarded. Also interacting with the visualization you should be aware that these data are in fact being downloaded as you request it, so there may be some slight delays (once again this seems to be caused by the Cosm servers right now).
- The sensor node viz at the top of the visualization is being created from a GoogleMap library I found here: http://googlemapper.pt.vu/ .... If you wish to set it up for your own eggs (and others), then the scaling variable of the map will need to be changed inside the "Geo" class - variable zoomLevel.
- The time display at the top right indicates the last time the visualization was updated. Clicking on it will update everything that you have selected. Otherwise it will not update on its own (this is because grabbing the data from Cosm was taking too long for this, and I am behind a proxy server so I couldn't get the Socket API working).
- The middle grey bar you will see is the time scale/slider. You can hover your mouse at both left and right edges of the bar and your cursor will turn into a HAND. Click and dragging will scale the time window. Hovering over the 3 small horizontal lines will allow you to move the time window.
- Included is a class for setting Proxy settings. Right now it is blank and commented out. Just remove the 2 comments related to it in the main sketch file and add your settings to the Proxy class if you need to. Otherwise, you will not be able to connect to Cosm or Google Maps for the data.

There are some issues that I still resolving, but overall the program seems very stable. If you find something, please definitely let me know. Also, if you use this to build something new, I urge you to share it back with the community.
If there is something you want to know about the programming, don't hesitate to ask.

List of libraries:
commonsmath330
jodatime
mesh
googlemapper
processing.dxf (I think this comes with processing)

Thanks, and I appreciate any feedback and/or collaborations to build something even better.

The zip is too large for Google Groups so I am hosting it on my site. Here is the link:
(~36mb) http://www.adamlaskowitz.com/egg_viz_for_community_v1.zip

Adam Laskowitz

unread,
Dec 5, 2012, 12:44:05 PM12/5/12
to airqua...@googlegroups.com
Just realized I included my API key in the source. Please change it to yours if you will be using the code at all.

Adam Laskowitz

unread,
Dec 9, 2012, 2:16:18 AM12/9/12
to airqua...@googlegroups.com
Also a quick note. You may get a warning when downloading the zip that it "may be dangerous." That is only because the windows application is an EXE and browsers don't like it when you download something with an EXE file in it.

Adam Laskowitz

unread,
Dec 19, 2012, 12:37:25 PM12/19/12
to airqua...@googlegroups.com
Sam just pointed out to me, I probably should have included this in the original post. 2 images of the visualization so you can see what it looks like without a download.
egg_viz_v1.JPG
egg_viz_v1_02.JPG
Reply all
Reply to author
Forward
0 new messages