Skip to content

Commit

Permalink
Now it works
Browse files Browse the repository at this point in the history
  • Loading branch information
KomelT committed Dec 13, 2024
1 parent 52b73b3 commit 0666ee3
Show file tree
Hide file tree
Showing 5 changed files with 298 additions and 288 deletions.
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@
"editor.detectIndentation": false,
"editor.insertSpaces": false,
"editor.tabSize": 4,
"editor.defaultFormatter": "biomejs.biome"
"editor.defaultFormatter": "biomejs.biome",
"[prisma]": {
"editor.defaultFormatter": "Prisma.prisma"
}
}
79 changes: 43 additions & 36 deletions mqtt/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions mqtt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@
"@biomejs/biome": "1.9.2",
"@types/node": "^22.2.0",
"nodemon": "^3.1.4",
"prisma": "^5.18.0",
"prisma": "^6.0.1",
"tsx": "^4.17.0",
"typescript": "^5.5.4"
},
"dependencies": {
"@buf/meshtastic_protobufs.bufbuild_es": "^2.0.0-20241006120827-cc36fd21e859.2",
"@bufbuild/protobuf": "^2.0.0",
"@prisma/client": "^5.18.0",
"@prisma/client": "^6.0.1",
"mqtt": "^5.9.1"
}
}
2 changes: 1 addition & 1 deletion mqtt/src/messages/position.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export async function handlePosition(
latitude: position.latitudeI,
longitude: position.longitudeI,
altitude: position.altitude !== 0 ? position.altitude : null,
position_precision: position.precisionBits,
};

// update node position in db
Expand Down Expand Up @@ -110,7 +111,6 @@ export async function handlePosition(
longitude: position.longitudeI,
ground_speed: position.groundSpeed,
altitude: position.altitude,
position_precision: position.precisionBits,
},
});
}
Expand Down
Loading

0 comments on commit 0666ee3

Please sign in to comment.