termux-sensor / s9 (starlte): "TMD4906 lux Sensor" output is truncated if '-a' is being used
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 4.3k
- Forks
- 920
- PR merge metrics
- No merged PRs in 30d
Description
Problem description
Lux sensor output seems correct if selected individually:
@starlte:~/ termux-sensor -s "TMD4906 lux Sensor"
{
"TMD4906 lux Sensor": {
"values": [
33
]
}
}
However, lux output seems to be truncated if '-a' is being used (last digit is missing):
@starlte:~/ termux-sensor -a | grep -A5 -i lux
...
"TMD4906 lux Sensor": {
"values": [
3
]
},
...
Steps to reproduce
See problem description.
Expected behavior
Output should be the same, no matter whether 'termux-sensor -a' or 'termux-sensor -s ' is being used.
Additional information
- Termux application version: 0.117
- Android OS version: crDroid 7.8 / Android 11
- Device model: starlte / s9 / samsung SM-G960F
Contributor guide
No contributing guide indexed for this repository
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.
Research direction
Start at the termux-sensor command entry point and reproduce the issue with termux-sensor -s "TMD4906 lux Sensor" and termux-sensor -a on the reported setup. Compare the JSON values for the TMD4906 lux Sensor; done means the -a output preserves the same value as the individually selected sensor.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- cli, mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100