Milí majitelé routerů Turris,
toto fórum bylo 9. 12. 2016 zmrazeno a nahrazeno naším novým Turris fórem. Ještě chvíli bude dostupné k prohlížení, ale již zde není možné přispívat. Více informací naleznete v oznámení o uzavření fóra.
Dear Turris routers users,
this forum has been frozen on Dec 9th, 2016 and replaced by our new Turris forum. It will be read-only accessible for some time after. For more information, read the announcement about closing the forum.
#!/bin/sh if [ "$1" = "config" ]; then echo graph_title CPU and Board temperature echo graph_vlabel temp in °C echo graph_category sensors echo graph_info This graph shows the temperature in degrees Celsius of the CPU and the Board. echo CPU.label CPU echo CPU.max 120 echo CPU.warning 100 echo CPU.critical 110 echo Board.label Board exit 0 fi
#!/bin/bash temp=$(thermometer | grep Board | sed -r 's/[^0-9]+//g') echo "Teplota:" $temp"°C" query="INSERT INTO db_name.tbl_thermo(time_stamp, temp_value) values (NOW(), "$temp");" echo $query mysql -u $username -p $pwd -e $query
#!/bin/bash temp=$(thermometer | grep Board | sed -r 's/[^0-9]+//g') echo "Teplota:" $temp"°C" query="INSERT INTO db_temp.tbl_values(time_stamp, temp_value) values (NOW(), "$temp");" echo $query | mysql -u root -pmysql
Powered by mwForum 2.29.3 © 1999-2013 Markus Wichitill