![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
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 phin for request (https://github.com/ethanent/phin)
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'
)
Details of apiJeedom
function:
apiJeedom(jeedomHost, apikey, reqParams = {}, jsonrpc = '2.0', uriJeedomApi = '/core/api/jeeApi.php')
jeedomHost
host of jeedom serverapikey
api key of jeedomreqParams
optionnals params to add to request (phin package options)jsonrpc
version of jsonrpcuriJeedomApi
base url of jeedom serverMake a request:
const requestJeedom = apiJeedomRunnable.run(
'scenario::changeState', {
id: 11,
state: 'run'
})
Details of apiJeedomRunnable.run
function:
apiJeedomRunnable.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()
{
"statusCode": 200,
"statusMessage":"OK",
"result": true,
"error": false
}
{
"statusCode": 200,
"statusMessage":"OK",
"result":{
"collectDate": "2018-09-30 14:49:03",
"value": 21.2
},
"error": false
}
{
"statusCode": 200,
"statusMessage": "OK",
"result": false,
"error": {
"code": 701,
"message": "Cmd introuvable : 63334"
}
}
https://github.com/clement-berard/jeedom-request-jsonrpc/releases
FAQs
Module node pour API JEEDOM JSON-RPC
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
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.