webhook integration #4
-
obviously the webhook integration description is misleading. should be corrected. Esp. the payload content and description |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 8 replies
-
I took a look into the docs. Sorry for the incomplete docs. To get the data into the right shape we rely on payload formatters. I didn't see it any notion of that @julizet |
Beta Was this translation helpful? Give feedback.
-
thats not really good because i have to change the original code.
it would be better to select the right label in stadtpuls.com
thx
g
Am Sa., 20. Nov. 2021 um 11:45 Uhr schrieb Fabian Morón Zirfas <
***@***.***>:
… This is an example formatter we use:
function decodeUplink(input) {
var temp = input.bytes[0] << 8 | input.bytes[1];
var dezi = input.bytes[2];
return {
data: {
bytes: input.bytes,
measurements: [temp, dezi]
},
warnings: [],
errors: []
};}
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARYT6MHIH6AL26Z4YJIWQPTUM5325ANCNFSM5IKTPPJQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
--
Beste Grüße,
gerhard
http://thethingsnetwork.org/c/berlin
|
Beta Was this translation helpful? Give feedback.
-
i tried and got this
[image: image.png]
Am Sa., 20. Nov. 2021 um 11:45 Uhr schrieb Fabian Morón Zirfas <
***@***.***>:
… This is an example formatter we use:
function decodeUplink(input) {
var temp = input.bytes[0] << 8 | input.bytes[1];
var dezi = input.bytes[2];
return {
data: {
bytes: input.bytes,
measurements: [temp, dezi]
},
warnings: [],
errors: []
};}
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARYT6MHIH6AL26Z4YJIWQPTUM5325ANCNFSM5IKTPPJQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
--
Beste Grüße,
gerhard
http://thethingsnetwork.org/c/berlin
|
Beta Was this translation helpful? Give feedback.
-
if you have time you will reach me today
0151.xxxxxxxxxxxx
danke
gerhard
EDIT: Redacted your phone number
|
Beta Was this translation helpful? Give feedback.
-
The error was some whitespace in the device id |
Beta Was this translation helpful? Give feedback.
The error was some whitespace in the device id