
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
ACGAM T02P Treadmill BLE communication library for Node.js.
It can be easily used for instance on Raspberry Pi 4 with Raspbian OS to grab live stats from your treadmill.
npm i acgam-t02p
import { BluetoothDeviceAddress, TreadmillConnection, TreadmillStatus } from 'acgam-t02p';
const DEVICE_ADDRESS = 'FF:FF:FF:FF:FF:FF'; // TODO: Change with your real device address
(async () => {
const connection = await TreadmillConnection.forAddress(
BluetoothDeviceAddress.fromString(DEVICE_ADDRESS)
);
connection.addStatusNotificationEventListener(handleNotification);
})();
function handleNotification(status: TreadmillStatus) {
console.log(status);
}
This is main class that enables you to maintain a connection and communication with treadmill device.
Helper value object that stores valid bluetooth device address.
It's data structure that will come into your treadmill status notification listener:
type TreadmillStatus
= { status: 'STANDBY' }
| { status: 'STOPPED' }
| { status: 'WAKING_UP' }
| { status: 'PRESTART' }
| { status: 'STARTING'; countdown: number }
| {
status: 'RUNNING' | 'STOPPING';
elapsedSeconds: number;
distanceInMeters: number;
speed: {
currentKmh: number;
targetKmh: number;
};
};
Example status data with its interpretation:
JSON | Interpretation |
---|---|
{ "status": "STOPPED" } | Treadmill is stopped |
{ "status": "STARTING", "countdown": 5 } | Treadmill is going to start and it's 5 seconds until start. |
{ "status": "RUNNING", "elapsedSeconds": 330, "distanceInMeters": 1500, "speed": { "currentKmh": 11.5, "targetKmh": 8 } } | Treadmill is running. Elapsed time: 5 minutes 30 seconds. Distance: 1.5km. Current speed 11.5 km/h and it's slowly descending to target 8 km/h. |
FAQs
ACGAM T02P Treadmill BLE communication library
The npm package acgam-t02p receives a total of 3 weekly downloads. As such, acgam-t02p popularity was classified as not popular.
We found that acgam-t02p demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.