OpenMarine
Server Hardware for openplotter? - Printable Version

+- OpenMarine (https://forum.openmarine.net)
+-- Forum: OpenPlotter (https://forum.openmarine.net/forumdisplay.php?fid=1)
+--- Forum: General discussion (https://forum.openmarine.net/forumdisplay.php?fid=2)
+--- Thread: Server Hardware for openplotter? (/showthread.php?tid=1807)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38


RE: Server Hardware for openplotter? - Sailoog - 2020-03-06

I will try to publish the docs today. You will need openplotter-settings 2.2.0, update please.


RE: Server Hardware for openplotter? - Max1947 - 2020-03-06

(2020-03-06, 12:03 PM)Sailoog Wrote: I will try to publish the docs today. You will need openplotter-settings 2.2.0, update please.

Hi Sailoog, already updated to openplotter-settings 2.2.0, nice job! Now only missing (so to speak ...) Pypilot "stable" ... thanks for the immense work done. Good wind ... always !!! Smile Tongue

(2020-03-06, 12:10 PM)Max1947 Wrote:
(2020-03-06, 12:03 PM)Sailoog Wrote: I will try to publish the docs today. You will need openplotter-settings 2.2.0, update please.

Hi Sailoog, already updated to openplotter-settings 2.2.0, nice job! Now only missing (so to speak ...) Pypilot "stable" ... thanks for the immense work done. Good wind ... always !!! Smile Tongue

.... and in the face of the "coronavirus" ... and to think that this year I have not even done the antiviral vaccine and therefore we do the begging ... then in the ass of the whale!  Big Grin Rolleyes Big Grin


RE: Server Hardware for openplotter? - glowntiger - 2020-03-06

The Corona Virus is also the reason for the delay... I hope I get them at the beginning of next week... that is my last update. But then I have enough ;-)


RE: Server Hardware for openplotter? - Sailoog - 2020-03-09

Here we go: https://openplotter.readthedocs.io/en/latest/external/myapp_app.html

Let me know if something is not clear.


RE: Server Hardware for openplotter? - glowntiger - 2020-03-09

Hi Sailoog,
i have done all the changes... But something went wrong with the gpg.key.
I have add the gpg Key to data/MCS.gpg.key.
I have further done all the changes in post install and preuninstall. for the config entry and the package and key entry.
Then I have build the package without errors and warnings and add it to cloudsmith. The GPG is the public key from cloudsmith.
This is the error message:
Code:
Adding MCS-app to OpenPlotter...
FAILED: unexpected EOF while parsing (<string>, line 0)
Checking sources...
gpg: Ungültige ASCII-HüllemQENBF5fs9MBCAC8d2wepJdDdzfPKchpjNQihimopFOH2rwXcIalofhGKZYW9wmf\r\n
OK:1 http://archive.raspberrypi.org/debian buster InRelease
OK:2 http://raspbian.raspberrypi.org/raspbian buster InRelease                                                              
OK:3 https://www.free-x.de/debian buster InRelease                                                                          
OK:4 http://ppa.launchpad.net/opencpn/opencpn/ubuntu bionic InRelease                                                        
Holen:5 https://dl.cloudsmith.io/public/thomas-gersmann/openplotter-mcs/deb/debian buster InRelease [5.628 B]                
OK:6 https://repos.influxdata.com/debian buster InRelease                                                                    
OK:7 http://ppa.launchpad.net/openplotter/openplotter/ubuntu bionic InRelease                                                
OK:8 https://packages.grafana.com/oss/deb stable InRelease                                                                  
OK:9 https://deb.nodesource.com/node_10.x buster InRelease                
Holen:10 https://dl.cloudsmith.io/public/openplotter/openplotter/deb/debian buster InRelease [5.524 B]
Fehl:5 https://dl.cloudsmith.io/public/thomas-gersmann/openplotter-mcs/deb/debian buster InRelease
  Die folgenden Signaturen konnten nicht überprüft werden, weil ihr öffentlicher Schlüssel nicht verfügbar ist: NO_PUBKEY FAF1571900218507
Paketlisten werden gelesen... Fertig
W: GPG-Fehler: https://dl.cloudsmith.io/public/thomas-gersmann/openplotter-mcs/deb/debian buster InRelease: Die folgenden Signaturen konnten nicht überprüft werden, weil ihr öffentlicher Schlüssel nicht verfügbar ist: NO_PUBKEY FAF1571900218507
E: Das Depot »https://dl.cloudsmith.io/public/thomas-gersmann/openplotter-mcs/deb/debian buster InRelease« ist nicht signiert.
N: Eine Aktualisierung von solch einem Depot kann nicht auf eine sichere Art durchgeführt werden, daher ist es standardmäßig deaktiviert.
N: Weitere Details zur Erzeugung von Paketdepots sowie zu deren Benutzerkonfiguration finden Sie in der Handbuchseite apt-secure(8).
DONE
Can you help me with this?
https://github.com/Thomas-GeDaD/openplotter-MCS/blob/master/openplotterMCS/data/MCS.gpg.key


RE: Server Hardware for openplotter? - Sailoog - 2020-03-10

I have made a pull request to your github fixing that issue.


RE: Server Hardware for openplotter? - glowntiger - 2020-03-10

Hi Sailoog,
thnk you very much.
I have add it and it works.
I have a further Problem.
You do this to add the app to the config:
Code:
try:
    externalApps0 = eval(conf2.get('APPS', 'external_apps'))
    externalApps1 = []
    for i in externalApps0:
        if i['package'] != package: externalApps1.append(i)
    externalApps1.append(app)
    conf2.set('APPS', 'external_apps', str(externalApps1))
    print(_('DONE'))
except Exception as e: print(_('FAILED: ')+str(e))



If there is an empty string in the config (normaly if you do not have add an app)  The try braks off and the app should not added to the config.
Should i add an handle for if string is not empty?
because eval("") =>SyntaxError: unexpected EOF while parsing


RE: Server Hardware for openplotter? - Sailoog - 2020-03-10

OK, let me try to reproduce and fix this error.


RE: Server Hardware for openplotter? - glowntiger - 2020-03-10

So all works fine:
Code:
try:
        externalApps0 = conf2.get('APPS', 'external_apps')
        if externalApps0:
            externalApps0 = eval(externalApps0)
        externalApps1 = []
        for i in externalApps0:
            if i['package'] != package: externalApps1.append(i)
        externalApps1.append(app)
        conf2.set('APPS', 'external_apps', str(externalApps1))
        print(_('DONE'))
    except Exception as e: print(_('FAILED: ')+str(e))


is it o.k. for you?


RE: Server Hardware for openplotter? - glowntiger - 2020-03-10

Further the app is not right detected?: