Historically, my “native” operating system is Windows. In a previous article, I tried to show the
Internet thermometer or telemetry of a country house “what we are not horses with,” “we can also” or “a monkey can also be taught” and easily. But the time has come "X" - moving to linux. I have associated this move with forced migration - the ice age.

The debut idea was a simple replacement of windows "server" similar but on linux. Since this brainwashing was originally planned, then on windows server there were php and mysql.
Moving the web server turned out to be extremely simple: copy the files of the home directory, raise the database from the backup and then the frontend moved. Working with the mp707 device is also simple, the developer provides the
bmcontrol utility.
bash temperature transfer script in mysql
d5000002a8cbed28 is the 64-bit identifier of the sensor DS18B20
Add a schedule to crontab
*/10 * * * * root /etc/tempscr
')
We are under linux. The goal is all well and happy. Special thanks to ASM and ANDY for their educational work.
Yes, but no. The idea comes to place our frontend frontending. Again, copying, some struggle with restrictions, with the subsequent optimization of the code, and now
tarasii.zz.mu . The code had to be changed a little. The reason for this was the restriction on the number of simultaneous connections from one ip-address on freehosting. For this very reason, my winXP site stopped responding to external requests. In winXP there are restrictions on the number of tcp connections. These graphs were loaded with 5 parallel open connections. Login of one user to the start page occupied 6 connections. The same effect was also on the frihosting, 3 compounds still lived, the next ones were cut off by the provider. Redid it.
Another feature added to the comparison with the previous year.
Now the system is divided into separate parts of the hardware and web interface. I really liked this structure of the system. Again there was a reason to throw everything in the table.
But no, I read about tp-link mr3020 (Thanks to Holoborodko). Nice device. Subconsciously buy it, flashing OpenWrt.

Thanks ANDY he did bmcontrol under Atheros -
tptemp . The
bmcontrol sources are now available. The peculiarity of the MR3020 is, the fact that, USB-hid devices connected directly to it at the port are not visible at all, and work through any 2.0 USB-hub.
Attention! (Thanks
SSar ) USB hub should be 2.0 !. Further along the trodden path: the task to the scheduler, the script to send to the frontend ...
The total cost of the Internet thermometer has dropped to $ 60. TP-Link MR3020 + MP707 + freehosting
Plans to connect the
weather station to the MR2030 and get the pressure and humidity graphically.
Master Kit - MP707 - USB ThermometerBMcontrol at PhP DeveloperResearch Wi-Fi router TP-LINK TL-MR3020We assemble a wi-fi device for controlling electrical appliances with a web server and a JS frontendOpenWrt TP-Link TL-MR3020