
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
A library for reading EcoTracker energy consumption data from everHome's local HTTP endpoint
A Python library for reading energy consumption data from everHome's EcoTracker device via a local HTTP endpoint. This library is designed to work with EcoTracker devices that expose power and energy counter data via a JSON API.
pip install ecotracker
from ecotracker import EcoTracker
# Initialize the EcoTracker device with the IP address of your device
meter = EcoTracker("192.168.1.100")
# Update the meter data
if meter.update():
# Get the current power consumption
power = meter.get_power()
print(f"Current power consumption: {power} W")
# Get the energy counter for incoming energy
energy_in = meter.get_energy_counter_in()
print(f"Energy counter in: {energy_in} kWh")
# Get all available data
all_data = meter.get_all_data()
print(f"All data: {all_data}")
The EcoTracker
class provides the following methods:
update()
: Updates the electricity meter data from the HTTP endpointget_power()
: Gets the current power consumption in wattsget_power_phase1()
: Gets the current power consumption of phase 1 in wattsget_power_phase2()
: Gets the current power consumption of phase 2 in wattsget_power_phase3()
: Gets the current power consumption of phase 3 in wattsget_power_avg()
: Gets the average power consumption in wattsget_energy_counter_out()
: Gets the energy counter for outgoing energy in kWhget_energy_counter_in()
: Gets the energy counter for incoming energy in kWhget_energy_counter_in_t1()
: Gets the energy counter for incoming energy in tariff 1 in kWhget_energy_counter_in_t2()
: Gets the energy counter for incoming energy in tariff 2 in kWhget_all_data()
: Gets all electricity meter data as a dictionarypython -m unittest discover tests
MIT
FAQs
A library for reading EcoTracker energy consumption data from everHome's local HTTP endpoint
We found that ecotracker demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.