mqtt event logging?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
User avatar
uxhamby
Normal user
Posts: 132
Joined: 29 Dec 2016, 18:13
Location: Toronto Canada

mqtt event logging?

#1 Post by uxhamby » 15 Nov 2018, 16:33

I have various esp's gathering data around my home and sending to my own mosquitto based mqtt broker. What I'd like is a means of automatically logging select mqtt traffic to .csv or .xls files somewhere on my lan.

This is the closest I have come to what I am looking for Steve's MQTT DataLogger but I'd like it to run as a background / start at boot service.

I don't find a readily available package for doing this at my programming level.

Suggestions?

Thanks,

Brian H.
Last edited by uxhamby on 15 Nov 2018, 17:49, edited 1 time in total.

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: mqtt ervent logging?

#2 Post by grovkillen » 15 Nov 2018, 17:43

I have my own script doing it for me. What operating system do you use?
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

User avatar
uxhamby
Normal user
Posts: 132
Joined: 29 Dec 2016, 18:13
Location: Toronto Canada

Re: mqtt ervent logging?

#3 Post by uxhamby » 15 Nov 2018, 17:47

Currently I have Linux Mint 19, RPi Jessie and one old Win XP installation.

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: mqtt event logging?

#4 Post by grovkillen » 15 Nov 2018, 17:51

My scripts are Windows based (run them on some virtual machine). I might upload it to my GitHub page if more are interested.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Drum
Normal user
Posts: 300
Joined: 07 Feb 2016, 11:56

Re: mqtt event logging?

#5 Post by Drum » 15 Nov 2018, 22:47

I am using Mosquitto to NodeRed to SQLite. I used a script from Pete Scargill - tech.scargill.net
Developed mostly for RaspberryPI with probably more than you want or need, but I suspect you are able to figure out most of what the script is doing and use parts for what you need.

NodeRed has a learning curve, but is not difficult and can do a lot of neat tricks.

Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests