Comments (1)
Oh, messages require an additional field. From https://github.com/mtconnect/cppagent#adapter-agent-protocol-version-17 -
The next special format is the Message. There is one additional field, native_code, which needs to be included: 2014-09-29T23:59:33.460470Z|message|CHG_INSRT|Change Inserts
For now I just did like so - in future we can try the DATA_SET representation -
- key: dev_msg
category: EVENT
type: MESSAGE
value: "Object.entries(<status-faults>).map(([id, fault]) => fault.description).join(', ')"
nativeCode: NativeCode
Agent shows eg
<Message dataItemId="pa1-dev_msg" nativeCode="NativeCode" sequence="138" timestamp="2021-08-06T09:25:45.538Z">hard fault 1</Message>
For Agent debugging, the trace level includes the shdr inputs - https://github.com/mtconnect/cppagent#logger_config-configuration-items
logger_config {
logging_level = trace
}
agent | 583479 TRACE [3] input.connector: (Port:53511) Received line: '2021-08-06T09:25:04.370Z|pa2-feed_message|NativeCode|printer service required, take up motor timeout, low ribbon'
I used ag
to help debug it (like grep but colors matches) -
sh/start ccs-pa adapter broker play agent | ag message
from ladder99.
Related Issues (20)
- Handle `SIGINT` and other signals to shutdown all running apps gracefully HOT 2
- Add more SQL examples how to query database HOT 2
- Create a custom driver in example setup and demonstrate it HOT 1
- Monitor disk space usage and prune dataitems when low HOT 4
- Make `l99` command installation optional HOT 1
- Create GraphQL egress endpoint HOT 1
- Add an API to manage configuration, machines and machine monitoring
- docs - bring design/*.md into main docs HOT 6
- Relay service should be an adapter.
- Allow fanuc-driver to start up with l99 stack.
- Add support for Mazak CNCs without MTConnect
- Re-design `ladder99` HOT 1
- Timezone consistency problem in Postgres ladder 99 functions or raw to public schema HOT 4
- /home/fiab/ladder99/shell/l99: line 56: /home/fiab/shell/commands/using: No such file or directory HOT 3
- With docker already installed, following the instructions to create new user, that user needs to be manually added to docker group HOT 3
- l99 shell script bad substitution HOT 3
- pgAdmin cannot connect to db HOT 5
- RTD do not seem to update from main branch. HOT 1
- How to use Meter?
- Absolute paths in the example agent.cfg don't match with internal paths for image mtconnect/agent:2.2.0.16 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ladder99.