tested to work for most entities NEXT: add logs property to asset
This commit is contained in:
@@ -1,6 +1,25 @@
|
||||
import lib as neo
|
||||
|
||||
if __name__ == "__main__":
|
||||
result = neo.getHarvests()
|
||||
for i in result:
|
||||
print(f"name: {i.name} plant: {i.getPlant().name}")
|
||||
seedings = neo.Seeding.get_list()
|
||||
for seeding in seedings:
|
||||
plant = seeding.getPlant()
|
||||
equipment = seeding.equipment[0]
|
||||
quantity = seeding.quantities[0]
|
||||
print(f"name: {seeding.name}")
|
||||
print(f"timestamp: {seeding.timestamp}")
|
||||
print(f"plant name: {plant.name}")
|
||||
print(f"plant crop: {plant.crop[0].name}")
|
||||
print(f"plant loc: {plant.location.name}")
|
||||
print(f"equipment: {equipment.name}")
|
||||
print(f"isMovement: {seeding.isMovement}")
|
||||
print(f"Q1 type: {quantity.type}")
|
||||
print(f"Q1 measure: {quantity.measure}")
|
||||
print(f"Q1 value: {quantity.value}")
|
||||
print(f"Q1 units: {quantity.units.name}")
|
||||
print(f"Q1 inv adj: {quantity.inventory_adjustment}")
|
||||
print(f"Q1 inv ass: {quantity.inventory_asset.name}")
|
||||
print(f"Q2 type: {quantity.type}")
|
||||
print(f"Q2 measure: {quantity.measure}")
|
||||
print(f"Q2 value: {quantity.value}")
|
||||
print(f"Q2 units: {quantity.units.name}")
|
||||
Reference in New Issue
Block a user