pixelit-project / node-red-contrib-pixelit Goto Github PK
View Code? Open in Web Editor NEWNode-RED nodes to control the Pixel It easily and comfortably.
Home Page: https://github.com/o0shojo0o/PixelIt/discussions
License: MIT License
Node-RED nodes to control the Pixel It easily and comfortably.
Home Page: https://github.com/o0shojo0o/PixelIt/discussions
License: MIT License
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.
Hi,
I updated the node and now I see the following:
I restarted node-red, rebooted the pi and re-deployd the whole workspace.... no luck.
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
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
`
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
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;
}`
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...
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!
Core node causes the following error in node red debug, when context is set to filesystem as default.
"Context 35ecb3fe.70a82c:43c26ad8e4dbc534 contains a circular reference that cannot be persisted"
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)
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:
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?
https://github.com/o0shojo0o/PixelIt/issues/5
{"setGpio": {"gpio":14,"set":true,"duration":1000}}
{"setGpio": {"gpio":14,"set":true}}
{"setGpio": {"gpio":14,"set":false}}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.