Skip to content

Get some insight into the daily life of my LTE-M connected Monstera plant.

Notifications You must be signed in to change notification settings

Pwntus/connected-plant

Repository files navigation

Connected Plant

LTE-M connected Monstera plant.

⭐ Credits to @robingranqvist for the plant graphics.

Preview

MIC Uplink Transform

var resources = payload.toString('utf8').split(',')
var output

try {
  output = {
    plant: {
      type: 'measurements',
      soil_moisture: parseInt(resources[0]),
      soil_temperature: parseFloat(resources[1]),
      air_temperature: parseFloat(resources[2]),
      air_humidity: parseFloat(resources[3]),
      air_heat_index: parseFloat(resources[4])
    }
  }
} catch (e) {
  output = { uplink_transform_error: e.message }
}

return output

About

Get some insight into the daily life of my LTE-M connected Monstera plant.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published