Proof of concept for injecting code into PlaneWave's PWI4 without modifying PWI.
Tested with PWI 4.1.9 Beta 13.
I wanted to create a prometheus exporter that scrapes data from PWI4's web interface
but the /status endpoint did not provide temperature data.
This injector retrives temperature data from the static App.TemperatureInterfaces
class and logs it to a text file located on your Desktop.
During development I discovered that temperature data actually is available
on the web api at the /temperatures/pw1000 endpoint but I decided to finish
this proof of concept for educational purposes.
- Open PWI4.
- Start PWI4Injector.
- View the log file on yoru desktop named
PWI4_Temp.txt.