gregulator
Senior member
I have some temp sensors in the building that have either a web interface, or stream output over a telnet session. Initially I looked into screen scraping the web interface with BeatifulSoup, but it updates with javascript functions so I can't scrape the temp numbers (looks like I could use selenium, but I moved on).
It also streams a continuous output to a telnet session, and I can pipe it to a "tee" and output that text to file. This is my current approach. If I want to log the data to a MySQL database, is my best bet to:
1) Write a script to run the telnet session, logging the output to file
2) Create another script/daemon to consume the text file and put it into the MySQL database?
I am not a Linux user, so I don't know if this is the best way. Thanks!
It also streams a continuous output to a telnet session, and I can pipe it to a "tee" and output that text to file. This is my current approach. If I want to log the data to a MySQL database, is my best bet to:
1) Write a script to run the telnet session, logging the output to file
2) Create another script/daemon to consume the text file and put it into the MySQL database?
I am not a Linux user, so I don't know if this is the best way. Thanks!