Cruisers Forum

Thread Tools Search this Thread Rate Thread Display Modes
Old 30-10-2016, 11:23   #16
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 3,751
Re: Nmea-Server an alternative to VDR

Since I use to test on more then one location I've several servers to choose between. So I made a batch file connecting to any existing router. Some DOS commands was new for me but may be obvious for others. But a Google search IS nice, isn't it.
Of course you've to edit the pathways to your own needs.

@Echo off
echo Check for a Router...........
for /f "tokens=1,2 delims=:" %%i in ('ipconfig') do If "%%i"=="   Default Gateway . . . . . . . . . " (If NOT "%%j"==" " (echo Found: %%i :%%j: & SET ip=%%j & GOTO HIT))
::Remove spaces
set ip=%ip: =%
::Remove none leading and one trailing char
SET ip=%ip:~0,-1%
::echo ip is:%ip%
python C:\Users\admin\Documents\Python\VDRplayer-master\ C:\Users\admin\Documents\Python\VDRplayer-master\Hakefjord.txt %ip%255 10110 0.1 UDP 
goto END
echo Failure...No known Router alive???
Hakan is offline   Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
VDR Plugin SethDart OpenCPN 123 06-06-2021 10:14
OpenCPN not accepting NMEA data from NEXUS server cblake OpenCPN 6 28-06-2013 15:04
AIS Simulation - Run VDR to play AIS Nmea file rgleason OpenCPN 16 12-01-2013 11:28
Server Errors on the Server Errors thread Tom Stormcrowe Forum Tech Support & Site Help 11 24-08-2012 06:51
mistakes about the VDR plugin v0.3 in website xiurong OpenCPN 1 06-08-2012 13:14

Advertise Here

All times are GMT -7. The time now is 06:33.

Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2023, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2023, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.