ran ok after config file:
providerUrl="tcps://ems1.swim.faa.gov:55443"
queue=wturner.cssiinc.com.STDDS.406b1fad-b8d5-433d-99ee-26f9d5a1037f.OUT
connectionFactory=wturner.cssiinc.com.CF
username=wturner.cssiinc.com
password=b2E1PL_3SZWY0B7FQEuCcA
vpn=STDDS
metrics=true
output=com.harris.cinnato.outputs.FileOutput
json=true
and to run:
java -Dconfig.file=config.file -jar lib/jumpstart-jar-with-dependencies.jar
seems simple:
WTurner@ASDI-DB ~/swim2020/jumpstart
$ mvn compile
<lots>
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 10 source files to C:\cygwin64\home\WTurner\swim2020\jumpstart\target\classes
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 16.487 s
[INFO] Finished at: 2020-12-20T15:08:39-05:00
[INFO] Final Memory: 42M/743M
[INFO] ------------------------------------------------------------------------
then:
WTurner@ASDI-DB ~/swim2020/jumpstart
$ mvn package
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 26.472 s
[INFO] Finished at: 2020-12-20T15:22:09-05:00
[INFO] Final Memory: 75M/1198M
[INFO] ------------------------------------------------------------------------
seems to have built something:
-rwxr-xr-x 1 WTurner Domain Users 129023 Dec 20 15:21 target/jumpstart-1.5.0.jar*
-rwxr-xr-x 1 WTurner Domain Users 7626999 Dec 20 15:22 target/jumpstart-jar-with-dependencies.jar*
Extend the com.harris.cinnato.outputs.Output class and implement a
output(String message) function. When launching the JumpStart kit pass in
new class -Doutput=com.harris.cinnato.outputs.<NewClass>
will try open and simple select...
jdbc jar solution: edit pom.xml to add dependency for postgresql....jar; it worked
ciwsdb=>
create table asdex (
acid text,
track integer,
ptime timestamptz,
altitude integer,
lat float,
lon float,
position geometry(Point, 4326)
);
CREATE TABLE
TODO:
login to github:
wendellwt
create repo: asdex
FROM WITHIN asdex/
===============================================
$ pwd
/home/wturner/flask_apps/asdex
[wturner@acy_test_app_vm_rserver asdex]$ ll
total 0
drwxrwxr-x. 5 wturner wturner 155 Dec 28 20:17 frontend
drwxrwxr-x. 6 wturner wturner 155 Dec 28 20:17 rs_deploy
drwxr-xr-x. 4 wturner wturner 67 Dec 28 20:32 service
===============================================
or create a new repository on the command line
echo "# asdex" >> README.md
git init
git add README.md
$ git add --all
$ git commit -m "first commit"
[master (root-commit) 42a950d] first commit
20 files changed, 13724 insertions(+)
create mode 100644 .gitignore
create mode 100644 README.md
create mode 100644 frontend/cssi.config.js
create mode 100644 frontend/faa.config.js
....
create mode 100755 service/cgi/get_tracks.py
create mode 100644 service/srv.conf
$ git branch -M main
$ git remote add origin https://github.com/wendellwt/asdex.git
$ git push -u origin main
Username for 'https://github.com': wendellwt
Password for 'https://wendellwt@github.com':
Counting objects: 30, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (26/26), done.
Writing objects: 100% (30/30), 128.19 KiB | 0 bytes/s, done.
Total 30 (delta 1), reused 0 (delta 0)
remote: Resolving deltas: 100% (1/1), done.
To https://github.com/wendellwt/asdex.git
* [new branch] main -> main
Branch main set up to track remote branch main from origin.
ref: https://stackoverflow.com/questions/25741381/cherrypy-as-a-windows-service-the-example
Issue: will try to uninstall and re-install the SwimService...
Here goes...
$ /cygdrive/c/Users/wturner/Python37/python.exe SwimService.py remove
Removing service CherryPyService
Service removed
and clone the new repo under swim2020:
WTurner@ASDI-DB ~/swim2020
$ git clone https://github.com/wendellwt/asdex.git
Cloning into 'asdex'...
remote: Enumerating objects: 30, done.
remote: Counting objects: 100% (30/30), done.
remote: Compressing objects: 100% (25/25), done.
remote: Total 30 (delta 1), reused 30 (delta 1), pack-reused 0
Receiving objects: 100% (30/30), 128.19 KiB | 5.57 MiB/s, done.
Resolving deltas: 100% (1/1), done.
copy over credentials:
$ cd asdex/service/cgi/
$ cp ~/swim2018/b4_git_service/cgi/.winsvc.toml .
and to install the 'new' service:
cd ~/swim2020/asdex/service
$ /cygdrive/c/Users/wturner/Python37/python.exe SwimService.py install
Installing service CherryPyService
Service installed
$ cd ~/swim2020/asdex/frontend
$ npm install
$ make