Giter Club home page Giter Club logo

octoprint-merossmss425f's Introduction

OctoPrint-MerossMSS425F

A simple Octoprint plugin for shutdown device like printer with Meross MSS425F smart plug

Setup

Install via the bundled Plugin Manager or manually using this URL:

https://github.com/timgir/OctoPrint-MerossMSS425F/archive/master.zip

Configuration

Go to Octoprint settings & Meross MSS425F for add email & password at your Meross account & choose plug to shutdown.

Settings

After that, add M81 instruction into your GCODE file.

Thank-you

I use MerossIot python library at Alberto Geniola, thanks to him.

Thank you to Gina Häußge & contributors for Octoprint, awesome tool !

Thank you to jneilliii & cp2004 for help me to write this plugin.

Donation & sponsors

If you like my work, consider supporting people without whom it wouldn't exist :

If you want tip me :

BTC: bc1qdmv385lnmrwl8l2y6xa2ruyly82ndzpht00e2w
ETH: 0xe249812a56A7212539f28389585351F20945BCBB

octoprint-merossmss425f's People

Contributors

timgir avatar titome avatar

Stargazers

 avatar

Watchers

 avatar

octoprint-merossmss425f's Issues

asyncio.run() cannot be called from a running event loop

Hi,
I’m trying to get the OctoPrint plugin to work but I keep getting the following error when I try to turn off or on the Meross plug.
Do you have an idea what can be causing this issue?

2021-08-12 15:02:50,324 - octoprint.util.comm - ERROR - Error while processing hook meross_mss425f for phase queuing and command M81:
Traceback (most recent call last):
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/util/comm.py", line 4519, in _process_command_phase
tags=tags,
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/util/init.py", line 1941, in wrapper
return f(*args, **kwargs)
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint_meross_mss425f/init.py", line 101, in hook_gcode_queuning
asyncio.run(shutdown(email, password, id_plug))
File "/usr/lib/python3.7/asyncio/runners.py", line 34, in run
"asyncio.run() cannot be called from a running event loop")
RuntimeError: asyncio.run() cannot be called from a running event loop

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.