Cruisers Forum
 


Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 23-06-2019, 03:18   #661
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,808
Images: 2
Re: Tactics Plugin

Quote:
Originally Posted by Canne View Post
For you document, it lacks a clear example, instead of referencing external, why not give a complete example where all bits an pieces are in place and the only thing which is missing is the encrypted token. I noticed that this part of the AppVeyor file is the crucial one in the deployment - this is not the only way of doing it, of course:

Code:
deploy:
  description: 'release created by AppVeyor CI'
  provider: GitHub
  auth_token:
    secure: <your encrypted GitHub API token here>
  artifact: installer
  draft: true
  prerelease: true
  tag: $(APPVEYOR_REPO_TAG_NAME)
  on:
    appveyor_repo_tag: true # deploy on tag push only
    configuration: Release  # Debug contains non-redist MS DLLs

Yes, it really does need to be simplified, which I will do. I was trying to pull all the pieces together quickly without much editing. Thanks.
rgleason is offline   Reply With Quote
Old 23-06-2019, 04:46   #662
Registered User
 
Canne's Avatar

Join Date: Aug 2014
Posts: 246
Re: Tactics Plugin

Quote:
Originally Posted by AedanC View Post
I think you can go and celebrate now!!!
I can finally go sailing!
Quote:
Originally Posted by AedanC View Post
I also tested it with and without "Force..." ticked too.
Actually it does have effect here. From Tom's Tactics document:
"If the tick “Force True Wind Calculation” is set it does not matter if TWA, TWS and TWD are already available on the system or not. Calculation is done in the plugin then. It does calculate TWA, TWS and TWD. This is e.g. useful, if you have a heel sensor, which is not integrated in your instrument bus. You can use the corrections then to get more accurate true wind data."
Since you do not have full set of TWA, TWS and TWD, they cannot be overridden... Even if you had, a heel sensor would be useful. Without a polar, only SOG gives you any results from Tactics, all the rest shall come from Dashboard like before.
Quote:
Originally Posted by AedanC View Post
One small issue is that on the "True Wind Dir. and Speed" instrument, the TWS displays as zero, see attached picture.
Ok, I will check what causes that.
Quote:
Originally Posted by AedanC View Post
I think I understand this, but I don't understand why "this would never happen in real life". From your analysis above I think I should disable WMM on my boat's computer so it can't fight with the Vesper one, is that correct?
Correct, the recommendation is _not_ to use WMM plugin together with Tactics functions, unless one is absolutely sure that the instruments are not sending magnetic variation to O. Why the confusion would not have any importance in real life is that the WMM value given by O depends on where your boat is found on the map. When you are sailing, it is likely that you have set the boat be on the map where you are actually sailing. The difference is negligible here. But for sure, since O prefers your instruments to WMM then why not disable WMM altogether.
Quote:
Originally Posted by AedanC View Post
Many people would have just said "it's obviously Aedan's computer is acting a bit odd" and moved on.
If they are developers, they are fools! There is nothing more important than the tester!
Quote:
Originally Posted by AedanC View Post
Garmin...just closed the ticket without even telling me.
That's the joy of the O, an open source project with a community!
Quote:
Originally Posted by AedanC View Post
I'll go off and try and do a bit more testing on it now.
Remember that this version is pretty verbose in the log file. I'll try to make new version with some conditional debug printing, less verbose and put that on GitHub. I'll post it here when available.
Quote:
Originally Posted by AedanC View Post
I'll do a few more things before I load that polar.
That's really mandatory with Tactics part, it is dead meat without it! I've collected my own polars over the years to reflect my capacities, not only those of the boat - but there is a pretty good selection of polars in Sean's weather_routing_pi.
Canne is offline   Reply With Quote
Old 23-06-2019, 07:39   #663
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,808
Images: 2
Re: Tactics Plugin

Petri,

Just a moment please, two more questions. Then go sailing!

I've taken the travis writeup as far as I can take it. Is there more or better details about the cmake changes needed?
How to push a .Travis 'built' file to a new Github 'Release'

I've gotten down to this command. Any ideas? Just too busy today?
Quote:
rgleason@Dart:~$ gem install travis -v 1.8.10 --no-rdoc --no-ri
ERROR: Could not find a valid gem 'travis' (= 1.8.10), here is why:
Unable to download data from https://rubygems.org/ - timed out (https://api.rubygems.org/specs.4.8.gz)
rgleason is offline   Reply With Quote
Old 23-06-2019, 11:22   #664
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,808
Images: 2
Re: Tactics Plugin

I guess Petri deserves to go sailing... I tried later and I still get this


rgleason@Dart:~$ gem install travis -v 1.8.10 --no-rdoc --no-ri
ERROR: Could not find a valid gem 'travis' (= 1.8.10), here is why:
Unable to download data from https://rubygems.org/ - timed out (https://api.rubygems.org/specs.4.8.gz)
rgleason is offline   Reply With Quote
Old 23-06-2019, 12:06   #665
Registered User
 
Canne's Avatar

Join Date: Aug 2014
Posts: 246
Re: Tactics Plugin

Quote:
Originally Posted by rgleason View Post
rgleason@Dart:~$ gem install travis -v 1.8.10 --no-rdoc --no-ri
ERROR: Could not find a valid gem 'travis' (= 1.8.10), here is why:
Unable to download data from https://rubygems.org/ - timed out (https://api.rubygems.org/specs.4.8.gz)
Just got back to the slip... Rick, I presume your Ubuntu being either a virtual machine or running on the Microsoft Windows Subsystem for Linux (haha, I love these guys) and maybe you have even downloaded it from Microsoft Store (haha2, I lived to see this!)? In both cases, you need to figure out how to get to the Internet from that Linux system which is encapsulated into your Windows machine.

First, open a browser in you Windows machine and paste the URL https://api.rubygems.org/specs.4.8.gz into its address field and press enter. If that works, the issue is perhaps with the network connection of your Windows hosted Linux: how did the apt-get update command was working? Or did you skip that part?

Anyway, simple test from the command line, to fetch the same file:
Code:
wget https://api.rubygems.org/specs.4.8.gz
If that does not work, you need to get the Windows to give the network to you Ubuntu.

Tell me what you got, tell me how the apt-get update is doing, does it get to Internet and I can walk you through. Tell me, you have got that Microsoft Store thinga, right?
Canne is offline   Reply With Quote
Old 23-06-2019, 12:31   #666
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,808
Images: 2
Re: Tactics Plugin

I guess I just have to keep learning so I can become a real linux guy.
Yes, you are right of course. I was executing in the Unbuntu 18.04LTS window. It was downloading and installing fine, ...all 225mb!

...but this command is unhappy.
gem install travis -v 1.8.10 --no-rdoc --no-ri
So I need do this to start up the xrdp and xFCE

Open Ubuntu terminal
$ sudo service xrdp start
$ sudo service ssh start
From Windows Menus start Remote Desktop Connections (Client) and log in.
Opens to the xFCE Linux Desktop

Then execute the command.
rgleason is offline   Reply With Quote
Old 23-06-2019, 13:08   #667
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,808
Images: 2
Re: Tactics Plugin

In the xFCE Linux Desktop I tried opening a Terminal and entering the commands including the wget command, just waited there with a final message.

Also the Browser does not work.

I guess I have no access to the internet, but Opencpn does run!

Turned off Norton Firewall and AV and

$ wget https://api.rubygems.org/specs.4.8.gz
Worked and downloaded.

$gem install travis -v 1.8.10 --no-rdoc --no-ri
Still thinking....
rgleason is offline   Reply With Quote
Old 23-06-2019, 13:22   #668
Registered User
 
Canne's Avatar

Join Date: Aug 2014
Posts: 246
Re: Tactics Plugin

Quote:
Originally Posted by rgleason View Post
In the xFCE Linux Desktop
Rick, you don't answer my questions. That's only the GUI, what is the distro and where it is running?

Ubuntu OK but where it is coming from, from Microsoft?

Where: is it running under your Windows or standalone, barebone workstation running Ubuntu?

If a mess impossible to help over the telephone lines as I suspect, would you be interested in to install Ubuntu from Microsoft Store on your Windows 10? Don't jump on it, just tell me do you have the time necessary, I can try for you travis on it first.
Canne is offline   Reply With Quote
Old 23-06-2019, 13:27   #669
Registered User
 
Canne's Avatar

Join Date: Aug 2014
Posts: 246
Re: Tactics Plugin

New beta version published for testing for Dashboard-Tactics here

https://github.com/canne/dashboard_t...s/tag/v0.2.019

Fixes the crash Aeadan found out (no polar file and performance functions using it called). I presume that in the future there will be some tricky questions about why the TW calculations do not work in my boat - anticipated that with a gentle but efficient state machine as gatekeeper to the algorithm, reporting to opencpn.log but not being too verbose.

Thank you!
Canne is offline   Reply With Quote
Old 23-06-2019, 13:40   #670
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,808
Images: 2
Re: Tactics Plugin

specs.4.8.gz is in home/rgleason how do I expand and install it?, but then I need gem anyway.
rgleason is offline   Reply With Quote
Old 23-06-2019, 13:50   #671
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,808
Images: 2
Re: Tactics Plugin

Sorry Petri, I did not refresh.
This is pretty much the installation process under TDan's tutorial.
https://opencpn.org/wiki/dokuwiki/do...buntu-in-win10


1. WSL windows setting was enabled.
2. Installed Windows Store Ubuntu 18.04LTS
3. Had to change the port

4. Installed xFCE4 and xRDP following TDan instructions. (See link above.)

Found
[Globals]
; xrdp.ini file version number
ini_version=1

; fork a new process for each incoming connection
fork=true
; tcp port to listen
port=3389 <---changed to 3390
; 'port' above should be connected to with vsock instead of tcp
use_vsock=false
; regulate if the listening socket use socket option tcp_nodelay
; no buffering will be performed in the TCP stack

------

-Changed port to 3390, also this section of the xrdp.ini
----
#delay_ms=2000
[neutrinordp-any]
name=neutrinordp-any
lib=libxrdpneutrinordp.so
ip=ask
port=ask3390
username=ask
password=ask
; You can override the common channel settings for each session type
#channel.rdpdr=true




Have to change settings in Norton AV and Firewall......for sure.
rgleason is offline   Reply With Quote
Old 23-06-2019, 15:47   #672
Registered User
 
Canne's Avatar

Join Date: Aug 2014
Posts: 246
Re: Tactics Plugin

Quote:
Originally Posted by rgleason View Post
3. Had to change the port

4. Installed xFCE4 and xRDP following TDan instructions. (See link above.)
Oh. I can't really understand why anybody wants to turn a headless machine into a graphical workstation and then make RDB connections to it? That's the Windows way of doing it. Linux is doing it the other way around. It uses X11.

opencpn or any other program does not actually know where the X11 server (the display) is running. I would have configured the DISPLAY variable, for example to display on Xming X11 server on the host Windows 10. The VNC server, I would have put it on Windows, as well.

Never mind, I reckon you are screwed with all those port and network changes if you cannot access Internet from you Ubuntu prompt anymore. The following procedure requires that access.

You may want to find another Windows 10 and/or reinstall Ubuntu. The following process on a fresh installation took about two hours, tons and tons of Ruby/Gem stuff to download from Internet. Good luck if you try this on your hacked system

<fresh installation, with a connection to Internet>

Code:
sudo apt-get update
sudo apt-get install ruby
sudo apt-get install gem
<Question: allow restarting of services during package upgrades without asking? Yes>

<Windows firewall: for ruby 2.5 allow ruby to communicate ... tick all>

Code:
command curl -sSL https://rvm.io/mpapis.asc | gpg --import -
command curl -sSL https://rvm.io/pkuczynski.asc | gpg --import -
curl -sSL https://get.rvm.io | bash -s stable --ruby
Code:
source /home/petri/.rvm/scripts/rvm
gem install travis
Code:
petri@macchina:~$ travis -version
Shell completion not installed. Would you like to install it now? |y| y
1.8.10
Voilà.
Canne is offline   Reply With Quote
Old 23-06-2019, 16:03   #673
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,808
Images: 2
Re: Tactics Plugin

The weird thing is that the RDP Help uses bing and goes to the internet, so that has access to the internet.
Also by turning off Norton 360 I could use the wget command and download the gz file.
Now the desktop programs seem to have disappeared and I can't get them back. This is learning.
Also it is obviously going out to the internet with the sudo apt-get commands.
rgleason is offline   Reply With Quote
Old 23-06-2019, 16:08   #674
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,808
Images: 2
Re: Tactics Plugin

sudo apt-get gem seems to be invalid
needs to be
sudo apt-get install gem

Quote:
rgleason@Dart:~$ sudo service xrdp start
[sudo] password for rgleason:
* Starting Remote Desktop Protocol server [ OK ]
rgleason@Dart:~$ sudo service ssh start
* Starting OpenBSD Secure Shell server sshd [ OK ]
rgleason@Dart:~$ sudo apt-get update
Hit:1 Index of /opencpn/opencpn/ubuntu bionic InRelease
Get:2 Index of /ubuntu bionic-security InRelease [88.7 kB]
Hit:3 Index of /ubuntu bionic InRelease
Get:4 Index of /ubuntu bionic-updates InRelease [88.7 kB]
Get:5 Index of /ubuntu bionic-backports InRelease [74.6 kB]
Fetched 252 kB in 8s (32.5 kB/s)
Reading package lists... Done
rgleason@Dart:~$ sudo apt-get install ruby
Reading package lists... Done
Building dependency tree
Reading state information... Done
ruby is already the newest version (1:2.5.1).
0 upgraded, 0 newly installed, 0 to remove and 242 not upgraded.
rgleason@Dart:~$ sudo apt-get gem
E: Invalid operation gem
rgleason@Dart:~$
Quote:
rgleason@Dart:~$ sudo apt-get install gem
Reading package lists... Done
Building dependency tree
Reading state information... Done
gem is already the newest version (1:0.93.3-13).
0 upgraded, 0 newly installed, 0 to remove and 242 not upgraded.
These did not come up as questions. I answered first one YES earlier.

<Question: allow restarting of services during package upgrades without asking? Yes>

<Windows firewall: for ruby 2.5 allow ruby to communicate ... tick all>
rgleason is offline   Reply With Quote
Old 23-06-2019, 16:43   #675
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,808
Images: 2
Re: Tactics Plugin

This one is not downloading "specs.4.8.gz" which was downloaded by wget and is in home/rgleason


Quote:
gem install travis
is there a way to point it at that file?


gem install home/rgleason/specs.4.8.gz travis ?
Attached Files
File Type: doc travis-CLI-output.doc (5.6 KB, 41 views)
rgleason is offline   Reply With Quote
Reply

Tags
plug


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
Multihull storm tactics? sneuman Multihull Sailboats 234 13-04-2023 18:01
Storm Tactics irwinsailor The Library 90 15-10-2009 04:24
Heavy Weather Tactics and Equipment Benny Seamanship & Boat Handling 54 10-09-2009 06:04
Storm Tactics GordMay The Library 1 17-04-2005 05:54
Heavy-Weather Tactics: GordMay General Sailing Forum 25 28-10-2003 15:44

Advertise Here
  Vendor Spotlight
No Threads to Display.


All times are GMT -7. The time now is 08:38.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.