Coder Social home page Coder Social logo

More verbose template about templates HOT 3 CLOSED

blakadder avatar blakadder commented on September 27, 2024
More verbose template

from templates.

Comments (3)

blakadder avatar blakadder commented on September 27, 2024 1

image
Merry Christmas! Spread the word!

from templates.

blakadder avatar blakadder commented on September 27, 2024

I have no plans to support different firmwares. Reference to the GPIO numbering is found in https://tasmota.github.io/docs/#/Components.
I will see about having some sort of decoding of the template but its not on any immediate todo list since the current functionality is sufficient to use with Tasmota

from templates.

mcspr avatar mcspr commented on September 27, 2024

Oh, thanks for the link, I had no idea about that part of documentation.

Just to follow my own idea, I came up with a little cpp program that can be compiled directly in the Tasmota repo root:
https://gist.github.com/mcspr/eb68ada9df1e4e08ac3d2a129ac7c680
For example, https://templates.blakadder.com/shelly_1PM.html

$ pwd
/home/max/Documents/PlatformIO/Projects/Tasmota
$ g++ -o show_template show_template.cpp
$ ./show_template '{"NAME":"Shelly 1PM","GPIO":[56,0,0,0,82,134,0,0,0,0,0,21,0],"FLAG":2,"BASE":18}'
Shelly 1PM (based on Generic)
ADC0 Temperature
GPIO 0 -> Led1i
GPIO 4 -> Switch1n
GPIO 5 -> BL0937 CF
GPIO15 -> Relay1

Which seems to be correct interpretation
(and I do see the same pin mapping in the template used by espurna... but I am not sure that I translate BASE correctly)

from templates.

Related Issues (20)

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.