update NodeRed folder
This commit is contained in:
parent
e793115ea7
commit
fadea0a483
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
1287
NodeRed/dvcc.py
1287
NodeRed/dvcc.py
File diff suppressed because it is too large
Load Diff
5660
NodeRed/flows.json
5660
NodeRed/flows.json
File diff suppressed because one or more lines are too long
|
@ -1,26 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
mount -o remount,rw /
|
||||
|
||||
# Source directory
|
||||
source_dir="/data/dbus-fzsonick-48tl"
|
||||
|
||||
# Destination directory
|
||||
destination_dir_upper="/opt/victronenergy/"
|
||||
destination_dir="/opt/victronenergy/dbus-fzsonick-48tl/"
|
||||
|
||||
# Check if the destination directory exists
|
||||
if [ -d "$destination_dir" ]; then
|
||||
# Remove the destination directory
|
||||
rm -r "$destination_dir"
|
||||
fi
|
||||
|
||||
# Copy the contents of the source directory to the destination directory
|
||||
cp -r "$source_dir" "$destination_dir_upper"
|
||||
|
||||
# Set MPPT network mode to 0
|
||||
# sed -i "s|('/Link/NetworkMode', [^)]*)|('/Link/NetworkMode', 0)|g" /opt/victronenergy/dbus-systemcalc-py/delegates/dvcc.py
|
||||
#sed -i "s|self._get_path('/Settings/BmsPresent') == 1|0|g" /opt/victronenergy/dbus-systemcalc-py/delegates/dvcc.py
|
||||
sed -i "s/self._set_path('\/Link\/NetworkMode', v)/self._set_path('\/Link\/NetworkMode', 0)\n self._set_path('\/Settings\/BmsPresent',0)/" /opt/victronenergy/dbus-systemcalc-py/delegates/dvcc.py
|
||||
|
||||
exit 0
|
|
@ -1,31 +0,0 @@
|
|||
module.exports = {
|
||||
uiHost:"",
|
||||
/* To password protect the Node-RED editor and admin API, the following
|
||||
property can be used. See https://nodered.org/docs/security.html for details.
|
||||
*/
|
||||
adminAuth: {
|
||||
sessionExpiryTime: 86400,
|
||||
type: "credentials",
|
||||
users: [{
|
||||
username: "admin",
|
||||
password: "$2b$08$d7A0gwkDh4KtultiCAVH6eQ.tQUwVApq.tDVOOYQ51EpLIMbYy2GW",//salidomo
|
||||
permissions: "*"
|
||||
}]
|
||||
},
|
||||
|
||||
/* Context Storage
|
||||
The following property can be used to enable context storage. The configuration
|
||||
provided here will enable file-based context that flushes to disk every 30 seconds.
|
||||
Refer to the documentation for further options: https://nodered.org/docs/api/context/
|
||||
*/
|
||||
//contextStorage: {
|
||||
// default: {
|
||||
// module:"localfilesystem"
|
||||
// },
|
||||
//},
|
||||
contextStorage: {
|
||||
default: "memoryOnly",
|
||||
memoryOnly: { module: 'memory' },
|
||||
file: { module: 'localfilesystem' }
|
||||
},
|
||||
}
|
Loading…
Reference in New Issue