
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
jeedom-request-jsonrpc
Advanced tools
Jeedom API - JSON RPC 2.0 for NodeJs
Node module to calls Jeedom's RPC API : https://jeedom.github.io/core/fr_FR/jsonrpc_api
This module uses axios (https://github.com/axios/axios)
npm i jeedom-request-jsonrpc --save
yarn add jeedom-request-jsonrpc
Import package:
const { apiJeedom } = require('jeedom-request-jsonrpc')
Instanciate:
const apiJeedomRunnable = new apiJeedom(
'jeedom-hostname-or-ip',
'my-api-key'
)
Make a request:
const requestJeedom = apiJeedomRunnable.run(
'scenario::changeState', {
id: 11,
state: 'run'
})
Details of run
function:
run(cmd, params)
cmd
command of APIparams
params belongs to commandExample 1 : (Promise flow
)
requestJeedom
.then(response => {
console.log('Response : ', response.result)
})
.catch(error => {
console.log('An error : ', error)
})
Example 2 : (async - await
)
const functionToRequestJeedom = async () => {
try {
let jeedomResponse = await requestJeedom
console.log("Response", jeedomResponse)
} catch (e) {
cb(e)
}
}
functionToRequestJeedom()
Two examples of request result:
// without a value returned
{
"status": 200,
"statusText":"OK",
"result": true
}
// with a value returned
{
"status": 200,
"statusText":"OK",
"result":{
"collectDate": "2018-09-30 14:49:03",
"value": 21.2
}
}
FAQs
Module node pour API JEEDOM JSON-RPC
The npm package jeedom-request-jsonrpc receives a total of 1 weekly downloads. As such, jeedom-request-jsonrpc popularity was classified as not popular.
We found that jeedom-request-jsonrpc 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.