i’ve four sensors running in TTSv3 and Storage-Integration activated.
When i request the uplink_message for my app there is so much unnecessary data.
I just want to get the “decoded_payload” out of “uplink_message”.
Is there a way i’am missing so far?
You really should take the rest of the information too.
Otherwise you have no real way of knowing things like how old the packet is.
In particular, you should not be inserting timestamps or sequence numbers inside of packet bodies - because that information is already available in metadata, inserting it in the packet itself would be wasteful duplication
Hard disk is cheap, getting data you realise would have been useful after the fact is hard - I’d save the whole message, perhaps compacted or compressed just in case in a few weeks time you realise that something you didn’t think was useful, is.
If you really know that you’ll only ever need a specific set of fields, you can tell the server to only send you those fields.
Note: This is new functionality in The Things Stack v3.11.
With the CLI that would look like this:
$ ttn-lw-cli applications storage get your-application-id \
--type uplink_message \ # only select uplink messages
--after-utc "2021-02-05 00:00:00" \
--before-utc "2021-02-05 08:00:00" \
--end-device-ids \ # you probably want device IDs
--received-at \ # you want to know when it was received
--up.uplink-message.f-port \ # you want the FPort
--up.uplink-message.frm-payload \ # maybe the raw payload
--up.uplink-message.decoded-payload # and otherwise the decoded payload
You can run ttn-lw-cli applications storage get --help to see the full list of command-line flags you can use to filter data from the storage integration.
I tried use http request from node red but without success.
Using query from web browser as test everything is working perfect.
Can you suggest how I should setup right http request flow in node red to get storage data form Stack v3?
Probably issue refer to authorization header and I tried build flow node red but without success.
I also used MQTT for “live” data but my aplication needs data logger.
Idea was not to use DB on node-red side that must be running all time but integrate with Stack v3 storage and get part of data defined via query in http request.