mirror of
https://github.com/craigerl/aprsd.git
synced 2025-06-14 12:22:25 -04:00
Fixed some pep8 failures
This commit is contained in:
parent
3c058f3e7b
commit
63bcd4139b
@ -394,7 +394,7 @@ class BeaconPacket(GPSPacket):
|
|||||||
if self.raw_timestamp:
|
if self.raw_timestamp:
|
||||||
return f"{self.from_call}:{self.raw_timestamp}"
|
return f"{self.from_call}:{self.raw_timestamp}"
|
||||||
else:
|
else:
|
||||||
return f"{self.from_call}:{self.human_info.replace(' ','')}"
|
return f"{self.from_call}:{self.human_info.replace(' ', '')}"
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def human_info(self) -> str:
|
def human_info(self) -> str:
|
||||||
@ -450,7 +450,7 @@ class TelemetryPacket(GPSPacket):
|
|||||||
if self.raw_timestamp:
|
if self.raw_timestamp:
|
||||||
return f"{self.from_call}:{self.raw_timestamp}"
|
return f"{self.from_call}:{self.raw_timestamp}"
|
||||||
else:
|
else:
|
||||||
return f"{self.from_call}:{self.human_info.replace(' ','')}"
|
return f"{self.from_call}:{self.human_info.replace(' ', '')}"
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def human_info(self) -> str:
|
def human_info(self) -> str:
|
||||||
@ -629,11 +629,11 @@ class WeatherPacket(GPSPacket, DataClassJsonMixin):
|
|||||||
# Temperature in degrees F
|
# Temperature in degrees F
|
||||||
f"t{self.temperature:03.0f}",
|
f"t{self.temperature:03.0f}",
|
||||||
# Rainfall (in hundredths of an inch) in the last hour
|
# Rainfall (in hundredths of an inch) in the last hour
|
||||||
f"r{self.rain_1h*100:03.0f}",
|
f"r{self.rain_1h * 100:03.0f}",
|
||||||
# Rainfall (in hundredths of an inch) in last 24 hours
|
# Rainfall (in hundredths of an inch) in last 24 hours
|
||||||
f"p{self.rain_24h*100:03.0f}",
|
f"p{self.rain_24h * 100:03.0f}",
|
||||||
# Rainfall (in hundredths of an inch) since midnigt
|
# Rainfall (in hundredths of an inch) since midnigt
|
||||||
f"P{self.rain_since_midnight*100:03.0f}",
|
f"P{self.rain_since_midnight * 100:03.0f}",
|
||||||
# Humidity
|
# Humidity
|
||||||
f"h{self.humidity:02d}",
|
f"h{self.humidity:02d}",
|
||||||
# Barometric pressure (in tenths of millibars/tenths of hPascal)
|
# Barometric pressure (in tenths of millibars/tenths of hPascal)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user