X-Git-Url: http://average.org/gitweb/?a=blobdiff_plain;f=loctrkd%2Fzx303proto.py;h=aff3405691baa596ca36ca90e00f7067880cef3f;hb=ca67cd29fc86054f08bcbf4995d484bab77a4e60;hp=63dc3f5f294149c48d6ea8e910e283c3f174cdb3;hpb=456fcc5a8964c84385d34a6687e83ae05ab2ddc3;p=loctrkd.git diff --git a/loctrkd/zx303proto.py b/loctrkd/zx303proto.py index 63dc3f5..aff3405 100755 --- a/loctrkd/zx303proto.py +++ b/loctrkd/zx303proto.py @@ -372,9 +372,9 @@ class _GPS_POSITIONING(GPS303Pkt): def rectified(self) -> CoordReport: # JSON-able dict return CoordReport( devtime=str(self.devtime), - battery_percentage=-1, - accuracy=-1.0, - altitude=-1.0, + battery_percentage=None, + accuracy=None, + altitude=None, speed=self.speed, direction=self.heading, latitude=self.latitude, @@ -503,7 +503,7 @@ class _WIFI_POSITIONING(GPS303Pkt): def rectified(self) -> HintReport: return HintReport( devtime=str(self.devtime), - battery_percentage=-1, + battery_percentage=None, mcc=self.mcc, mnc=self.mnc, gsm_cells=self.gsm_cells,