Git Product home page Git Product logo

nr_extract_flows's Introduction

NR_extract_flows

This a simple node-red flow that extracts the info for each tab and creates a json file for it. It does the same thing you can do manually using the export menu but extracts for all the flows. You will have to enter the full path to your flows.json file and the full path to the directory where you want to save the files. The file names are the names of the tabs with any spaces replaced with an _ e.g. Flow_1 The JSON file created is an array of objects, the first being the tab and subsequent being the nodes on the tabs.

Usage

  1. import Generate_Flow_Files.json into node-red
  2. change the path in the read file node to point to your flows.json
  3. change the path inthe function to point to the directory where the results are stored
  4. Deploy
  5. Click on the inject node to generate the files:
  6. If you want to back up files after every deploy change the inject node to fix x seconds after startup instead of triggering manually. git is smart enough to realize the files are unchanged even if you overwrite so only flows that actually change will need to be committed. WARNING: Each time you run this it will overwrite any earlier generated files.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.