Last updated
Was this helpful?
Was this helpful?
{
"76a77abf-d5ec-4b1c-b6e8-031359a6a640": {
"type": "appmixer.utils.timers.Timer",
"label": "Timer",
"x": 265,
"y": 115,
"config": {
"properties": {
"interval": 15
}
}
},
"a0828f32-34b8-4c8d-b6b3-1d82ca305921": {
"type": "appmixer.utils.weather.GetCurrentWeather",
"label": "GetCurrentWeather",
"source": {
"location": {
"76a77abf-d5ec-4b1c-b6e8-031359a6a640": [
"out"
]
}
},
"x": 515,
"y": 115,
"config": {
"transform": {
"location": {
"76a77abf-d5ec-4b1c-b6e8-031359a6a640": {
"out": {
"type": "json2new",
"lambda": {
"city": "Prague",
"units": "metric"
}
}
}
}
}
}
},
"11f02d1e-106e-4cf5-aae2-5514e531ea4d": {
"type": "appmixer.slack.list.SendChannelMessage",
"label": "SendChannelMessage",
"source": {
"message": {
"a0828f32-34b8-4c8d-b6b3-1d82ca305921": [
"weather"
]
}
},
"x": 735,
"y": 115,
"config": {
"properties": {
"channelId": "C3FNGP5K5"
},
"transform": {
"message": {
"a0828f32-34b8-4c8d-b6b3-1d82ca305921": {
"weather": {
"type": "json2new",
"lambda": {
"text": "City: {{{$.a0828f32-34b8-4c8d-b6b3-1d82ca305921.weather.[name]}}}\nHumidity: {{{$.a0828f32-34b8-4c8d-b6b3-1d82ca305921.weather.[main.humidity]}}}\nPressure: {{{$.a0828f32-34b8-4c8d-b6b3-1d82ca305921.weather.[main.pressure]}}}\nTemperature: {{{$.a0828f32-34b8-4c8d-b6b3-1d82ca305921.weather.[main.temp]}}}"
}
}
}
}
}
}
}
}