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 2:26 pm

Turnit wrote in Thu Aug 13, 2015 2: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 2:42 pm

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

Postby Turnit » Sun Aug 16, 2015 2: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: 520
Joined: Sun Aug 24, 2014 9: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 2: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: 520
Joined: Sun Aug 24, 2014 9: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 11:50 am

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 7: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 5: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 7: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 11:13 am

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 5: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 2:42 pm

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

Postby Turnit » Wed Sep 30, 2015 2: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: 520
Joined: Sun Aug 24, 2014 9: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 6: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 8: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 12: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: 56
Joined: Mon Aug 20, 2018 5:39 pm

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

Postby legoboyvdlp » Fri Oct 05, 2018 3: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: 7164
Joined: Sat Jul 26, 2014 1:28 am
Callsign: YV-LEGO
Version: 2018.3.1
OS: Windows 10 HP

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

Postby StKario » Wed Jul 31, 2019 4: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: Sat Jan 09, 2016 11:37 pm

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

Postby legoboyvdlp » Wed Jul 31, 2019 1: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: 7164
Joined: Sat Jul 26, 2014 1:28 am
Callsign: YV-LEGO
Version: 2018.3.1
OS: Windows 10 HP

Previous

Return to Virtual airlines

Who is online

Users browsing this forum: No registered users and 2 guests