Parking Ticket
→ GetParkingTicket
Declaration
hmkit.autoapi.commands.get_parkingticket.GetParkingTicket()
Discussion
Command to request the parking ticket. The car will respond with the Parking Ticket message.
← ParkingTicket
Discussion
Command sent from the car every time the parking ticket state changes. or when a Get Parking Ticket message is received. The state is Ended also when the parking ticket has never been set. Afterwards the car always keeps the last parking ticket information.
hmkit.autoapi.commands.parkingticket
get_state
Declaration
hmkit.autoapi.commands.parkingticket.get_state(self):
Returns
hmkit.autoapi.properties.value.parking_ticketstate.ParkingTicketState
Discussion
Get the ticket state.
get_operator_name
Declaration
hmkit.autoapi.commands.parkingticket.get_operator_name(self):
Returns
str
Discussion
Get the operator name.
get_operator_ticketId
Declaration
hmkit.autoapi.commands.parkingticket.get_operator_ticketId(self):
Returns
str
Discussion
Get the ticket id.
get_ticket_startdate
Declaration
hmkit.autoapi.commands.parkingticket.get_ticket_startdate(self):
Returns
datetime
Discussion
Get ticket start date.
get_ticket_enddate
Declaration
hmkit.autoapi.commands.parkingticket.get_ticket_enddate(self):
Returns
datetime
Discussion
Get ticket end date.
→ StartParking
Declaration
hmkit.autoapi.commands.start_parking.StartParking(None, operator_name, operatorticket_id, start_time, end_time):
Parameters
operator_name | The operator name |
operatorticket_id | The ticket id |
start_time | The parking start date |
end_time | The parking end date ie. start_parking.StartParking(None |
Discussion
Start parking. This clears the last parking ticket information and starts a new one. The result is sent through the evented Parking Ticket command. The end time can be left unset depending on the operator.
→ EndParking
Declaration
hmkit.autoapi.commands.end_parking.EndParking(self):
Discussion
End parking. This updates the parking ticket information. The result is sent through the evented Parking Ticket command.