Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@bokub/linky
Advanced tools
Easily retrieve your Linky power consumption
$ npm i @bokub/linky
const linky = require('@bokub/linky');
// Log in
linky.login('my-email@example.com', 'password').then(session => {
// Retrieve your power consumption
session.getDailyData().then(data => {
console.log(data);
// [
// { date: '2018-09-28 00:00:00', value: 2.944 },
// { date: '2018-09-29 00:00:00', value: 2.704 },
// { date: '2018-09-30 00:00:00', value: 3.477 },
// { date: '2018-10-01 00:00:00', value: null },
// { date: '2018-10-02 00:00:00', value: 4.063 },
// { date: '2018-10-03 00:00:00', value: 3.209 },
// { date: '2018-10-04 00:00:00', value: 4.355 },
// ...
// ]
});
// Use a custom time period
session.getDailyData({ start: '24/08/2018', end: '06/09/2018' }).then(data => {
console.log(data);
});
});
login(email, password)
Log into you customer area and retrieve a session that you can use to retrieve your power consumption
session.getHourlyData([options])
Retrieve power consumption with a step of 30 minutes
Default time period: Yesterday
session.getDailyData([options])
Retrieve power consumption with a step of 1 day
You cannot retrieve more than 31 days at once
Default time period: Last 31 days
session.getMonthlyData([options])
Retrieve power consumption with a step of 1 month
You cannot retrieve more than 12 months at once
Default time period: Last 12 months
session.getYearlyData([options])
Retrieve all your power consumption with a step of 1 year
You cannot use a custom time period
FAQs
Easily retrieve your Linky power consumption
The npm package @bokub/linky receives a total of 1 weekly downloads. As such, @bokub/linky popularity was classified as not popular.
We found that @bokub/linky 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.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.