Go Back  PPRuNe Forums > Flight Deck Forums > Terms and Endearment
Reload this Page >

Roster Pattern Generator

Wikiposts
Search
Terms and Endearment The forum the bean counters hoped would never happen. Your news on pay, rostering, allowances, extras and negotiations where you work - scheduled, charter or contract.

Roster Pattern Generator

Thread Tools
 
Search this Thread
 
Old 14th Dec 2023, 14:17
  #1 (permalink)  
Thread Starter
 
Join Date: May 2001
Location: England
Posts: 1,904
Likes: 0
Received 0 Likes on 0 Posts
Roster Pattern Generator

RosterPatternGenerator

For those that have a fixed roster pattern and need to know in advance what your working days and off days are going to be, you may find this useful.
It's written in PowerShell. You don't need a Windows machine to run it, you can run online by clicking the above link (though if run locally the output is more pretty).

You can specify two different patterns (one for summer, one for winter). You can also choose the Winter and Summer months. Be sure to change the start date here first:



Tio.run output


Script running on PC output:

Last edited by Superpilot; 14th Dec 2023 at 16:50.
Superpilot is offline  
Old 15th Dec 2023, 16:16
  #2 (permalink)  
 
Join Date: Dec 2009
Location: Third planet from the sun
Posts: 33
Received 0 Likes on 0 Posts
Thanks very much for that. Runs nicely on a local PC.
I see that you have modified the code slightly since the initial release and now is more clear of what and how we can modify the variables.
I initially changed the pattern according to mine, then since it does not change between summer and winter, with my very limited knowledge I had a hard time removing the IF function. Finally ended up in modifying the winter and summer months both to 0, and the trick was done!
Forgive my ignorance, but can this be "converted" to some other code with a basic UI, or is there a way to use it via a browser for example, so it can be used on a mobile phone or other device and without internet?
TheBat is offline  
Old 16th Dec 2023, 10:34
  #3 (permalink)  
Thread Starter
 
Join Date: May 2001
Location: England
Posts: 1,904
Likes: 0
Received 0 Likes on 0 Posts
You can run this via a mobile web browser (Just click the Play inside circle icon) and copy and paste the results to wherever you need them but Internet needed of course. Offline usage on mobiles would require writing an app unfortunately. Keen to know the need for an offline version though. My use case was simple: Run it, generate the data, save it somewhere to refer to, and that's it for the year.

Admittedly data output can be improved as the current list version might not suit. I can have a go at changing the look if you're interested?
Superpilot is offline  
Old 16th Dec 2023, 11:57
  #4 (permalink)  
 
Join Date: Sep 1999
Location: uk
Posts: 11
Likes: 0
Received 0 Likes on 0 Posts
Or you can just use Google calendar 🤷‍♂️
whiskydrinker is offline  

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Contact Us - Archive - Advertising - Cookie Policy - Privacy Statement - Terms of Service

Copyright © 2024 MH Sub I, LLC dba Internet Brands. All rights reserved. Use of this site indicates your consent to the Terms of Use.