You are here

HTML Map Contest!

33 posts / 0 new
Last post
K5DLQ
K5DLQ's picture
HTML Map Contest!

Hi AREDN Meshers!

The AREDN Team is looking for a few good men (and ladies)!  The new mapping feature that is in 3.16.1.0 needs your help.
As some of you have seen, we have a good, workable KML map file.  We would like to hold a contest to use that KML to create the best HTML based map that we can host on the www.arednmesh.org website.

CHALLENGE:
To create an HTML embedded map that utilizes the AREDN kml files that can be hosted on www.aredn.org.

SKILLS REQUIRED:
Front-end web development: Javascript, CSS, etc.

AREDN PROVIDED SERVICES/FILES:

REQUIREMENTS:
Your map should include (at minimum) the following (optional) query string parameters:

  • z=(zoom level)
  • lat=(latitude value)
  • lon=(longitude value)

Entries to include:

  • Your name
  • Your callsign
  • A zip file containing all the files required to host your map page.

Entries to be submitted via email to: mapcontest@aredn.org by 11:00PM Pacific time on April, 30, 2016
Entrants agree that AREDN.org has full rights to use and/or modify the files and host on www.aredn.org (or another property, as deemed appropriate by the AREDN team)
 

REWARD(S):

  • One personalized (w/your callsign) AREDN travel mug
  • Map credits on www.aredn.org
  • One official AREDN embroidered patch
  • Two official AREDN vinyl node labels

JUDGING:
Winner to be decided by the AREDN community on the Official AREDN website/forums.
All votes must be registered on the AREDN forums “contest topic” by 11:00PM Pacific time on May, 31, 2016

 

ke6scs
ke6scs's picture
Will there be an 'Access

Will there be an 'Access-Control-Allow-Origin' header? It would be required to access the files using AJAX.

Steve KE6SCS

K5DLQ
K5DLQ's picture
should be good now with CORS
should be good now with CORS
ke6scs
ke6scs's picture
CORS not working
I tried it out by editing my "hosts" and "httpd.conf" files. Not working. It does not give the appropriate response header.
K5DLQ
K5DLQ's picture
Ok.  Sorry for the delay.  I
Ok.  Sorry for the delay.  I think we have the CORS issues resolved.  Give it a try.
 
ke6scs
ke6scs's picture
I still get this error (using
I still get this error (using Chrome):

 XMLHttpRequest cannot load http://data.aredn.org/map.kml. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://www.aredn.org' is therefore not allowed access.
 
K5DLQ
K5DLQ's picture
Can you try on Firefox?
Can you try on Firefox?
ke6scs
ke6scs's picture
I get this error on Firefox
I get this error on Firefox:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://data.aredn.org/map9.kml. (Reason: CORS header 'Access-Control-Allow-Origin' missing).
ke6scs
ke6scs's picture
CORS sample
Could I get a sample of the headers on a request that works?

Steve KE6SCS
K5DLQ
K5DLQ's picture
Hi Steve.
Hi Steve.
Ok, I think I have it resolved finally.  Thanks for your patience.

Let me know.

Darryl
ke6scs
ke6scs's picture
Success!
It works! Thank you for your help!

Steve KE6SCS
ke6scs
ke6scs's picture
Google maps

Is the use of Google maps acceptable?

Steve KE6SCS
K5DLQ
K5DLQ's picture
sure.  as long as it can be
sure.  as long as it can be embedded on an AREDN page (ie.  iframe or similar)
K5DLQ
K5DLQ's picture
If you have emailed us your
If you have emailed us your contest entry, PLEASE DO SO AGAIN as we had a brief email issue.

The exception is callsign suffix "FUT".  We have yours. thanks.

Sorry for the inconvenience..

Darryl - K5DLQ
K5DLQ
K5DLQ's picture
VOTING WILL BEGIN SHORTLY! 
VOTING WILL BEGIN SHORTLY!  Watch this thread for details.
kk6fut
It's rather amusing to see
It's rather amusing to see the "next node over" from me, Steve KE6SCS, is the other entry here -- he's only a mile down the street (maybe). I didn't know he was entering!  May the best map win ;-)

ps.  Feature request... It would be useful if we could (optionally) expose a query on each AREDN node to pull the lat/long/capabilities from the node in XML, so that the maps could be generated on the fly and "live" from a connected mesh. This also would be great for future expansion -- say, if you had a traveling mesh node where the lat/long was being updated via GPS -- for example, in a EMCOMM situation where you have teams or groups not in a static QTH.

Ben
KK6FUT

 
K5DLQ
K5DLQ's picture
so, it's not XML, but, it's
so, it's not XML, but, it's structured... JSON...

http://localnode:8080/cgi-bin/sysinfo.json
 
kk6fut
XML, JSON, same thing ;-)
XML, JSON, same thing ;-) Great to see you have been thinking ahead!!

I have a map app running on my node (offline OSM) and this will be another nifty feature. I already have been polling the mesh status for a network map, and we now will have logical and physical views of the mesh here. Hopefully, will make this available somehow to anyone here interested in deploying their own. (not appropriate for a mesh node given the heavy data collection, but probably great for a Pi implementation)!

 
K5DLQ
K5DLQ's picture
do you have a writeup?  I'm
do you have a writeup?  I'm interested.  We (my ARES group) is currently looking deploying a Traccar.org server, but, having to strip all the internet requirements is a pain.

 
kk6fut
No writeup, yet (all cooked
No writeup, yet (all cooked up over a few days) on the map stuff -- but essentially it's the code submitted for AREDN Map with a discovery layer and connections to a data source. The most relevant piece, is I have a el-cheapo DVB dongle, wired to pump data into a MYSQL database -- and a simple script to pull that data and throw it into a map (essentially, the AREDN map contest code). Happy to hand over what I have to your ARES group as long as credit is given and you guys share with others any enhancements. It's all quick&dirty code but very, very lightweight (one php script for data retrieval, a mysql database structure which could live in something smaller, and the HTML/CSS).   Not sure if that's what you're looking for on the ARES stuff.
K5DLQ
K5DLQ's picture
Is the DVB for APRS reception
Is the DVB for APRS reception?
kk6fut
Yes, convenient Rx for APRS..
Yes, convenient Rx for APRS... (those DVB cards only about $5 on eBay, and fully RPi compatible).
w6bi
w6bi's picture
I voted - did you??
I voted - did you??  smiley
kk6fut
Okay, that was easy to
Okay, that was easy to implement.  This required:
1. Simple perl script to query the list of all the nodes known to localnode (some HTML table parsing of the mesh status screen...)
2. Feeds that to a database for storage
3. PHP script to pull lat/long/details for each node from httpd
4. Map code to parse that PHP script, essentially the AREDN map entry (LeafletJS).
(Now, to get everyone to put their lat/long into their node!). I can email you the code or upload where convenient for you.


K5DLQ
K5DLQ's picture
do you want to create a
do you want to create a github project?
I'm interested in the LeafletJS portion. 
K5DLQ
K5DLQ's picture
to include hosts:  http:/
kk6fut
Ah, that simplifies things by
Ah, that simplifies things by about 20 lines of code  for node discovery.  Figured you had something better out there someplace. 
kj6dzb
kj6dzb's picture
I havent seen any place to
I havent seen any place to vote on maps. 

Traccar.org  looks interesting ... I have 2 thoughts. 

The biggist problem with using the google API is the works that has to be done to host an offline map. Open street map is less work to pull an offline map for cash, untill you start thinking about the size of the cash. I dont know if any one is working on the map submission, would think its ez to port there mapping code into a UI like this, instead of google. Assuming that you choose to host an off line map cash on a platform with some storage, you could script the code to pull detailed map levels around the location of reporting nodes periodically. 

Second still like APRS, and a program like APRSDroid is location and messaging, with a few ways to report to your server or UI servers via RF or IP. I could see the use in reporting directly to one server. Do you depend on the internet, 2m packet coverage, localized WiFi ? how do you get the data back so that is can be quantified. Programs like xastir you you map aprs contacts,

It looks like Traccar might give the community the frame work you combine location reports and mesh infrastructure in one place.    
kk6fut
KJ6DZB: I already have the
KJ6DZB: I already have the OSM/offline running on our mesh, and for the one county we span the cache is not too big (just a few hundred megabytes). Google does not support offline.  OSM with Leaflet requires you just to specify the local cache, rather than online map, and it works 100% over a non-internet connected mesh.

Our map is currently pulling from local 2m APRS packets. I note that APRS.FI shows many more stations which apparently never get off the Internet (is it APRS, if your node info never gets to radio?). The route is 2m via DVB-T dongle -> rtl_sdr on RPi -> multimon_ng -> custom APRS parsing script -> mysql -> httpd.

No internet dependence, yes 2m packet coverage (and a good digipeater on a mountain, in my case). No local WiFi needed of any sort. Plus a connection to the mesh, of course.  It's essentially a lightweight, web-accessible equivalent to Xastir (no need for linux graphics interface) -- I'm pulling the data at the same point Xastir would for APRS.

Haven't used Traccar, will have to take a look. I'm sure there is a lot more work put into that package than the quick and dirty stuff I have running. (all done just for fun and to sharpen some of my knowledge of the stuff involved, both hardware and software...)

 
WU2S
WU2S's picture
Contest voting
The contest voting link is in the first Announcement on the front page.
Also directly reachable at http://www.aredn.org/contest-voting
 
kj6dzb
kj6dzb's picture
that rocks! kk6tut.  One
that rocks! kk6tut.  One could and can host google maps off line, its some work!!!! ive posted about it on the forum before, its too much for me.

Traccar could pull the aprs mapping and network mapping together on a single web page. 

I my self run a RPI TNC backpack with a 2m HT, that's runs the HSMM-pi. I use XASTIR and VNC into the desktop to see the map. Ive been interested in getting a script together to link aprs messaging with channel in mesh chat, so users can chat on the mesh with an aprs enables ht.   

 
N2MH
N2MH's picture
Misc. Comments

I like the whole maps idea and have a couple of questions/comments:

1. How does a user manage his nodes on the map? ie, how does he change an entry or remove an entry? I personally have a duplicate entry for my 2 GHz node. I'd like to remove one of them.

2. Color coding: I'd like to suggest that the color code for a map match the resistor color code. 2 GHz red, 3 GHz orange, 5 GHz green and 900 as gray. We all know that color code and it would make things more intuitive to us hams.

3. If you are talking about caching OSM tiles, perhaps link into the cache that something like aprsis32 or xastir creates. This could solve an issue of downloading tiles that may be in place already on someone's machine. The other approach could be the YACC approach to download a single vector file for everything and extract tiles on the fly as needed.

4. Messaging in/out of Meshchat into aprs - the aprs spec is pretty well standardized, so a converter program could be developed to do the go between, perhaps an add-on module to Meshchat. The other ingredient necessary would be an aprs igate server such as javaprs or aprsc both of which are readily available.

I've been doing aprs since the days on 145.79 and may be able to answer some questions.

73, Mark, N2MH
 

K5DLQ
K5DLQ's picture
Hi Mark,
Hi Mark,
I'll comment on #1 and #2:

1) users can add and modify locations of markers.  To remove yourself, just wipe the lat/lon data from your node, save, then publish to AREDN
(FYI, the "key" to the map markers is your MAC address of the node.  So, if you plan to decommision a node, make sure that you do #1 above to remove it from the map first)

2) will take that suggestion.  thanks.

4) I'm interested in this as well.  The MeshChat API (REST) is well documented also.  Anyone want to take this project on??
 

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer