Board index FlightGear Multiplayer events Virtual airlines

Barry's BlackBox - An ACARS client for FlightGear

Discussion relating to virtual airlines.

Re: Barry's BlackBox - An ACARS client for FlightGear

Postby barry.ballantines » Sun Aug 16, 2015 3:26 pm

Turnit wrote in Thu Aug 13, 2015 3:46 pm:Do you mean the windows command line, or one for FG that I don't know about?


if you are referring to command line options for FG, then yes: Windows (or Linux) command line... is a way to prepare FG for Barry's BlackBox... but I prefer the "Advanced" configuration of the FlightGear Wizard.
barry.ballantines
 
Posts: 9
Joined: Fri Aug 07, 2015 3:42 pm

Re: Barry's BlackBox - An ACARS client for FlightGear

Postby Turnit » Sun Aug 16, 2015 3:33 pm

I can be booted up in an aircraft, press test, and it will still say connection failed. I'm on 3.0, I can try 3.2, but I'm not sure my laptop will run it. I'm pretty sure I got the configuration right, but ill check again.
Harbor Air Virutal - Launching 11/28/2019
Turnit
 
Posts: 518
Joined: Sun Aug 24, 2014 10:21 pm
Location: Washington State, USA
Callsign: Turnit
Version: 2017.2.1
OS: Windows 8.1

Re: Barry's BlackBox - An ACARS client for FlightGear

Postby Turnit » Mon Aug 17, 2015 3:35 am

I updated to 3.2, and it worked. Ill ingrate it into my VA now.
Harbor Air Virutal - Launching 11/28/2019
Turnit
 
Posts: 518
Joined: Sun Aug 24, 2014 10:21 pm
Location: Washington State, USA
Callsign: Turnit
Version: 2017.2.1
OS: Windows 8.1

Re: Barry's BlackBox - An ACARS client for FlightGear

Postby tauchergreg » Mon Aug 17, 2015 12:50 pm

Hello, Barry (I think)

I have make some tests and I think the communication between BlackBox 1.0 and FG 3.7 is OK.

Yes if you say Test the result is fail but the DATAs ok.

But I have some problems when I stop the recording.

In the PIREP folder the Flight Time is set to 00:00 and Fuel Used is set to -start value .

In the Overview folder the arrive time is not set and fuel is 0.

I hope this Infos help you.

Best regrades
Gregor
C160 Transall , Twin Otter DHC6, both with small modification
EF2000
ETMN & EDXN under development
User avatar
tauchergreg
 
Posts: 58
Joined: Tue Jul 03, 2012 8:36 am
Location: near ETMN
Callsign: OFD001 ; BRT0192
Version: 20xx
OS: Linux & W7

Re: Barry's BlackBox - An ACARS client for FlightGear

Postby tauchergreg » Sat Aug 22, 2015 6:35 pm

Hello,

I have make some more tests
BlackBox 1.1 and FG 3.7 on linux

If I press the TEST I get this Info in the FG log

Network:-1: errno: Resource temporarily unavailable(11)
RegularConnection::request for /json/sim/airport/closest-airport-id
JsonUriHandler: request is '/json/sim/airport/closest-airport-id'
RegularConnection::request() responding 125 Bytes, done=1
RegularConnection::request for /json/consumables/fuel/total-fuel-lbs
JsonUriHandler: request is '/json/consumables/fuel/total-fuel-lbs'
RegularConnection::request() responding 127 Bytes, done=1

with FG 3.2.xx the red marked lines not there.


But I have some problems when I stop the recording.

In the PIREP folder the Flight Time is set to 00:00 and Fuel Used is set to -start value .

In the Overview folder the arrive time is not set and fuel is 0.

I hope this Infos help you.

Best regrades
Gregor
C160 Transall , Twin Otter DHC6, both with small modification
EF2000
ETMN & EDXN under development
User avatar
tauchergreg
 
Posts: 58
Joined: Tue Jul 03, 2012 8:36 am
Location: near ETMN
Callsign: OFD001 ; BRT0192
Version: 20xx
OS: Linux & W7

Re: Barry's BlackBox - An ACARS client for FlightGear

Postby barry.ballantines » Wed Aug 26, 2015 12:13 pm

Hi Greg,

did you try the suspicious URL (http://localhost:5500/json/sim/airport/ ... airport-id) in a web browser?
you should get some kind of JSON result...

I am also waiting for the next official release of FG (which will be 3.6 as far as I can see)... Your version 3.7 is a nightly build, right?

Unfortunately I don't have a powerfull Linux machine to test your 3.7 release...


By the way, Barry's BlackBox should also give you some log messages on the console (when started directly with "java -jar blackbox-1.0.jar").
Maybe you will find some exceptions matching the log warnings in the FG log.

If so, just let me know.


tauchergreg wrote in Sat Aug 22, 2015 6:35 pm:Hello,

I have make some more tests
BlackBox 1.1 and FG 3.7 on linux

If I press the TEST I get this Info in the FG log

Network:-1: errno: Resource temporarily unavailable(11)
RegularConnection::request for /json/sim/airport/closest-airport-id
JsonUriHandler: request is '/json/sim/airport/closest-airport-id'
RegularConnection::request() responding 125 Bytes, done=1
RegularConnection::request for /json/consumables/fuel/total-fuel-lbs
JsonUriHandler: request is '/json/consumables/fuel/total-fuel-lbs'
RegularConnection::request() responding 127 Bytes, done=1

with FG 3.2.xx the red marked lines not there.


But I have some problems when I stop the recording.

In the PIREP folder the Flight Time is set to 00:00 and Fuel Used is set to -start value .

In the Overview folder the arrive time is not set and fuel is 0.

I hope this Infos help you.

Best regrades
Gregor
barry.ballantines
 
Posts: 9
Joined: Fri Aug 07, 2015 3:42 pm

Re: Barry's BlackBox - An ACARS client for FlightGear

Postby Turnit » Wed Sep 30, 2015 3:09 pm

I need your connection for phpvms for the client to be able to connect the client to phpvms. Do you have that?
Harbor Air Virutal - Launching 11/28/2019
Turnit
 
Posts: 518
Joined: Sun Aug 24, 2014 10:21 pm
Location: Washington State, USA
Callsign: Turnit
Version: 2017.2.1
OS: Windows 8.1

Re: Barry's BlackBox - An ACARS client for FlightGear

Postby berkut » Sat Mar 26, 2016 7:58 pm

How to install this thing on Windows 7? I have everything done in FG.


Please help.
A winner is a dreamer who never gives up...
berkut
 
Posts: 540
Joined: Tue Aug 19, 2014 9:58 pm
Location: Banja Luka,Republic of Srpska.
Callsign: Berkut
Version: 2017 3 1
OS: Windows 7

Re: Barry's BlackBox - An ACARS client for FlightGear

Postby bbuske » Sat Sep 08, 2018 1:24 am

All I get when trying to start it is:

Error: Could not find or load main class
ballantines.avionics.blackbox.MainApp
Ben

PPL(A) (2009), CPL(A)(2011), ATPL(A)(2015)
bbuske
 
Posts: 57
Joined: Mon Aug 20, 2018 6:39 pm

Re: Barry's BlackBox - An ACARS client for FlightGear

Postby legoboyvdlp » Fri Oct 05, 2018 4:13 pm

I get this when filing a PIREP:


Code: Select all
org.javalite.http.HttpException: Failed URL: http://wing.megaf.info/action.php/kacars_free
   at org.javalite.http.Request.responseCode(Request.java:101)
   at org.javalite.http.Request.text(Request.java:152)
   at ballantines.avionics.kacars.KAcarsClient.sendBody(KAcarsClient.java:131)
   at ballantines.avionics.kacars.KAcarsClient.send(KAcarsClient.java:122)
   at ballantines.avionics.kacars.KAcarsClient.send(KAcarsClient.java:105)
   at ballantines.avionics.kacars.KAcarsClient.filePIREP(KAcarsClient.java:86)
   at ballantines.avionics.blackbox.panel.PIREPFilingForm.filePirep(PIREPFilingForm.java:218)
   at ballantines.avionics.blackbox.panel.PIREPFilingForm.pipeUpdated(PIREPFilingForm.java:116)
   at de.mbuse.pipes.Pipe.fireUpdateEvent(Pipe.java:119)
   at de.mbuse.pipes.Pipe.set(Pipe.java:84)
   at de.mbuse.pipes.Pipe$1.pipeUpdated(Pipe.java:40)
   at de.mbuse.pipes.Pipe.fireUpdateEvent(Pipe.java:119)
   at de.mbuse.pipes.Pipe.set(Pipe.java:84)
   at ballantines.avionics.blackbox.Services.fireCommand(Services.java:105)
   at ballantines.avionics.blackbox.panel.Toolbar.uploadPirepBtnPressed(Toolbar.java:114)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at sun.reflect.misc.Trampoline.invoke(Unknown Source)
   at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at sun.reflect.misc.MethodUtil.invoke(Unknown Source)
   at javafx.fxml.FXMLLoader$MethodHandler.invoke(FXMLLoader.java:1771)
   at javafx.fxml.FXMLLoader$ControllerMethodEventHandler.handle(FXMLLoader.java:1657)
   at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
   at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
   at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
   at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
   at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
   at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
   at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
   at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
   at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
   at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
   at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
   at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
   at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
   at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:49)
   at javafx.event.Event.fireEvent(Event.java:198)
   at javafx.scene.Node.fireEvent(Node.java:8411)
   at javafx.scene.control.Button.fire(Button.java:185)
   at com.sun.javafx.scene.control.behavior.ButtonBehavior.mouseReleased(ButtonBehavior.java:182)
   at com.sun.javafx.scene.control.skin.BehaviorSkinBase$1.handle(BehaviorSkinBase.java:96)
   at com.sun.javafx.scene.control.skin.BehaviorSkinBase$1.handle(BehaviorSkinBase.java:89)
   at com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(CompositeEventHandler.java:218)
   at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:80)
   at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
   at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
   at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
   at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
   at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
   at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
   at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
   at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
   at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
   at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
   at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
   at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
   at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
   at javafx.event.Event.fireEvent(Event.java:198)
   at javafx.scene.Scene$MouseHandler.process(Scene.java:3757)
   at javafx.scene.Scene$MouseHandler.access$1500(Scene.java:3485)
   at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1762)
   at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2494)
   at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:394)
   at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:295)
   at java.security.AccessController.doPrivileged(Native Method)
   at com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$353(GlassViewEventHandler.java:432)
   at com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:389)
   at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:431)
   at com.sun.glass.ui.View.handleMouseEvent(View.java:555)
   at com.sun.glass.ui.View.notifyMouse(View.java:937)
   at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
   at com.sun.glass.ui.win.WinApplication.lambda$null$147(WinApplication.java:177)
   at java.lang.Thread.run(Unknown Source)
Caused by: java.net.SocketTimeoutException: Read timed out
   at java.net.SocketInputStream.socketRead0(Native Method)
   at java.net.SocketInputStream.socketRead(Unknown Source)
   at java.net.SocketInputStream.read(Unknown Source)
   at java.net.SocketInputStream.read(Unknown Source)
   at java.io.BufferedInputStream.fill(Unknown Source)
   at java.io.BufferedInputStream.read1(Unknown Source)
   at java.io.BufferedInputStream.read(Unknown Source)
   at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
   at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
   at java.net.HttpURLConnection.getResponseCode(Unknown Source)
   at org.javalite.http.Request.responseCode(Request.java:99)
   ... 76 more


Any suggestions?
User avatar
legoboyvdlp
 
Posts: 7981
Joined: Sat Jul 26, 2014 2:28 am
Location: Northern Ireland
Callsign: G-LEGO
Version: next
OS: Windows 10 HP

Re: Barry's BlackBox - An ACARS client for FlightGear

Postby StKario » Wed Jul 31, 2019 5:21 am

Getting this error...

[esteban@spatule ACARS]$ java -cp -jar blackbox-1.7.jar
Erreur : impossible de trouver ou charger la classe principale blackbox-1.7.jar
[esteban@spatule ACARS]$

Would translate to:

[esteban@spatule ACARS]$ java -jar blackbox-1.7.jar
Error: Could not find or load main class ballantines.avionics.blackbox.MainApp

[esteban@spatule ACARS]$

Does anyone know a solution?

Thanks!

Esteban
StKario
 
Posts: 7
Joined: Sun Jan 10, 2016 12:37 am

Re: Barry's BlackBox - An ACARS client for FlightGear

Postby legoboyvdlp » Wed Jul 31, 2019 2:17 pm

Might be something here:

https://javahungry.blogspot.com/2018/11 ... s.html?m=1

Works fine in windows... but that is by double clicking the icon
User avatar
legoboyvdlp
 
Posts: 7981
Joined: Sat Jul 26, 2014 2:28 am
Location: Northern Ireland
Callsign: G-LEGO
Version: next
OS: Windows 10 HP

Re: Barry's BlackBox - An ACARS client for FlightGear

Postby Simion » Sun Jan 03, 2021 9:47 pm

Hey all,
I get an error when inserting the command 'java -jar blackbox-1.7.jar'
the error says: Error: Could not find or load main class ballantines.avionics.blackbox.MainApp
Caused by: java.lang.NoClassDefFoundError: javafx/application/Application.
Can anyone help?
OS: Ubuntu 20.04.1
Simion
 
Posts: 9
Joined: Mon Apr 27, 2020 2:25 pm

Re: Barry's BlackBox - An ACARS client for FlightGear

Postby slawekmikula » Sun Jan 03, 2021 10:06 pm

Make sure you have JavaFX with your Java jre/jdk. For sure oracle Java 8 has it, and Amazon corretto 8. Java 11 might have additional packages to install.
slawekmikula
 
Posts: 128
Joined: Sun Feb 19, 2017 10:31 am

Previous

Return to Virtual airlines

Who is online

Users browsing this forum: No registered users and 1 guest