I would like to obtain a temperature and a pressure reading using Python from a barometer that resides on my network. I would then like to assign these values to variables. Currently, a batch file is setup with the following contents:
ECHO OFF
L:\Destination_Folder\httpget.exe -r -S "*SRTC\r" 172.24.48.67:1000 echo. #echo the temperature.
L:\Destination_Folder\httpget.exe -r -S "*SRHm\r" 175.24.48.67:1000 echo. #echo the pressure.
PAUSE
I need a simple way to obtain these values and assign them to variables so that they can be used for various calculations.
Thank-you