Giter Club home page Giter Club logo

clock16x2's Introduction

Clock16x2

Features / особенности:

Also / также:

  • All board-depend defines must be in defines.h / все железозависимые переменные должны находиться в файле defines.h
  • Other configuration is done through editing and uploading config.json file in LittleFS/through web interface

Installation / установка:

  • Edit defines.h according to your build / внести изменения в defines.h в соответствии с вашим устройством
  • Build and upload fs image / собрать и залить образ файловой системы
  • Build and upload _minimal firmware version, it can be later updraded through OTA / собрать и залить _minimal прошивку, ёё можно обновлять по воздуху

Пояснения

  • На устройство можно отправлять сообщения в формате JSON (пример для pyscript):

    каждый из параметров здесь является необязателеным

    Топик для отправки: MQTT_TOPIC_PREFIX/message

    { 
        "title": "title", //текст сверху (13 или 15 символов в зависимости от наличия icon) 
        "message": "message", //текст снизу (неограниченное количество символов)
        "time": 11337, //время показа сообщения (в миллисекундах, по умолчанию 2000)
        "icon": "62696770656e6973...", //строго 64 символа (hex) для картинки
        "enqueue": false //показать сразу (false) или включить в очередь (true, по умолчанию)
    }
    
    Про формат картинки 4 тайла разрешением 5*8px

    На каждый тайл по 8 байт

    В итоге получится 32 байта (64 hex символа)

    Порядок: левый верхний -> ... -> нижний правый

  • На устройство можно отправлять прогноз погоды в формате JSON (например из автоматизации homeassistant): Топик для отправки: MQTT_TOPIC_PREFIX/yaweather/status

          {
            "cond": "cloudy", // https://home-assistant.io/integrations/weather/#condition-mapping
            "temp": 1,
            "hum": 90,
            "wndspd": 10, // не используется 
            "forecast": [ {
                            "cond": "cloudy",
                            "temp": 1,
                            "templow": -1
                          },
                          {
                            "cond": "cloudy",
                            "temp": 1,
                            "templow": -1 
                          }
                        ] 
          }
    
  • Есть режим блокировки (a.k.a энергосберегающий): Топик для отправки: MQTT_TOPIC_PREFIX/lock/set Формат: ON/OFF, retain: true Пример автоматизации для homeassistant

clock16x2's People

Contributors

maksp86 avatar

Stargazers

Kirito avatar

Watchers

 avatar

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.