Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
A webthing connector for smart meters
This project provides a smart meter webthing API. It provides the software to connect an IR USB sensor
The smart meter webthing package provides an http webthing endpoint that supports smart meter consumption values over http. e.g.
# webthing has been started on host 192.168.0.23
curl http://192.168.0.23:7122/properties
{
"current_power": 389,
"produced_power_total": 3314.7,
"consumed_power_total": 259784.2
}
To install this software, you can use the PIP package manager as shown below
sudo pip install smartmeter_webthing
After installation, you can start the webthing http endpoint in your Python code or from the command line by typing
sudo smartmeter --command listen --port 7122 --sport /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0051-if00-port0
Here the webthing API will use the local port 7122. Additionally, the device address of the IR sensor must be set. To configure the device address, see setup device.
As an alternative to the list command, you can also use the register command to register and start the webthing service as a systemd device. This way, the webthing service is started automatically at boot time. Starting the server manually with the listen command, as shown above, is no longer necessary.
sudo smartmeter --command register --port 7122 --sport /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0051-if00-port0
FAQs
Smartmeter WebThing
We found that smartmeter-webthing demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.