Add data attribute to Alarm object used in Notification messages
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript, typescript
- Domain
- api
Research direction
Start by locating the Alarm object definition in the specification and reading how notification objects and standard alarms are currently described. The proposal calls for adding a data attribute and defining minimum required attributes for the listed standard alarms, so the work is complete when those requirements are specified consistently; the issue does not name files or tests.
Written by the indexing model from the issue text.
Description
Current state:
Currently the alarm object used in notification messages lacks the ability to convey values (other than in the message text).
Consider the standard alarm MOB (man overboard), one would expect that the position at which the alarm was raised is included in the alarm object. instead the position can only be added as text in the message which is likely to vary from implementation to implementation and making it more difficult to parse.
{
"method": ["visual", "sound"],
"state": "emergency", // enum string value
"message": "Man Overboard! latitude: 60.2345, longitude: 14.1234" // position included in message text
}
Proposal:
- Add an attribute to the
Alarmobject used in notifications to hold data relevant to an alarm - Define minimum required attributes for the standard alarms.
STANDARD ALARMS:
- 'mob'
- 'fire'
- 'sinking'
- 'flooding'
- 'collision'
- 'grounding'
- 'listing'
- 'adrift'
- 'piracy'
- 'abandon'
Example: vessels.self.notifications.mob
{
"method": ["visual", "sound"],
"state": "emergency",
"message": "Man Overboard!",
"data": { // optional object to hold addiditonal alarm information
"position": {"latitude": 60.2345, "longitude": 14.1234}
}
}
- Dominant language
- JavaScript
- Stars
- 105
- Forks
- 72
- Avg merge
- 11h 49m
- Merged PRs (30d)
- 5
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from SignalK/specification
-
Difficulty 5/5 Over a week Newbie friendliness 45/100
SignalK/specification#700 ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
SignalK/specification#694 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 54/100
SignalK/specification#691 ·
-
RFC: depth transducer offsets: one sign convention, transducer position, server-derived depthsPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 5/5 Over a week Newbie friendliness 10/100
SignalK/specification#688 · 3 comments · 1 reaction ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
SignalK/specification#685 · 2 comments ·
All issues in SignalK/specification
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 83/100
TheOdinProject/curriculum#31596 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
mailcow/mailcow-dockerized#7725 ·
Maintainers usually reply within 1 day
-
bug need-fix
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
hoverkraft-tech/ci-github-common#694 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 94/100
solana-foundation/solana-com#2579 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 85/100
vercel-labs/agent-skills#385 ·