Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Night--new question

Featured Replies

Thanks for all the speedy help opn the other questions I've posted. This looks like a friendly and helpful forum. My next question has to do with testing whether or not it's "night" outside. Is there a token variable I can include in my XML file?I'm making a gauge that displays two different bitmaps:1. Daytime bitmap2. Nighttime bitmap3. Nighttime bitmap with Bright="Yes"The third condition simulates turning on the gauge's lights. But how can I tell that the sim knows it's dark outside? I found the GMT variables in the SDK, but I'd really hate to go calculating for all the possibile time zones...---Will

Nevermind!---Will

  • Author
  • Moderator

>Nevermind!>---WillNevermind what?TIME OF DAY, enum is "broken..." It doesn't work... ;(

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator
  • Author
  • Moderator

Oh boy, do I remember that from several years ago... We tried that in one commercial release, and frankly were very disappointed in the actual performance, or rather the often unpredictable performance.We decided at that time - never again! ;)

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

If anyone's interested, they can give the attached a try.Gauge syntax is:gauge19=dsd_time_of_day!time_of_day, 457,328,20It will dump the time of day into(L:time_of_day, enum)with the following values:Day 1Dawn, Dusk 2Night 4Not tested with anything other than FS9...Doug

Bill, That formula , what I call "Sun Elevation Factor", was one of the first things I've learnt from here. And indeed works great in XML so far I tested (and after a slightly change made by myself).Tom

  • Author
  • Moderator

>Bill, That formula , what I call "Sun Elevation Factor", was>one of the first things I've learnt from here. And indeed>works great in XML so far I tested (and after a slightly>change made by myself).It was the sometimes unpredictable performance that eventually became excessively annoying. We had too many "complaints" about it, so went back to providing a 'switch' for daytime floods the user can use - or not - whenever they wish... ;)

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.