Getting the same state.time when doing echo>>"file" state.time
-
Hi
I am trying to logg some data. In my daemon.g I have a row like this.
echo "Time, ", {state.time},{move.extruders[0].factor}
The result at the consol is. Did I Do something wrong?
The factor is changing but the time is not. Should it be casted to an other type as (string) or?The consol gives this:
2023-08-22 02:10:19 Time, 0.00017975105 0.94
2023-08-22 02:10:17 Time, 0.00017975105 0.94
2023-08-22 02:10:14 Time, 0.00017975105 0.94
2023-08-22 02:10:12 Time, 0.00017975105 0.51
2023-08-22 02:10:10 Time, 0.00017975105 0.51
2023-08-22 02:10:07 Time, 0.00017975105 0.51
2023-08-22 02:10:06 Time, 0.00017975105 0.51 -
@Schickfus Putting
state.time
into curly braces does not seem to work in v3.4. These two commands work, though:echo "Time, ", state.time,{move.extruders[0].factor} echo "Time: " ^ state.time ^ ": " ^ move.extruders[0].factor
-
This should work too:
echo "Time, ", state.time, move.extruders[0].factor