I used the code base Mike created by answering my first question regarding stocks. I created the same type of rule using the "location" data source. The DEBUG output generated by this rule shows GeoIP is not returning data.
Is this source data coming from a third party? Is the access method used by the rule correct or is the problem caused by GeoIP? Any help would be appreciated..
Thanks.
DEBUG
// 2010/02/16 20:48:11 DEBUG Location.pm a381x2 whereami No GeoIP data for 63.248.8.28
RULE
select using ".*" setting ()
pre {
//Determine where i am
ctrycode = location:country_code();
ctryname = location:country_name();
state = location:region();
city = location:city();
pcode = location:postal_code();
lat = location:latitude();
long = location:longitude();
dmacode = location:dma_code();
areacode = location:area_code();
//display
msg = <<
Country_Code: #{ctrycode}<br/>
Country_Name: #{ctryname}<br/>
State: #{state}<br/>
City: #{city}<br/>
Zip: #{pcode}<br/>
Latitude: #{lat}<br/>
Longitude: #{long}<br/>
Dma_Code: #{dmacode}<br/>
Area_Code: #{areacode}<br/>
<style>
.KOBJ_message { font-size: 12px; }
.KOBJ_header { font-size: 18px !important; }
</style>
>>;
}
notify("WhoamI", msg) with sticky = true and opacity = 1;
}
}
