You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 9, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: temp.plot
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -4,12 +4,12 @@ set xlabel "Datetime"
4
4
setylabel"Celcius"
5
5
6
6
setterminalpng
7
-
setoutput"temp.png"
7
+
setoutput"/var/www/temp.png"
8
8
setdatafile separator "|"
9
9
setstyle data lines
10
10
setgrid
11
11
setyrange [0:*]
12
12
setxdata time
13
13
settimefmt x "%H:%M"
14
14
setformat x "%H:%M"
15
-
plot"< sqlite3 temp.db \"SELECT time, degree from temp where date = date('now') and sensor = 'test';\""using1:2title"test", "< sqlite3 temp.db \"SELECT time, degree from temp where date = date('now') and sensor = 'outside';\""using1:2title"outside"
15
+
plot"< sqlite3 sensors.db \"SELECT time, value from sensors where date = date('now') and name = 'outdoor';\""using1:2title"outdoor", "< sqlite3 sensors.db \"SELECT time, value from sensors where date = date('now') and name = 'indoor';\""using1:2title"indoor"
0 commit comments