Refer to tiguitto / TrackNTrace Landing Page for usage of Telegraf
to parse EPCIS and IOT Information into InfluxDB
This script parses the incoming data from IoT Sensor Nodes using EPCIS-IoT-Arduino and adds the additional Meta-data as Tags for InfluxDB.
-
This script can be run on any hardware that supports EPCIS Information handling from RFID gates as well as an MQTT Broker.
-
Currently the script is used on Nordic ID AR82 RFID Reader
-
Login into the Nordic ID AR82 reader via it's IP address or mDNS address e.g.
arMACADDRESS.local
-
On the Nordic ID AR82 create a new application (admin rights required) by clicking the Applications Icon
-
Create a Blank Application and name it
epcisiotparser
This should create a password which will be used later
-
Log into the reader via
ssh
and the application credentials:ssh -l epcisiotparser <IP_Address_of_AR82_Reader>
Password should be one generated via the App.
-
Copy the contents of the
epcisiotparser/bin
folder to the present working directory on the reader.$ pwd # on reader /mnt/userdata/apps/epcisiot/bin
Copy the
epcisiotreader/bin
to the reader usingscp
:$ # on your pc $ scp epcisiotparser/bin/* epcisiotparser@<AR82_IP_Address>:/mnt/userdata/apps/epcisiotparser/bin
Copy the
epcisiotreader/properties
to respective directory on reader:$ scp epcisiotreader/properties/* epcisiotparser@<AR82_IP_Address>:/mnt/userdata/apps/epcisiotparser/properties
-
Install the Dependencies using:
pip install --user -r requirements.txt
If installation fails, install them manually using:
pip install --user toml \ pymongo \ influxdb \ paho-mqtt
-
Change the
config.toml
file with information about Document-Driven Database, Sensor Database (InfluxDB) and MQTT Broker -
Check the MQTT Broker settings on the Reader by clicking on Services in the Web App.
-
Change/Check the WLAN Access Point Settings in Networking Tab:
-
Start the Application from the Application List and Observe the Logs in System Logging Tab. Use the dropdown menu to find the logs of the app under
apps/epcisiotparser/epcisiotparser.log
Copyright 2019 BIBA-Bremer Institut für Produktion und Logistik GmbH, IoTFabLab
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.