PDA

View Full Version : Automated DTV scanning and logging web page



kb8u
02-01-2009, 11:34 AM
I have just finished a computer program and web page that I thought this group might be interested in:

http://kb8u.ham-radio-op.net/TV

It repeatedly scans for DTV stations and tries to find the call sign from the program when the tuner locks on a channel. If successful, it plots the relative signal strength and signal/noise. If the call sign can be found on fcc.gov, it retrieves the location and other data and displays it on a map, color coded by strength. If a station drops out, it will change the color to black and it will stay on the map for 48 hours. When zoomed out, only the strongest station in a city is displayed to avoid map clutter. The map updates every 5 minutes.

The tuner is a Silicondust HDHomeRun. The antenna is currently a Tennadyne T32 LPDA up about 45 feet that I point in different directions from time to time. The computer program is written in Perl; it in turn repeatedly runs a free program available from Silicondust to scan for DTV signals. Signal strength graphs are plotted with an open source package called Cricket. The OS and web server are also open source, Ubuntu Linux and Apache. I found some example javascript code on the internet for the map that I modified.

If anybody would like to run their own copy of this on their web page, please contact me. I'll open-source it if there's enough interest. <mycallsign>_vhf@hotmail.com (replace <mycallsign> with my ham radio call sign and don't forget the underscore.)

Wish list:
1. All stations would transmit their call sign in the program. :banghead:WPXD Ann Arbor, for example does not so it is ignored. Serves them right.
2. Display distance and bearing.
3. Look up and map Canadian and Mexican DTV (any location info available?).
4. Sort stations by RF channel number instead of strength and RF channel number.
5. don't run hdhomerun_config, use API instead.
6. MORE DX!

Bugs :duh::
1. The map starts at the same location and zoom level each time, so E-skip may not show right now. I plan on fixing that.
2. FCC data is NAD27(?), Google is WGS84 so the icons may be off a few dozen feet. Just look for the tower if you need more accuracy....
3. Internet Explorer may cut off the call sign label in the list of stations on the right. I'll probably fix that (time to learn CSS). Try the latest Firefox.
4. Very old browsers may not refresh the screen every 5 minutes. Try the latest Firefox.
5. FCC look ups only check permanently licensed stations. WILX in Lansing, for example, is using a Special Temporary Authorization (until they move back to channel 10?) so it isn't on the map. If Congress delays the switch to all-DTV then I may fix that.
6. Previous to today, some of the graphed data is bogus. Some bugs were fixed, but if the perl program crashes or the tuner flakes out, the last values will be used there on out. It's all pretty solid so I'm not going to fix that.

kb8u
03-15-2009, 08:25 PM
I've been plugging away at this some more:

Added distance and bearing to station.
Default map center and zoom level "should" show E-skip stations.
Displays stations licensed under STA.
Fixed incorrect date displayed bug.
Improved sidebar appearance (still not 100% happy with it, though).

Best regards, Russ KB8U

NN2E
03-16-2009, 10:32 AM
Sounds really cool, Russ! Any plans for incorporating automated rotator control?
73, Ed NN2E
Owner / Operator - Murphy's Law Test Site & Thunderstorm Proving Grounds

kb8u
03-21-2009, 04:11 PM
No immediate plans for rotor control but now you have me thinking... I just installed a UHF-only long yagi with a IR-remote so all I'd have to do is a small hardware hack. Maybe after I get back on the UHF ham bands this spring I'll start on that.

-Russ KB8U

kb8u
05-20-2009, 07:02 PM
I added a second receive site in Hillsdale county, Michigan. Just got the antenna up in the air on Sunday. Antenna is a hunk-o-wire about 8 inches diameter, a horizontal loop but it's up about 170 feet above ground level and on a hill. No pre-amp and fed with RG-213 so there's room for improvement still. The tower blocks the view toward Detroit for the antenna.

http://kb8u.ham-radio-op.net/TV2

Best DX for it so far is 304 kilometers on UHF.

Best regards. Russ KB8U

kb8u
11-09-2009, 09:42 AM
Yesterday I replaced the hunk-o-wire at 170' with a short UHF yagi on a ring rotor and last month I added a preamp and ran some RG-6/UQ coax. Last night I was rewarded with a nice tropo opening with best DX to St. Louis, 406 miles distant. http://kb8u.ham-radio-op.net/TV2. Now I need to automate turning the rotor. Fortunately I can do that with both feet on the ground now!

spunker88
11-09-2009, 11:11 PM
Yesterday I replaced the hunk-o-wire at 170' with a short UHF yagi on a ring rotor and last month I added a preamp and ran some RG-6/UQ coax. Last night I was rewarded with a nice tropo opening with best DX to St. Louis, 406 miles distant. http://kb8u.ham-radio-op.net/TV2. Now I need to automate turning the rotor. Fortunately I can do that with both feet on the ground now!

Nice page, is your antena pointing south at the moment or is that just where you had luck. For Canadian and even some US stations, i use http://cdbs.recnet.com/fmq.php
It gives you a nice google map with the station tower. Of course youll probably have to wait a few years to implement Canada into your program since it seems your program is based on PSIP data. Once Canada is all digital do you plan on adding a rotor? You could get a really nice 360 degree map of stations.

kb8u
11-14-2009, 10:15 AM
The antenna is pointed south at the moment. The Hepburn tropo forecast shows some good east-west conditions for next week so I think I'll turn it east later today. Just started picking up WBXX near Knoxville, TN while I was typing this!

Oddly enough, the FCC database does have Canadian calls in it too. Maybe I can pick up Toronto, I think they have some DTV stations now. I haven't logged any yet.

tonsofpcs
02-04-2010, 09:22 AM
All stations would transmit their call sign in the program. :banghead:WPXD Ann Arbor, for example does not so it is ignored. Serves them right.
All stations transmit a unique TSID in PSIP that is assigned to them. The table of TSIDs is public. The "short name" in the text tables has no requirements.

[QUOTE]2. FCC data is NAD27(?), Google is WGS84 so the icons may be off a few dozen feet. Just look for the tower if you need more accuracy..../QUOTE]
NADCON (http://www.ngs.noaa.gov/TOOLS/Nadcon/Nadcon.html) from the National Oceanographic and Atmospheric Administration can handle the conversion but, inside the continental US, the variance is only a hundred meters at the worst points (over 200 meters in other territories with HI having the worst at or over 400 meters).