Tom Eilers Posted Monday at 07:20 PM Report Posted Monday at 07:20 PM I have a Homewizard P1 meter, from which I want to read only the power in Watt with LabView. There API version 2 see: https://helpdesk.homewizard.com/en/articles/5935977-integrating-energy-with-other-systems-api uses HTTPS. They have an example to read the P1 with curl (curl https://<IP ADDRESS>/api/measurement --insecure -H "Authorization: Bearer EXAMPLE-TOKEN". With system exec I can read the P1 meter values. My question is it possible to do this in pure LabView HTTP Get/Set and Header vi's and How. In my case I use url: https://192.168.178.109/api/measurement --insecure -H "Authorization: Bearer 010183D11FD0A5F08990D911BBFF3995" P1 meter API v2.vi Quote
Phillip Brooks Posted 6 hours ago Report Posted 6 hours ago You can add the Header to your session handle prior to making the endpoint query. An example can be found here: Re: Not able to connect to a web server - NI Community Quote
Tom Eilers Posted 1 hour ago Author Report Posted 1 hour ago I followed the https://forums.ni.com/t5/LabVIEW/Not-able-to-connect-to-a-web-server/m-p/4057121/highlight/true#M1164115 example and made my changes My vi always gives error: LabVIEW: (Hex 0x58BF3) LabVIEW could not verify the authenticity of the server. I have no idee if the --insecure option is at the right place. P1 meter labview.vi Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.