thinger-io / thinger-server

Thinger.io Server Repository
MIT License
3 stars 0 forks source link

[Device Terminal Screen] - Insert date and time in terminal log #32

Open georgevbsantiago opened 1 year ago

georgevbsantiago commented 1 year ago

Insert date and time in Device Terminal Without the date, time, minute and second, we don't know what date and time the event reported in the print occurred.

image

alvarolb commented 1 year ago

I think that it should be done from the device itself. In the same way you print "Comando", the device is capable of reporting millis, date from an RTC, etc.

Does it solve the issue?

georgevbsantiago commented 1 year ago

It is an alternative form of solution for most cases. The problem with this solution is that it consumes data. In the case of devices that use GSM/CAT/NB-IoT with a data plan of 5, 10, 20 Mb... there is an impact on data traffic when the uplink is performed.

In the platformio example, we used the flag: monitor_filters = time , not the device to generate the date and time. See: https://docs.platformio.org/en/latest/projectconf/sections/env/options/monitor/monitor_filters.html

georgevbsantiago commented 1 year ago

One option would be to add a checkbox at the top, next to "Clear" for the user to enable or disable the timestamp (date time).