Board index FlightGear Development New features

Heaven or Hell? Phi sneak preview.

Discussion and requests for new features. Please note that FlightGear developers are volunteers and may or may not be able to consider these requests.

Re: Heaven or Hell? Phi sneak preview.

Postby Torsten » Thu Jun 11, 2015 9:44 pm

Thank you.
That is indeed a build just before the update of the internal web server was commited.
I need some time to investigate what's going on - stay tuned...

Torsten
flightgear.org - where development happens.
User avatar
Torsten
 
Posts: 648
Joined: Fri Feb 01, 2008 10:22 pm
Location: near Hamburg, Germany
Callsign: offline
Version: next
OS: Linux

Re: Heaven or Hell? Phi sneak preview.

Postby Torsten » Fri Jun 12, 2015 10:56 am

I was able to reproduce this on W32.
I have reverted the offending commit, let's try the next nightly.

Torsten
flightgear.org - where development happens.
User avatar
Torsten
 
Posts: 648
Joined: Fri Feb 01, 2008 10:22 pm
Location: near Hamburg, Germany
Callsign: offline
Version: next
OS: Linux

Re: Heaven or Hell? Phi sneak preview.

Postby clrCoda » Fri Jun 12, 2015 1:07 pm

Excellent! I look forward to the next nightly for testing.

I suppose this means you have to re-define your previous goal. I want to wish you the best of luck in that endeavor.

Thanks again,
Ray

Post Edit: Reset the pointer from Hell back to Heaven :)
Ray St. Marie
clrCoda
 
Posts: 1225
Joined: Wed Apr 07, 2010 12:04 pm

Re: Heaven or Hell? Phi sneak preview.

Postby clrCoda » Sat Jun 13, 2015 3:11 pm

I'm looking forward to test the PHI on a new windows nightly build, but it appears just the Windows part of the build server can't be reached and the winNightlies are no longer building.

--Ray
Ray St. Marie
clrCoda
 
Posts: 1225
Joined: Wed Apr 07, 2010 12:04 pm

Re: Heaven or Hell? Phi sneak preview.

Postby someguy » Sun Jun 14, 2015 5:18 am

Phi works fine in Firefox on the same iMac running FG. Very cool, Torsten! On my iPad, though, it loads the basic Phi page in Safari, but without tabs. Well, one tab graphic with no label, everything below that is blank.

EDIT: Hmm. Now it works fine on iPad. Nevermind... :)
Last edited by someguy on Sun Jun 14, 2015 6:44 am, edited 1 time in total.
User avatar
someguy
 
Posts: 1650
Joined: Tue Nov 25, 2008 6:54 am
Location: USA
Version: 2019.1.1
OS: Mac OS X 10.11.6

Re: Heaven or Hell? Phi sneak preview.

Postby wkitty42 » Sun Jun 14, 2015 6:44 am

i've seen this a few times over here in my firefox on linux on the same workstation as fgfs is running... i generally just refresh and it seems to recover and come on up... i do access fgfs from another workstation at times when i'm showing someone else the map and the simulator view (wish that would update more often then once every 5 seconds) but i don't recall if this partial loading has been seen from there... if it has, i've just done the reload thing and it has worked...

speaking of using other workstations and having others being able to watch, how do we prevent them from changing anything via the interface?
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9146
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

Re: Heaven or Hell? Phi sneak preview.

Postby Torsten » Sun Jun 14, 2015 4:00 pm

wkitty42 wrote in Sun Jun 14, 2015 6:44 am:i've seen this a few times over here in my firefox on linux on the same workstation as fgfs is running...

This sometimes happens right after startup of flightgear when the server did not respond fast enough for the browser to load all dependencies.
The reason is, that the httpd is still linked into the main loop. This will eventually change in the future.

wkitty42 wrote in Sun Jun 14, 2015 6:44 am:wish that would update more often then once every 5 seconds

There should be an input field "refresh every xxx seconds". Minimum value is 1 (one). What you get is an image from the screenshot server, so this introduces some load for fgfs. If you are on a fast multicore machine, it's probably not an issue.

wkitty42 wrote in Sun Jun 14, 2015 6:44 am:speaking of using other workstations and having others being able to watch, how do we prevent them from changing anything via the interface?

Currently, there is no real good way to do so. I have a rough implementation of a read-only server granting write-access only to authenticated sessions. But to implement security seriously, at least SSL and some username/password based authentication should be working. I hope to have this in a usable state during the next release cycle (3.7).

Torsten
flightgear.org - where development happens.
User avatar
Torsten
 
Posts: 648
Joined: Fri Feb 01, 2008 10:22 pm
Location: near Hamburg, Germany
Callsign: offline
Version: next
OS: Linux

Re: Heaven or Hell? Phi sneak preview.

Postby clrCoda » Sun Jun 14, 2015 4:29 pm

PHI's Back.

Working as good as it did.

Still don't get properties listing, but I'm happy with the map and metar to be honest. :)
Thanks for your attention Torsten!

--Ray
Ray St. Marie
clrCoda
 
Posts: 1225
Joined: Wed Apr 07, 2010 12:04 pm

Re: Heaven or Hell? Phi sneak preview.

Postby wkitty42 » Sun Jun 14, 2015 5:47 pm

Torsten wrote in Sun Jun 14, 2015 4:00 pm:
wkitty42 wrote in Sun Jun 14, 2015 6:44 am:i've seen this a few times over here in my firefox on linux on the same workstation as fgfs is running...

This sometimes happens right after startup of flightgear when the server did not respond fast enough for the browser to load all dependencies.
The reason is, that the httpd is still linked into the main loop. This will eventually change in the future.

i kinda thought it might be something like that... something where the sim was in the middle of doing something when the request came in and it just never got back to the request...

Torsten wrote in Sun Jun 14, 2015 4:00 pm:
wkitty42 wrote in Sun Jun 14, 2015 6:44 am:wish that would update more often then once every 5 seconds

There should be an input field "refresh every xxx seconds". Minimum value is 1 (one). What you get is an image from the screenshot server, so this introduces some load for fgfs. If you are on a fast multicore machine, it's probably not an issue.

i'll check this again... the last times i've tried setting this to one, it always reverted to five...

Torsten wrote in Sun Jun 14, 2015 4:00 pm:
wkitty42 wrote in Sun Jun 14, 2015 6:44 am:speaking of using other workstations and having others being able to watch, how do we prevent them from changing anything via the interface?

Currently, there is no real good way to do so. I have a rough implementation of a read-only server granting write-access only to authenticated sessions. But to implement security seriously, at least SSL and some username/password based authentication should be working. I hope to have this in a usable state during the next release cycle (3.7).

can't wait! have been thinking about some ways of doing this but not sure how well they'd work... one being to add command line options for controller user name and password... using ssl for the connection required... anyone without the name and password is a read-only no matter if they are ssl or not... less chance of interception over ssl and the only way then would be if they were stored on the sim machine somewhere but that would be a sim operator problem (eg: stored in fgfsrc or startup script file)...

BTW: i've got some other things related to phi (flight history and route path when crossing international date line, still getting direct line from origin to current location at certain times [washed up on beach in pontoon craft, sim paused, a few others]) for you but i guess i should get them into the tracker instead of trying to relate them here...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9146
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

Re: Heaven or Hell? Phi sneak preview.

Postby legoboyvdlp » Sun Jun 14, 2015 9:17 pm

My Chrome log is this
Code: Select all
Document was loaded from Application Cache with manifest http://localhost:8080/phi.appcache
localhost/:1 Application Cache Checking event
localhost/:32 GET http://localhost:8080/Fonts/LiberationFonts/LiberationFonts.css net::ERR_CONNECTION_REFUSED
localhost/:33 GET http://localhost:8080/3rdparty/leaflet-0.7.3/leaflet.css net::ERR_CONNECTION_REFUSED
localhost/:34 GET http://localhost:8080/3rdparty/jquery-ui-themes-1.11.2/themes/smoothness/jquery-ui.min.css net::ERR_CONNECTION_REFUSED
localhost/:1 Application Cache Error event: Manifest fetch failed (6) http://localhost:8080/phi.appcache
localhost/:278 GET http://localhost:8080/3rdparty/require/require.js net::ERR_CONNECTION_REFUSED
localhost/:1 GET http://localhost:8080/images/FI_logo.svg net::ERR_CONNECTION_REFUSED
:8080/images/FI_logo-196.png:1 GET http://localhost:8080/images/FI_logo-196.png net::ERR_CONNECTION_REFUSED


And help-about is
build 1952
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: Heaven or Hell? Phi sneak preview.

Postby Torsten » Sun Jun 14, 2015 9:51 pm

legoboyvdlp wrote in Sun Jun 14, 2015 9:17 pm:ERR_CONNECTION_REFUSED

Looks like your httpd is not running at all.
Please double-check: do you have --httpd=8080 on your command line?
Check: /sim/http/running must be 'true'
Confirm by looking at your fgfs.log: anything like "starting mongoose..." in there?


Torsten
flightgear.org - where development happens.
User avatar
Torsten
 
Posts: 648
Joined: Fri Feb 01, 2008 10:22 pm
Location: near Hamburg, Germany
Callsign: offline
Version: next
OS: Linux

Re: Heaven or Hell? Phi sneak preview.

Postby Hooray » Sun Jun 14, 2015 10:10 pm

misconfiguration seems to be a recurring issue, you could add a fgSetBool("/sim/httpd",isRunning) flag and display this in the help/about dialog for easier troubleshooting.
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 12707
Joined: Tue Mar 25, 2008 9:40 am
Pronouns: THOU

Re: Heaven or Hell? Phi sneak preview.

Postby wkitty42 » Mon Jun 15, 2015 1:58 am

let's also remember that any port, other than one already in use, can be used... i picked up 5500 for the sim's html server port from FGRun and that's what i've been using... i may have typoed it as 5050 but it is and has been 5500 since i first ran fgfs 3.4 from the ppa...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9146
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

Re: Heaven or Hell? Phi sneak preview.

Postby legoboyvdlp » Mon Jun 15, 2015 4:55 pm

I decided to use 5050, let me try 5500 and 8080
Command line is
Code: Select all
  --airport=LFGA
  --aircraft=c172p
  --console
  --disable-random-objects
  --prop:/sim/rendering/random-vegetation=false
  --enable-enhanced-lighting
  --enable-ai-models
  --disable-ai-traffic
  --enable-real-weather-fetch
  --geometry=1280x1024
  --bpp=32
  --prop:/sim/rendering/multi-sample-buffers=1
  --prop:/sim/rendering/multi-samples=2
  --disable-terrasync
  --httpd=8080
  --generic=socket,out,2,127.0.0.1,16661,udp,fgcom
  --generic=socket,out,10,192.168.0.100,5502,udp,andatlas
  --telnet=socket,in,20,,9000,tcp
  --generic=socket,out,10,192.168.0.100,5503,udp,androidnav330
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: Heaven or Hell? Phi sneak preview.

Postby www2 » Sat Jun 20, 2015 8:29 pm

Hi i have some time a bug with Phi.
When i wand to chance Date and Time click one of the buttons to chance previous month the window switch to Aircraft/help.
edit:
Tested with firefox and chromium
www2
 
Posts: 319
Joined: Thu Apr 16, 2009 2:58 pm
OS: Ubuntu

PreviousNext

Return to New features

Who is online

Users browsing this forum: No registered users and 11 guests