I was thinking about how we have a plugin that tracks filament used, and run time. So, why not add power logging into the mix?
Of course, this wouldn't just be a "simple" coding feature. It would require some external hardware as well. Which comes with its own set of problems.
So, why not just use a plug based power monitor? Well, it is mostly just nice to have all of the data at your finger tips. Just think about the possibility of tracking exactly how much power usage there is for each print. You could provide far better pricing per a print, or simply see exactly how much power you are using for each print.
Though, honestly, I just love having more data. So I would enjoy having one more set of data to look at. There can be practical uses for it, but that is secondary. Thoughts, feelings, suggestions?
That would be really cool! No worries, life tends to get busy. Considering that it is something you are not getting paid for, you have every right to focus on other things.
If possible, it would be great to see this kind of functionality added to your plugin! At your leisure of course.
After looking into your plugin, another thought comes to mind. Would it be possible to have something like a smoke alarm connected to the Pi, which would trigger an emergency power off?
I know this is a little jaunt off of the original suggestion, but it has just been on my mind a bit. Since printer fires are a possibility.
I use a "Sonoff POW" Switch (<10€) to remotely turn on my printer and also for a automatic safe shutdown of printer plus raspi after print. Works pretty good!
The next step is to use the measuring feature and put this to the CostEstimation Plugin.
But at the moment I am thinking about the best implementation-strategy (mqtt vs. rest)...so it could take some time.
That plugin estimates the power usage. This thread is talking about incorporating hardware that will measure the power usage. If they get something working, it will be interesting to compare the two methods.
@OllisGit Use the MQTT protocol. It is more lightweight and you can subscribe to topics. With REST you have more overhead and you have to poll the data.
we are using two different printers each one with a Sonoff POW and a Octopi. For us it would be also helpfull to switch an unmodified Sonoff with the Octoprint software.
The Sonoff switches the Printer and the Raspberry. It would be great if you can say "set Sonoff Timer 5 Minutes then shut off" and "shut down Raspberry". So you have a save shutdown for the Raspberry and the extruder can cool off before shutdown.
It would be great if this feature is coming one day. The Fanbase of Sonoff devices are also growing.
The HS110 is the model that has power monitoring. The lastest version of the TPLink-Smartplug plugin does now support the display of the emeter data. Eventually I will look into logging that data by print/gcode file name. Was wondering if any developers here know right away if there is a way to extend the metadata of the file list? Seems like that would make the most sense to add to rather than keeping an entirely separate db mechanism.
Nice, basically the same thing I'm doing now. What I found interesting is that the US model returns the data in a different way then the EU models, involving additional math in the situation when supporting both.
My perma-vaporware Pi addon sniffs how much power is coming in (as 12-26v) and observes power usage there. As a subset I have the output of the bucket circuit. That'll tell us what a Pi is using at 'idle', among other things.
Wow. You should make a printer farm—version of that and up-sell to those guys. That sounds like it would be damn useful when you have a roomful of these things.
In theory you could set-up one octoprint to monitor the whole farm since the plugin supports multiple devices. The graph displays on which plug is selected in the pull down, and the individual settings. I just finished some tweaking to the axes to overlay different ranges. It's getting there.
sorry to resurrect an old thread but since the topic fits perfectly I hope it's fine .
@jneilliii do you have any plans to add the energy data to your Tasmota plugin? I am using a BlitzWolf BW-SHP2 running Tasmota 8.1.0 and would love to log and display my energy consumption in Octoprint. I am sure there a couple people interested in this