read some more battery data using new bme.c file but not stable, crashes after 23...
[monky] / data / graph.lua
index dbff1d4..00c65ed 100644 (file)
@@ -136,7 +136,7 @@ function set_settings()
                        arg="wlan0",
                        max=9999,
                        y=233,
-                       x=525,
+                       x=575,
                        autoscale=true,
                        width=275,
                        height=35,
@@ -191,7 +191,7 @@ function set_settings()
                        arg="1",
                        max=20,
                        y=95,
-                       x=372,
+                       x=367,
                        autoscale=true,
                        width=140,
                        height=36,
@@ -207,7 +207,7 @@ function set_settings()
                        arg="mmcblk0}",
                        max=2500000,
                        y=187,
-                       x=640,
+                       x=690,
                        autoscale=true,
                        width=160,
                        height=89,
@@ -220,6 +220,24 @@ function set_settings()
                        bg_orientation="ne",
                        fg_orientation="ee",
            },
+           {
+                       name="battery_rate",
+                       arg="",
+                       max=350,
+                       y=187,
+                       x=500,
+                       autoscale=true,
+                       width=160,
+                       height=45,
+                       nb_values=130,
+                       fg_bd_size=0,
+                       bg_colour = {{0,0x667AF6,0},{1,0x000000,0}},
+                       fg_bd_colour =  { {0,0xdd0000,1},{0.5,0xdddd00,1},{1,0xFFFF00,1}},
+                       fg_colour = { {1,0x111111,0.3},{0.5,0x33cc00,0.6},{0,0x00FF00,0.8}},
+                       foreground=true,
+                       bg_orientation="ne",
+                       fg_orientation="ee",
+           },
     }
 end