Code Monkey home page Code Monkey logo

node-red-contrib-pixelit's People

Contributors

dependabot[bot] avatar foorschtbar avatar o0shojo0o avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

node-red-contrib-pixelit's Issues

Feature Request: Stop playlist playing

When using NR and setting the playlist there is no way to then stop the playlist.
I want to be able to stop the playlist from playing so I can freeze on a single screen or use the live mode to draw.

However, once a playlist is started it then can't be stopped again.

Thanks.

[0.3.6] brightness, sleepmode and alert screens not working

Hi,
I updated the node and now I see the following:

  • brightness adjustment does not work, I think it stays at the default brightness level.
  • when I inject sleepmode_on, the it does not go dark. It just stops and shows a still image (or at least it does not go to the next screen). In continues when I inject sleepmode_off.
  • My alertscreen, which scrolls a text, sometimes freezes. Sometimes it goes blank but a few pixels of the text stay on.

I restarted node-red, rebooted the pi and re-deployd the whole workspace.... no luck.

Pixelit makes NodeRED crashing with latest versions

Hi,
Since latest update from HassIO, Node-Red is crashing while trying to launch Pixelit.core

See bellow log output

PS: If I remove this specific lib from "package.json", then NodeRed starts

Can you please have a look.
Thank you

` Add-on version: 13.3.1
You are running the latest version of this add-on.
System: Home Assistant OS 8.4 (armv7 / raspberrypi4)
Home Assistant Core: 2022.8.4
Home Assistant Supervisor: 2022.08.3

Welcome to Node-RED

15 Aug 20:26:34 - [info] Node-RED version: v3.0.2
15 Aug 20:26:34 - [info] Node.js version: v16.16.0
15 Aug 20:26:34 - [info] Linux 5.15.32-v7l arm LE
15 Aug 20:26:35 - [info] Loading palette nodes
rpi_gpio_s32.node driver V1.23 (c) Ocean [email protected]
15 Aug 20:26:42 - [info] Dashboard version 3.1.7 started at /endpoint/ui
15 Aug 20:26:43 - [info] Settings file : /etc/node-red/config.js
15 Aug 20:26:43 - [info] Context store : 'default' [module=memory]
15 Aug 20:26:43 - [info] User directory : /config/node-red/
15 Aug 20:26:43 - [warn] Projects disabled : editorTheme.projects.enabled=false
15 Aug 20:26:43 - [info] Flows file : /config/node-red/flows.json
15 Aug 20:26:43 - [info] Server now running at http://127.0.0.1:46836/
15 Aug 20:26:43 - [info] Starting flows
15 Aug 20:26:44 - [info] Started flows
15 Aug 20:26:44 - [info] [mqtt-broker:HASSIO] Connected to broker: mqtt://127.0.0.1:1883
15 Aug 20:26:45 - [red] Uncaught Exception:
15 Aug 20:26:45 - [error] SyntaxError: Unexpected token , in JSON at position 183
at JSON.parse ()
at createScreenJson (/config/node-red/node_modules/node-red-contrib-pixelit/pixelit/core.js:243:48)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at core._inputCallback (/config/node-red/node_modules/node-red-contrib-pixelit/pixelit/core.js:145:37)
[20:26:45] WARNING: Node-RED crashed, halting add-on
[20:26:45] INFO: Node-RED stoped, restarting...
s6-rc: info: service legacy-services: stopping
[20:26:45] INFO: Node-RED stoped, restarting...
s6-svwait: fatal: supervisor died
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
`

lighting adjustment

good morning and congratulations on the project you are carrying out, very nice. I am a beginner and I am untangling myself with an 8x32 led panel and in many things I have succeeded but I cannot create a flow that manages the brightness for me, by chance someone has an example of how I can manage it manually and how to integrate it in the home assistant?

thanks in advance for the availability

Only show screen when value above 0

I have several screens working and all based on a value. Let's take solar power as an example. I want it to update and show the solar watts from panels only above 0 watts. When it is 0 watts, I want it to not show in the rotation. I mostly have it working, but instead of going away at 0, it reads the last value forever which is normally 1 watt. I noticed this is possible from the 'days til christmas" screen but can't duplicate it. I am pulling the values from MQTT, is that the problem?

I am using a function node with this code:

`var percent = msg.payload

msg.payload = percent;

if (percent === 0) {
msg.show = false
}
else if (percent > 0) {
return msg;
}`

Next screen function

Is a "go to next screen in playlist" function possible? When i test something and have a long playlist, in need to wait until the new screen appears...

Text: state value?

Is it possible to have the value of a state displayed in the message?

I tried putting this in the text box.

Current Plex Viewers: {{payload}}

or
Current Plex Viewers: {{msg.payload}}

I asked to see if ChatGPT could help and ended up with this flow which also didnt work.

[ { "id": "7eae38c2c363dcfe", "type": "server-state-changed", "z": "e6d349d60ead1d22", "name": "", "server": "717b0703.8c9fa8", "version": 3, "exposeToHomeAssistant": false, "haConfig": [ { "property": "name", "value": "" }, { "property": "icon", "value": "" } ], "entityidfilter": "sensor.plex", "entityidfiltertype": "exact", "outputinitially": false, "state_type": "num", "haltifstate": "", "halt_if_type": "", "halt_if_compare": "", "outputs": 1, "output_only_on_state_change": true, "for": 0, "forType": "num", "forUnits": "minutes", "ignorePrevStateNull": false, "ignorePrevStateUnknown": false, "ignorePrevStateUnavailable": false, "ignoreCurrentStateUnknown": false, "ignoreCurrentStateUnavailable": false, "outputProperties": [ { "property": "payload", "propertyType": "msg", "value": "", "valueType": "entityState" } ], "x": 710, "y": 20, "wires": [ [ "1b3a6cc7327984ea", "3d823e0ec2dad915" ] ] }, { "id": "1b3a6cc7327984ea", "type": "function", "z": "e6d349d60ead1d22", "name": "Format Message", "func": "msg.payload = \"Current Plex Viewers: \" + msg.payload;\nreturn msg;", "outputs": 1, "timeout": "", "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 1010, "y": 20, "wires": [ [ "7db6f98168446292" ] ] }, { "id": "7db6f98168446292", "type": "Text", "z": "e6d349d60ead1d22", "name": "Text", "intextString": "Current Plex Viewers: {{msg.payload}}", "inbigFont": "true", "inscrollText": "true", "inscrollTextDelay": "1", "incenterText": "true", "inposX": "8", "inposY": "1", "incolorR": "0", "incolorG": "255", "incolorB": "0", "x": 1630, "y": 20, "wires": [ [ "5cec2660c744c907" ] ] }, { "id": "3d823e0ec2dad915", "type": "Screen Init", "z": "e6d349d60ead1d22", "name": "Screen Init", "inscreenName": "person_detected", "induration": "20", "x": 1250, "y": 20, "wires": [ [ "e18735f3ed6c01d1" ] ] }, { "id": "e18735f3ed6c01d1", "type": "Switch Animation", "z": "e6d349d60ead1d22", "name": "Switch Animation", "aktiv": "true", "animation": "fade", "x": 1430, "y": 20, "wires": [ [ "1b3a6cc7327984ea" ] ] }, { "id": "717b0703.8c9fa8", "type": "server", "name": "Home Assistant", "version": 2, "addon": true, "rejectUnauthorizedCerts": true, "ha_boolean": "y|yes|true|on|home|open", "connectionDelay": true, "cacheJson": true, "heartbeat": false, "heartbeatInterval": 30 } ]

Any help appreciated!

Scrolling does not work when set to "on"

Hi, I updated to 0.3.7. Brightness and sleep works fine again, scrolling works wenn set to "auto". Thanks for fixing it!
Scrolling does not work when set to "on", it displays a static text then. I am fine with the auto setting :)

btw. the latest version does not show up in the node-red palette, I updated with npm install.

Originally posted by @hamster65 in #2 (comment)

Allow distinct modifications to screen playlist

Currently, you only can redefine the playlist as a whole.
If you want to remove a screen from the list, you have to state the remaining screens. If you want to add screens to the list, you have to state all screens.

It would be great to have nodes that say:

  • add screen X (if not already existing)
  • remove screen Y (if existing)
    By this, for example, temporary screens (It will rain at 12.15pm) can be added and removed automatically.

Rednode flow stopped working

Hi!
My Pixelit worked perfectly until I updated my CodeRed on HA (10.7.0.5). Since then, I have received an error message in the core node saying that it cannot connect with the HTTP API. The rest of the flow seems to work well, but the screen does not display the content.

I checked the IP address and options on the WebUI, but everything has stayed the same. HA sees my Pixelit via MQQT (I can still read the sensors and switch it on/off).

Has this happened to others? Do you know what the problem is and how to fix it?

This is my flow:
2024-02-09_092026

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.