arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
21.96k stars 4.77k forks source link

Can we store the console info/log or can we push the data to thingspeak? #3729

Closed lesonquan closed 6 years ago

lesonquan commented 6 years ago

Hi all, I have a project to monitor Electric Current by Sonoff Pow with Tasmota fw. I not only want to real time monitor, I also want to monitor the historical data. I dont know whether we have any way to store all info of Console or can we push the Current value directly to Thingspeak through MQTT? I also find the Configure Logging in Tasmota, but I dont know how to use it.

EX:

15:52:50 MQT: tele/temp/SENSOR = {"Time":"2018-09-07T15:52:50","AM2301":{"Temperature":29.6,"Humidity":71.3},"TempUnit":"C"}
15:53:00 MQT: tele/temp/STATE = {"Time":"2018-09-07T15:53:00","Uptime":"0T00:03:55","Vcc":2.997,"Wifi":{"AP":1,"SSId":"Anonymous","RSSI":76,"APMac":"10:6F:3F:4A:43:B0"}}
15:53:00 MQT: tele/temp/SENSOR = {"Time":"2018-09-07T15:53:00","AM2301":{"Temperature":29.6,"Humidity":71.4},"TempUnit":"C"}
15:53:10 MQT: tele/temp/STATE = {"Time":"2018-09-07T15:53:10","Uptime":"0T00:04:05","Vcc":2.997,"Wifi":{"AP":1,"SSId":"Anonymous","RSSI":88,"APMac":"10:6F:3F:4A:43:B0"}}
15:53:10 MQT: tele/temp/SENSOR = {"Time":"2018-09-07T15:53:10","AM2301":{"Temperature":29.6,"Humidity":71.4},"TempUnit":"C"}
15:53:20 MQT: tele/temp/STATE = {"Time":"2018-09-07T15:53:20","Uptime":"0T00:04:15","Vcc":2.997,"Wifi":{"AP":1,"SSId":"Anonymous","RSSI":98,"APMac":"10:6F:3F:4A:43:B0"}}
15:53:20 MQT: tele/temp/SENSOR = {"Time":"2018-09-07T15:53:20","AM2301":{"Temperature":29.6,"Humidity":71.4},"TempUnit":"C"}
15:53:30 MQT: tele/temp/STATE = {"Time":"2018-09-07T15:53:30","Uptime":"0T00:04:25","Vcc":2.997,"Wifi":{"AP":1,"SSId":"Anonymous","RSSI":84,"APMac":"10:6F:3F:4A:43:B0"}}
15:53:30 MQT: tele/temp/SENSOR = {"Time":"2018-09-07T15:53:30","AM2301":{"Temperature":29.6,"Humidity":71.4},"TempUnit":"C"}
mike2nl commented 6 years ago

You can set a logging host under settings/ logging in the web interface or in the user_config.h. Depending on the lots of information you wont... You can set the level of information you need. Local logging on the sonoff? There is to less memory.

Thingspeak is a cloud service so far i know.

You use windows? Take a look for Syslog Server 1.2.3 -> https://sourceforge.net/projects/syslog-server/files/syslog-server/1.2.x/ That's a very good one and simple to configure.

Here a screenshot: syslog

lesonquan commented 6 years ago

Can you share how to config to get the the info from Sonoff with Tasmota fw? Everything is new to me :D

mike2nl commented 6 years ago

@lesonquan Ok wait some minutes and you get the info..

So now but don't hit if you have to scroll to much ;-)

In figure one you hit the Configuration button, red square. Figure 1 1

In figure 2 you hit the Configuration Logging Button, red square. Figure 2 2

In figure 3 you have the red and the blue square Figure 3 3

Red square:

Blue square:

In the posting where i copied a screenshot from my log server there are only some sonoff and a laptop. That's a testing machine not my home automation. I want give these screenshots because there are all my industrial plc's are visible which i use to do a lot more home automation then sonoff does now.

I hope that helps. For any more question, please ask.

ascillato2 commented 6 years ago

Hi,

If you need more information, please follow the links. Thanks

Support Information

See Wiki for more information. See Community for forum. See Chat for more user experience.

lesonquan commented 6 years ago

@mike2nl thank you so much for your kink support. it works like a charm 👍