How to retrieve code from a Muse controller
Table of Contents
Question:
Answer:
NodeRed
If the provider column shows nodered you will need to use Muse Automator to retrieve those flows.
Python, Javascript & Groovy
If the provider column shows one of the high code solutions(Python, Javascript, Groovy), then you will need to use VS Code with the Muse Extension to retrieve your code.
Question:
How do you download code from a Muse controller?
Answer:
The first step is to determine what type of code you need to retrieve, either a Muse Automator project or one of the high code solution(Python, Javascript, Groovy). To do this
- Log into the web GUI of the Muse controller
- Navigate to the System dropdown menu
- Select Programs
Once on the Programs page the provider column will tell you what type of program is running. It could be more than one type so you may need to follow the next steps multiple times in that case.
NodeRed
If the provider column shows nodered you will need to use Muse Automator to retrieve those flows.
- In Muse Automator create a new project
- Add and configure a Controller node using the IP of your Muse controller and hit connect in that controller node
- Click the Deploy button at the top right
- Click the arrow beside the Push/Pull menu dropdown
- If nothing shows up in the Remote section of the Push/Pull dropdown then press the Push/Push button to force it to populate
- You should now have a list of Muse Automator projects that are running on your controller in the Remote section of the Push/Pull dropdown menu
- Mouse over the project that you would like to retrieve and select the Pull option (arrow pointing down), this will download the project from the Muse controller to your PC (Note: If you already have a local project of the same name it will overwrite that project.)
- You will likely get a message to review the project before allowing changes to be merged
- Select Review and allow the merge if there are no errors
Python, Javascript & Groovy
If the provider column shows one of the high code solutions(Python, Javascript, Groovy), then you will need to use VS Code with the Muse Extension to retrieve your code.
- Open VS Code and find your Muse controller in the list of available controllers
- If your Muse controller is not in the list already, you can add it by selecting the Add Mojo Controller option and following the prompts
- Once the Muse controller is in your list connect to it by pressing the Login to Mojo Controller option next to the controller name and following the prompts to log in
- Once connected, open the Programs dropdown menu under your controller's name, this will list all of the programs running on that controller
- Click the Download icon (down arrow) next to the program that you wish to retrieve from the controller
- Navigate to the folder in which you would like to save the program to and press Select, this will retrieve the program and load it into VS Code
Table of Contents
Question:
Answer:
NodeRed
If the provider column shows nodered you will need to use Muse Automator to retrieve those flows.
Python, Javascript & Groovy
If the provider column shows one of the high code solutions(Python, Javascript, Groovy), then you will need to use VS Code with the Muse Extension to retrieve your code.