Tasmota and Sonoff NSPanel

Related tags

Spring Boot ns-flash
Overview

Tasmota and Sonoff NSPanel

Latest release will be here

Bottom of this post; https://community.openhab.org/t/nxpanel-replacement-firmware-for-sonoff-nspanel/132869?u=m-home

Quick early version of TFT custom screen firmware upload

Copy the nextion.bs file to your device with the File System Manager. Change the autoexec.bs to load that instead of the nspanel.bs if you were using that with the stock screen firmware.

https://github.com/peepshow-21/ns-flash/tree/master/berry

image

image

Download the jar file and run it with an installed java runtime on your windows or linux host. It should show a little app to convert the file.

image

https://github.com/peepshow-21/ns-flash/releases/download/v.0.0.4-alpha/ns-flash.jar

Browse to the TFT file you want to upload. Select the folder you want the chunk files to to. It's best to make this a folder that is seen by your local http server. But you can put them anyway and move the after. Press 'Build'. It will split the TFT into files tamsota can load

Openhab users can use the inbuilt web server, for those that need to install a local IIS to do this, here is a little guide from Viper-666 https://github.com/viper-666/ns-flash/wiki/HowTo-set-up-a-IIS-Webserver-under-Windows

Boot the NSPanel with the new nextion.bs loaded. At the console, type;

image

Where this is the place the chunk files live.

It shows progress in the console as MQT so you can monitor from Openhab or other Automation

image

That's it. then just wait. The display should show install progress.

image

When it's complete it will just reboot.

Data Exchange

If you set 'Send Component ID' in the Nextion editor you will get the native data back, which will show like this

13:03:59.381 MQT: tele/nspanel/RESULT = {"NSPanel":{"Nextion":"bytes('65010700')"}}

However, you can want to send more usful things back then using the prints method in nextion is maybe better;

image

which will appear like this;

13:23:11.214 MQT: tele/nspanel/RESULT = {"NSPanel":{"JSON":"{hi, x}AAAABBBB"}}

Note the J at start which trigger this!! <---- wrong! not J needed, default is picked up it starts with '{'

UPDATE - new version with example firmware!

Check here for latest; https://github.com/peepshow-21/ns-flash/tree/master/tft

Comments
  • US Panel test

    US Panel test

    Great work! You have implement it only on the first page, right? Next side and back to home works, the picture is after coming back.

    Only one issue, you have to switch the top and bottom indicator, they are in the wrong order if I press the top button the bottom indicator lights up and vise versa.

    US_Test

    opened by viper-666 21
  • Problems with new nxpanel.be

    Problems with new nxpanel.be

    For your Autoupdate and fully FTP upload feature I installed the newest nxpanel.be. But after a reboot I get several error messages on the console and no nxpanel, installnxpanel command works. Here the console log: 00:00:00.003 HDW: ESP32-D0WD-V3 00:00:00.131 UFS: FlashFS mounted with 288 kB free 00:00:00.260 CFG: Loaded from File, Count 241 00:00:00.276 QPC: Count 1 00:00:00.384 BRY: Berry initialized, RAM used=3849 00:00:00.413 BRY: no 'preinit.be' 00:00:00.421 Project tasmota - NSPanel Version 10.1.0(tasmota)-2_0_1_1(2021-12-08T14:50:20) 00:00:01.485 BRY: Exception> 'syntax_error' - /nxpanel.be:285: 'tcpclient' undeclared (first use in this function) 00:00:01.487 stack traceback: 00:00:01.498 <native>: in native function 00:00:01.498 <unknown source>: in functionload00:00:01.499 <unknown source>: in functionload00:00:01.510 <unknown source>: in functionmain00:00:01.511 <unknown source>: in functionload00:00:01.512 <unknown source>: in functionload``

    opened by viper-666 16
  • No way back from the display setup page?

    No way back from the display setup page?

    Hello, first thanks for your great work, I have to find out a lot because I want to use it with ioBroker instead of OH. I don't know if my problem exist because I have bought the US Version but I can't find a way to leave the display setup page. See picture. IMG_20220206_141056

    opened by viper-666 14
  • Syntax error to run nxpanel

    Syntax error to run nxpanel

    When I tried run nxpanel I got syntax error: 00:00:00.003 HDW: ESP32-D0WD-V3 00:00:00.147 UFS: FlashFS mounted with 272 kB free 00:00:00.242 CFG: Loaded from File, Count 14 00:00:00.257 QPC: Count 1 00:00:00.608 BRY: Berry initialized, RAM used=3935 bytes 00:00:00.641 Project tasmota - Tasmota Version 12.1.1.4(nspanel)-2_0_5(2022-10-08T15:19:12) 00:00:01.374 BRY: failed to load '/nxpanel.be' (syntax_error - /nxpanel.be:353: strict: redefinition of builtin 'str') 00:00:01.376 BRY: Successfully loaded 'autoexec.be' 00:00:02.421 WIF: Connecting to AP1 xxxxxxx in mode 11n as tasmota-C8359C-5532... 00:00:04.449 WIF: Connected

    What I do wrong?

    opened by pajakh 10
  • Tutorial Windows IIS Webserver

    Tutorial Windows IIS Webserver

    Hello, because I haven't OH I have to set up a webserver for the TFT file upload. I thought under Windows the IIS Webserver (what is integrated in Windows since Version 7) is a good choose. But there where a few things I have to change that your ns-flash.jar has the permissions to write in the webserver folder and that the NS-Panel has access to the files on the webserver. If you are interested I will write a How To for your Wiki, so that other user have it easy to do that.

    opened by viper-666 8
  • You are awesome but I have some additional questions

    You are awesome but I have some additional questions

    panel Really great how fast you have integrated my request for colored buttons. They work great!!! But there is a additional button in the top left corner. I think that is to show a summary what is great for my application so I can show there if all windows and doors are closed. But what is the code to control it. And I think it would be great if it isn't visible if you don't configure it maybe set "icon":1 as default what means not visible and if you send "icon":2 or "icon":3 you make it visible with the colors like the rest of the side.

    And I'm nearly ready with my ioBroker integration. But I can't find the code for the objects of the first page, the only thinks I could found was for the weather and the temp and hum.

    You also showed code for the favorite button, but I can't get it to bring to do some other as usual. Maybe you have now hardcoded what it does?

    opened by viper-666 7
  • Have I always to update the whole page?

    Have I always to update the whole page?

    You gave me a example how to configure the buttons on the second page. This works fine but if I update only one button like this: nxpanel {"refresh":{"pid":10,"name":"Home","format":6,buttons:[{"bid":7,"label":"Viper","type":10,"next":12,"state":15,"icon":12}]}} It changed the icon and the naming of the button, but the button don't work any more (it doesn't go to the status page). I have to refresh all buttons to get the functionality back. And can you give me please give an example whow I set the ten status on the status page?

    opened by viper-666 6
  • What is the status of this project?

    What is the status of this project?

    This project seems to be the only way to flash a TFT file with Tasmota. The latest release works but its pretty inconvenient to have to run the TFT file through a java app to make chunks. On master the code has been updated to load the TFT file directly but it didn't work for me.

    opened by respectTheCode 4
  • Change the weather icons (Future request)

    Change the weather icons (Future request)

    It would be cool if you can change the weather icons for some better looking types. Especial the sun icon looks like a red dot not what I and maybe other expected. Have a look at this icons: https://developer.accuweather.com/weather-icons

    opened by viper-666 3
  • Problem with uploading nxpanel.be

    Problem with uploading nxpanel.be

    Hi.

    NSPanel

    Program Version 11.0.0.4(tasmota) Build Date & Time 2022-03-23T10:17:10

    I upload nxpanel.be with Manage File system tool.

    After upload the file has always the size = 0

    Why ?

    opened by ilexpl01 1
  • Warnings icon state: 0 don't work

    Warnings icon state: 0 don't work

    What should the "state":0 command do? If I send: nxpanel {"warnings":[{"id":2,"type":2,"state":0}]}} The icon with the three blue arrows appears the house what was before on this place is gone.

    opened by viper-666 1
Owner
null
A suite of software tools and services created to support activity planning and sequencing needs of missions with modeling, simulation, scheduling and validation capabilities

Aerie A suite of software tools and services created to support activity planning and sequencing needs of missions with modeling, simulation, scheduli

NASA Advanced Multi-Mission Operations System 31 Jan 3, 2023
A compact and highly efficient workflow and Business Process Management (BPM) platform for developers, system admins and business users.

Flowable (V6) Maven Central: Docker Images: License: Homepage: https://www.flowable.org/ flowable / flowəb(ə)l / a compact and highly efficient workfl

Flowable 6k Jan 7, 2023
InterfaceMaker is a modern plugin to handle and customize join items, hotbars and menus with a developer and administrator friendly API.

Interface Maker InterfaceMaker is a modern plugin to handle and customize join items, hotbars and menus with a developer friendly API. Features Simple

2LStudios - Minecraft 10 Nov 27, 2022
Program that allows employees to clock in and clock out of work. Employees who are managers can add, edit and delete employees and shifts from the database.

Clock-In-Clock-Out-System Created by: Kennedy Janto, Taylor Vandenberg, Duc Nguyen, Alex Gomez, Janista Gitbumrungsin This is a semester long project

null 6 Nov 5, 2022
This repository contains the code for the Runescape private server project, and this repo is soley maintained by @Avanae and @ThePolyphia and @Xeveral

Runescape: The private server project. A Runescape private server based on the 2009 era. This repository contains the code for the Runescape private s

ProjectArchitecture 4 Oct 1, 2022
Plugin for Spigot, PaperMC, BungeeCord and Velocity to create custom MOTDs, playercount message and playercount hover with priorities and conditions.

AdvancedServerList AdvancedServerList is a server and proxy plugin that allows you to create custom MOTDs and more in your server list with priority a

Andre_601 19 Dec 14, 2022
An Open-Source repository 🌎 that contains all the Data Structures and Algorithms concepts and their implementation, programming questions and Interview questions

An Open-Source repository ?? that contains all the Data Structures and Algorithms concepts and their implementation, programming questions and Interview questions. The main aim of this repository is to help students who are learning Data Structures and Algorithms or preparing for an interview.

Aritra Das 19 Dec 29, 2022
source code of the live coding demo for "Building resilient and scalable API backends with Apache Pulsar and Spring Reactive" talk held at ApacheCon@Home 2021

reactive-iot-backend The is the source code of the live coding demo for "Building resilient and scalable API backends with Apache Pulsar and Spring Re

Lari Hotari 4 Jan 13, 2022
Simple and lightweight application which is checking status of your web services and send a notification if it is down.

rose-uptimer Simple and lightweight application which is checking status of your web services and send a notification if it is down. Example configura

RoseSapphire 3 Sep 25, 2022
A complete and performing library to highlight text snippets (EditText, SpannableString and TextView) using Spannable with Regular Expressions (Regex) for Android.

Highlight A complete and performing library to highlight text snippets (EditText/Editable and TextView) using Spannable with Regular Expressions (Rege

Irineu A. Silva 16 Dec 22, 2022
A distributed lock that supports the use of Redis and Zookeeper, out of the box, fast and easy to use

lock-spring-boot-starter A distributed lock that supports the use of Redis and Zookeeper, out of the box, fast and easy to use 一款基于 Redis 和 Zookeeper

Pear Stack 9 Oct 15, 2022
Scan and patch tool for CVE-2021-44228 and related log4j concerns.

A Log4J2 CVE-2021-44228 Vulnerability Scanner and Patcher Links to download the latest version: Linux x64 with glibc2.17+ (RHEL7+) Windows & all other

SAS Software 33 Jun 1, 2022
Powerful and flexible library for loading, caching and displaying images on Android.

Universal Image Loader The great ancestor of modern image-loading libraries :) UIL aims to provide a powerful, flexible and highly customizable instru

Sergey Tarasevich 16.8k Jan 2, 2023
Render After Effects animations natively on Android and iOS, Web, and React Native

Lottie for Android, iOS, React Native, Web, and Windows Lottie is a mobile library for Android and iOS that parses Adobe After Effects animations expo

Airbnb 33.5k Jan 3, 2023
A factory and generators framework for Java 7 and up.

Factorium-J7 A simple generator and factory framework. Compatibility Compatibility is guaranteed for Java 7 and up. How to use it The core interfaces

Samuel Beausoleil 0 Jul 20, 2022
A library to create, read and validate ZUGFeRD compliant invoices. Available for Java and .NET

Konik ZUGFeRD Library Is an easy to use open source implementation of the ZUGFeRD data model including various enhancements. Features Easy and underst

Konik 42 Dec 20, 2022
ActiveJ is an alternative Java platform built from the ground up. ActiveJ redefines web, high load, and cloud programming in Java, featuring ultimate performance and scalability!

Introduction ActiveJ is a full-featured modern Java platform, created from the ground up as an alternative to Spring/Micronauts/Netty/Jetty. It is des

ActiveJ LLC 579 Jan 7, 2023
Authentication and authorization for application, api and user

多树AUTH / MT-AUTH 用户,应用,API管理中心 MT-AUTH是一款基于Spring Boot, OAuth2与事件驱动的角色的权限管理(RBAC)系统,通过集成Spring Cloud Gateway实现了API鉴权,缓存,跨域,CSRF防护,特殊字符过滤等常用功能 项目特点 基于事

null 23 Dec 14, 2022