mirror of
https://github.com/mewtek/i2ME-Legacy.git
synced 2025-05-19 20:10:24 -05:00
Function to return tide stations in the MPC
This commit is contained in:
parent
910d692f0d
commit
5b734f314c
@ -29,6 +29,12 @@ def getPrimaryLocations():
|
||||
|
||||
return locationIds
|
||||
|
||||
def getTideStations():
|
||||
""" Returns all of the tide stations present in the MachineProductCfg """
|
||||
stations = []
|
||||
for i in data['Config']['ConfigDef']['ConfigItems']['ConfigItem']:
|
||||
if "TideStation" in i['@key'] and i['@value'] != "":
|
||||
stations.append(i['@value'].split("_")[2])
|
||||
|
||||
def getAirportCodes():
|
||||
""" Returns all of the airport identifiers present in the MachineProductCfg """
|
||||
|
Loading…
x
Reference in New Issue
Block a user