scrapCount
ScrapCount messages are sent whenever a product is to be marked as scrap.
less than a minute
Topic
MQTT: ia/<customerID>/<location>/<AssetID>/scrapCount
For Kafka just switch the / character with a .
Usage
Here a message is sent every time products should be marked as scrap. It works as follows: A message with scrap and timestamp_ms is sent. It starts with the count that is directly before timestamp_ms. It is now iterated step by step back in time and step by step the existing counts are set to scrap until a total of scrap products have been scraped.
Content
timestamp_msis the unix timestamp, you want to go back fromscrapnumber of item to be considered as scrap.
- You can specify maximum of 24h to be scrapped to avoid accidents
- (NOT IMPLEMENTED YET) If counts does not equal scrap, e.g. the count is 5 but only 2 more need to be scrapped, it will scrap exactly 2. Currently, it would ignore these 2. see also #125
- (NOT IMPLEMENTED YET) If no counts are available for this asset, but uniqueProducts are available, they can also be marked as scrap. //TODO
JSON
Examples
Ten items where scrapped:
{
"timestamp_ms":1589788888888,
"scrap":10
}
Producers
- Typically Node-RED
Consumers
Last modified February 17, 2023: update (#208) (ea731fc)