# How to migrate node-red from Rpi to to Cloud

**URL:** <https://discourse.nodered.org/t/how-to-migrate-node-red-from-rpi-to-to-cloud/5205>\
**Category:** General\
**Created:** [26 November 2018 10:56 UTC](https://discourse.nodered.org/t/how-to-migrate-node-red-from-rpi-to-to-cloud/5205 "2018-11-26T10:56:31Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![aargollo](https://avatars.discourse-cdn.com/v4/letter/a/58f4c7/32.png) [@aargollo](https://discourse.nodered.org/u/aargollo)\
**Post date:** [26 November 2018 10:56 UTC](https://discourse.nodered.org/t/how-to-migrate-node-red-from-rpi-to-to-cloud/5205/1 "2018-11-26T10:56:31Z")

</div>

Hi Guys,

I already have my application running over node-red under Rpi3. I would like to implement it on node-red IBM Cloud, I have an account in bluemix. I tried to use node-red editor on IBM cloud an I got some problems to install some modules an also to copy my local nodes from rpi to node-red editor on IBM cloud. I believe that have a easy way to do it.

Please, somebody can share w/ me a tutorial that explain better how to do it?

Best Regards,  
Alex

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [26 November 2018 11:04 UTC](https://discourse.nodered.org/t/how-to-migrate-node-red-from-rpi-to-to-cloud/5205/2 "2018-11-26T11:04:06Z")

</div>

There are lots of tutorials findable on google such as

> **[Installing Node Red Libraries into BlueMix](https://edneubecker.wordpress.com/2016/06/28/installing-node-red-libraries-into-bluemix/)**
>
> Have you started using Node-Red on BlueMix yet? If so, it will not take you long to also find the vast libraries of Node-Red libraries available from  For this example I am going to install the mos…

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [26 November 2018 16:17 UTC](https://discourse.nodered.org/t/how-to-migrate-node-red-from-rpi-to-to-cloud/5205/3 "2018-11-26T16:17:25Z")

</div>

It may also depend which nodes you are trying to use... some nodes will not run (sensibly) in the cloud... like serial ports - or bluetooth - etc... as they talk to local hardware on your Pi, which obviously won't exist in the cloud... Other than that Ctrl-A to select all your nodes then select export all nodes - and copy them to the clip board and then import to the workspace on the cloud side would get you started... -

In general it is better to add any special nodes you need to the package.json on the cloud side - but that is part of the continuous development workflow which is part of Bluemix standard practise, but cut/paste should get you started to see if it can be made to run at all.

---

<div class="post-metadata">

**Author:** ![aargollo](https://avatars.discourse-cdn.com/v4/letter/a/58f4c7/32.png) [@aargollo](https://discourse.nodered.org/u/aargollo)\
**Post date:** [26 November 2018 22:10 UTC](https://discourse.nodered.org/t/how-to-migrate-node-red-from-rpi-to-to-cloud/5205/4 "2018-11-26T22:10:09Z")

</div>

Mrs ukmoose and Dceejay thanks a lot for your help!!!  
Sorry I have not explained better how about is my idea!

I have a local machine Rpi3 that run modules that is not compatible for Node-Red on Bluemix as you told me, but i need to make a control externally my LAN.  
I have Dashboard node, as the button, that i need to make external control, however this module, in the flow, have relationship and need to send messages to an incompatible module. As you can see below:

**My Flow:**  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/b/b8a924140755cdc6702153598dcec5bbf551ce9d.png)

**My Dashboard Menu - That I need to make a control without home with node-red Bluemix:**  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/2/205598657d60a291e425d789d1922db37d55401a.png)

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [26 November 2018 22:17 UTC](https://discourse.nodered.org/t/how-to-migrate-node-red-from-rpi-to-to-cloud/5205/5 "2018-11-26T22:17:44Z")

</div>

Before you expose anything to the internet (so you can control it from outside your LAN) you need to be fully aware of the security implications of this. A good place to start would be @TotallyInformation 's web page here - [https://it.knightnet.org.uk/kb/nr-qa/node-red-internet/](https://it.knightnet.org.uk/kb/nr-qa/node-red-internet/)

---

<div class="post-metadata">

**Author:** ![aargollo](https://avatars.discourse-cdn.com/v4/letter/a/58f4c7/32.png) [@aargollo](https://discourse.nodered.org/u/aargollo)\
**Post date:** [26 November 2018 23:03 UTC](https://discourse.nodered.org/t/how-to-migrate-node-red-from-rpi-to-to-cloud/5205/6 "2018-11-26T23:03:27Z")

</div>

Dceejay, thanks for share material w/ me.  
I understood that to connecting on internet i need to keep NAT/PAT on my router and together configure the Dynamic DNS services. But I thought IBM Cloud can give a security tools to connect my local device (Rpi3) and can provide:

Multi tenancy application (multiples device below a specific folder, like a tree)  
To stor a data sent by Rpi3  
To stor a configuration (backup)  
etc.

I would like to create an IoT service structure togther IBM BlueMix.  
I can do it?

---

<div class="post-metadata">

**Author:** ![krambriw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/krambriw/32/5429_2.png) [@krambriw](https://discourse.nodered.org/u/krambriw)\
**Post date:** [27 November 2018 06:19 UTC](https://discourse.nodered.org/t/how-to-migrate-node-red-from-rpi-to-to-cloud/5205/7 "2018-11-27T06:19:27Z")

</div>

> [@aargollo](#):
>
> Mrs ukmoose and Dceejay

Please note, should be Mr !!!!!!

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [27 November 2018 08:33 UTC](https://discourse.nodered.org/t/how-to-migrate-node-red-from-rpi-to-to-cloud/5205/8 "2018-11-27T08:33:13Z")

</div>

You can build that sort of thing using the IBM IoT platform on Bluemix - but you need to use the platform to manage devices, and Watson IOT nodes to communicate with it securely. It can use Node-RED but it is not 100% the same.

@krambriw - No worries - I think @aargollo was aiming at a plural for Mr 🙂

---

<div class="post-metadata">

**Author:** ![aargollo](https://avatars.discourse-cdn.com/v4/letter/a/58f4c7/32.png) [@aargollo](https://discourse.nodered.org/u/aargollo)\
**Post date:** [27 November 2018 09:33 UTC](https://discourse.nodered.org/t/how-to-migrate-node-red-from-rpi-to-to-cloud/5205/9 "2018-11-27T09:33:12Z")

</div>

Thanks a lot @dceejay for your assistance. Would you have a tutorial or web course to share with me?  
I need to improve my knowledge about IBM IoT plataform.

But initially with node-red, using the dashaboard node, I can make a control of my device gateway? I have doubts because i builded my flows, in local node-red device, using a serialport together dashboard button. Maybe i need to build a new flow in BlueMix that need to make the push in local hardware, directly in my local dashboard node, and than i can make a total control of the devices conneted in the gateway.

I need to use an specific node to to it? Can you advise me how to do it?  
I dindt undertanding well how to the Node-Red Bluemix will establish a comunication with my local Rpi3 (node-red)!

Best Regards,  
Alex

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [27 November 2018 09:59 UTC](https://discourse.nodered.org/t/how-to-migrate-node-red-from-rpi-to-to-cloud/5205/10 "2018-11-27T09:59:32Z")

</div>

Well there is the Coursera course here - [https://www.coursera.org/learn/developer-iot](https://www.coursera.org/learn/developer-iot)

If you "just" want to control one or two devices then the technique using Telegram (as per @TotallyInformation site linked above) is probably the safest way to experiment.
