PLCnext on LinkedInPLCnext on Instagram  PLCnext on YouTube Github PLCnext CommunityStore PLCnext Community

  1. arielito
  2. PLCnext Technology & PLCnext Controls
  3. Monday, 24 February 2020

Im triying with the tutorial " How to connect a PLCnext Control to Microsoft Azure via Node.js SDK | Makers Blog" of the youtube, but this doesnt work because when i execute the script  with the commands via WinSCP with PuTTY this show me the error of the image, I need to install something before to execute the script???, because i reset mi PLCNext and immediately open the winSCP and puTTY and execute the script like the video and this show me the error.  You know another form to connect with azure like mqtt with nodered or opc ua for example (i dont know if this is posible yet)

Attachments (1)
Dan Clark Accepted Answer Pending Moderation
0
Votes
Undo

Hello,

There was an edit that was done that caused some formatting issues for some of the errors listed which have been fixed.

The main error is that Node did not install. Can you please send a screenshot of the files in your /opt/plcnext/ directory on your controller? 

Also, you selected the wrong option on start of the script. You were installing the AWS connection script which is not the same as Azure.  

Thanks!

arielito Accepted Answer Pending Moderation
0
Votes
Undo

Oh sorry I upload the wrong image jajaja, this is the image, and i dont know how to install azure-iot-device, you know how? 

Attachments (1)
Dan Clark Accepted Answer Pending Moderation
0
Votes
Undo

Hello,

Can you navigate to the /opt/plcnext/projects/azureclient and take a screenshot?

I want to see which files were downloaded.

It appears that there must be some issues in connecting to the internet to install these packages on your controller. Are you connected to the internet via cellular?   

Thanks!

arielito Accepted Answer Pending Moderation
0
Votes
Undo

Im connected to the internet via ethernet, 

Attachments (1)
Dan Clark Accepted Answer Pending Moderation
0
Votes
Undo

Hello,

It appears that npm was not able to install any of the dependencies for some reason.

Could you please install the most recent version of the script from Github and try to run again? There were a couple changes that I made that should help. 

Before you run the new script please clear off all of the files that were installed by doing a reset of the controller.

Thanks!

arielito Accepted Answer Pending Moderation
0
Votes
Undo

Hello Dan!! With the modification that you do in the script i can send data to the Azure, Thanks a lot !!?

Dan Clark Accepted Answer Pending Moderation
0
Votes
Undo

No problem! Glad you got it working :)

arielito Accepted Answer Pending Moderation
0
Votes
Undo

Hello Dan, I have a question because i can send data to Azure, but i want to modify the data that send because this show me this message in the archive(image Azure), and i dont know how to modify this from the programming of the PLCnext, i want to receive a data like "25C°" from a temperature sensor for example, because i dont know how to graph the entire data of the image, i like to graph this with graphana because actually i can connect the AzureDataBase with Graphana

You know some form to the send another type of data? or a form to graph the data directly from Azure?

Attachments (2)
Martin PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo

Hello arielito,

Was this question answered by the answer to your other question about charting in Azure?

If not, please let us know.

~ Martin.

Phoenix Contact Electronics Headquarters - PLCnext Runtime Product Management and Support

  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.