picoballoon
v1.0.2
Published
Picoballoon public API client
Downloads
1
Readme
Picoballoon
Picoballoon public API client
Use sample:
import { missions } from 'picoballoon';
()(async () => {
const allMissions = missions(); // Get all missions
allMissions.forEach(async mission => {
const measurements = await mission.measurements(); // Get mission measurements
});
});
You can also get a dictionary of the missions with their ID as the key like this:
import { missionsById } from 'picoballoon';
()(async () => {
const missions = await missionsById();
console.log(missions[20]); // Prints mission with the ID 20
});
Mission properties
| Name | Type | Description |
| ---------- | ------- | --- |
| id
| number | Incremental ID of the mission |
| name
| string | Name of the mission |
| status
| MissionStatus | Status of the mission. Can be Active, Failed, Prelaunch, Ended, Found or Unknown |
| balloonVersion
| string | Version of the balloon |
| firmwareVersion
| string | Version of the probe firmware |
| hardwareVersion
| string | Version of the probe hardware |
| launchTime
| Date | Timestamp of the launch |
| balloonMass
| number | Mass of the balloon |
| probeMass
| number | Mass of the probe |
Measurement properties
| Name | Type | Unit | Description |
| ---------- | ------ | -- | --- |
| latitude
| number | ° | Latitude of the probe |
| longitude
| number | ° | Longitude of the probe |
| altitude
| number | m | Altitude of the probe |
| velocity
| number | km/h | Scalar velocity of the probe |
| humidity
| number | % | Humidity around the probe |
| pressure
| number | hPa | Air pressure around the probe |
| solarPanelVoltage
| number | V | Voltage of the probe solar panel. Usually determines if the probe has enough energy to function properly. |
| temperature
| number | °C | Temperature around the probe |
| uvRadiation
| number | W/m^2 | UV radiation from the sun |
| drsf
| number | N/A | Product of datarate and spreading factor. It determines the how long the probe is transmitting. |
| frequency
| number | kHz | Frequency of the transmission |
| gateways
| Gateway[] | N/A | List of LoRaWAN gateways that received this measurement |
| timestamp
| Date | N/A | Timestamp of the measurement |
| timeToFix
| number | s | Time it took to fix GNSS data |
Gateway properties
| Name | Type | Description |
| ---------- | ------- | --- |
| id
| string | LoRaWAN ID of the gateway |
| latitude
| number | Latitude of the gateway |
| longitude
| number | Longitude of the gateway |
| rssi
| number | Signal strength |
| snr
| number | Signal to noise ratio |