User Tools

Site Tools


venus-os:large

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
venus-os:large [2024-06-03 11:38] – [5.4 Controlling relays] dfabervenus-os:large [2024-07-14 16:53] – [8.1 Disk space issues / data partition full] mvader
Line 120: Line 120:
 ===== 5. Node-RED ===== ===== 5. Node-RED =====
  
-{{ :venus-os:node-red-contrib-victron-nodes.png?nolink |}}+{{:venus-os:node-palette.png?direct&nolink |}}
 ==== 5.1 Introduction ==== ==== 5.1 Introduction ====
  
Line 349: Line 349:
  
 And restart Node-RED. And restart Node-RED.
 +
 +=== Q11: Is there a way to have the context survive reboots? ===
 +
 +By default the context is stored in memory of the GX device only. If the GX device gets rebooted, the
 +content of the memory gets reset and you loose the context information.
 +
 +In order to keep the context data, it is needed to [[https://nodered.org/docs/api/context/store/localfilesystem|store the context to disk]]. This can be achieved by creating (or adding to) a user configuration file ''/data/home/nodered/.node-red/settings-user.js'', containing:
 +
 +  module.exports = {
 +    contextStorage: {
 +      default: {
 +        module: "localfilesystem",
 +        config: {
 +          flushInterval: 300 // Save context data every 5 minutes
 +        }
 +      }
 +    }
 +  }
 +  
 +With the above settings, context files will get created periodically in ''/data/home/nodered/.nodered/context/''. In order not to wear out the flash too much, don't write too often. 
 ===== 6. Signal K ===== ===== 6. Signal K =====
  
Line 599: Line 619:
  
   - Do full GX factory reset, as per the instructions in the GX user manuals. This includes downloading a file called venus-data.tgz; see GX manual for details. Disadvantage is that you'll need to reconfigure the GX.   - Do full GX factory reset, as per the instructions in the GX user manuals. This includes downloading a file called venus-data.tgz; see GX manual for details. Disadvantage is that you'll need to reconfigure the GX.
-  - Remove all Signal K Server log files. In case you're using SignalK, then we recommend to try that option first. See next chapter on how to do that (requires a USB stick or SD Card), and once done make sure to double check you're Signal K log setup; Most importantly, enable the ''Keep only most recent data log files'' option. +  - Remove all Signal K Server log files. In case you're using SignalK, then we recommend to try that option first. See next chapter on how to do that (requires a USB stick or SD Card), and once done make sure to double check you're Signal K log setup; Most importantly, make sure that the ''Keep only most recent data log files'' option is enabled. That feature is enabled by default, and can be found in the Signal K -> Server -> Settings section
-  - A more detailed approach is logging in on SSH, and checking for disk space:+  - A more detailed approach is logging into the SSH console, and checking for disk space:
  
 **Tips and tricks to login a diagnose disk space** **Tips and tricks to login a diagnose disk space**
Line 656: Line 676:
  
   * [[https://www.victronenergy.com/upload/software/venus-factory-default/venus-data-00-backup-data-partition.tgz|venus-data-00-backup-data-partition.tgz]] - copies all that is on the ''/data'' partition onto the usb stick   * [[https://www.victronenergy.com/upload/software/venus-factory-default/venus-data-00-backup-data-partition.tgz|venus-data-00-backup-data-partition.tgz]] - copies all that is on the ''/data'' partition onto the usb stick
-  * [[https://www.victronenergy.com/upload/software/venus-factory-default/venus-data-20-signalk-reset.tgz|venus-data-20-signalk-reset.tgz]] - wipes everything from ''/data/conf/signalk/''+  * [[https://www.victronenergy.com/upload/software/venus-factory-default/venus-data-20-signalk-reset.tgz|venus-data-20-signalk-reset.tgz]] - removes all files and directories from ''/data/conf/signalk/'', which lets you start over again with SignalK.
   * [[https://www.victronenergy.com/upload/software/venus-factory-default/venus-data-30-signalk-delete-data-logs.tgz|venus-data-30-signalk-delete-data-logs.tgz]] - removes all SignalK loging   * [[https://www.victronenergy.com/upload/software/venus-factory-default/venus-data-30-signalk-delete-data-logs.tgz|venus-data-30-signalk-delete-data-logs.tgz]] - removes all SignalK loging
-  * [[https://www.victronenergy.com/upload/software/venus-factory-default/venus-data-20-node-red-reset.tgz|venus-data-20-node-red-reset.tgz]] - wipes all in ''/data/home/nodered/''+  * [[https://www.victronenergy.com/upload/software/venus-factory-default/venus-data-20-node-red-reset.tgz|venus-data-20-node-red-reset.tgz]] - removes the files from ''/data/home/nodered/'', which lets you start with Node-RED from scratch.
  
 See [[https://www.victronenergy.com/live/ccgx:root_access#hooks_to_install_run_own_code_at_boot|here]] for more information on how this process works. See [[https://www.victronenergy.com/live/ccgx:root_access#hooks_to_install_run_own_code_at_boot|here]] for more information on how this process works.
venus-os/large.txt · Last modified: 2024-08-04 16:01 by mvader

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki