add cadence/power/hr to json
This commit is contained in:
parent
8bd67b2096
commit
e111a323f7
@ -61,9 +61,9 @@ toPoint entity =
|
||||
in Point
|
||||
pos
|
||||
(trkptTime tkp)
|
||||
Nothing
|
||||
Nothing
|
||||
Nothing
|
||||
(trkptCadence tkp)
|
||||
(trkptPower tkp)
|
||||
(trkptHeartRate tkp)
|
||||
|
||||
save p = do insert $ fromPoint p
|
||||
|
||||
|
@ -58,7 +58,10 @@ instance ToJSON Point where
|
||||
toJSON Point {..} =
|
||||
object
|
||||
[ "pos" .= pos,
|
||||
"time" .= time
|
||||
"time" .= time,
|
||||
"cadence" .= cadence,
|
||||
"power" .= power,
|
||||
"heartRate" .= heartRate
|
||||
]
|
||||
|
||||
-- TODO do we even need this type?
|
||||
|
Loading…
Reference in New Issue
Block a user