Great!
Do you think this is why I can’t get this working?
And I can’t get this to install node-red-contrib-dahua-device (node) - Node-RED
I’m using Hassio 0.97 on virtualbox.
Great!
Do you think this is why I can’t get this working?
And I can’t get this to install node-red-contrib-dahua-device (node) - Node-RED
I’m using Hassio 0.97 on virtualbox.
This is my config and it works for dahua mqtt motion sensor.
{
"disable_auto_token": false,
"system_packages": [
"musl",
"libcurl",
"python3-dev",
"curl-dev",
"gcc",
"g++"
],
"python_packages": [
"pip==19.2.1",
"pycurl"
],
"log_level": "info"
}
This is a general maintenance release.
Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work: https://patreon.com/frenck
Excellent, thankyou. I’m up and running again with Dahua to MQTT
Also thanks Franck for the updates. Awesome work!
This is a general maintenance release.
Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work: https://patreon.com/frenck
i think you should ask your question in the shedy topic.
because this problem is not with the addon, that is working as expected.
OK thank you
This is a general maintenance release.
Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work: https://patreon.com/frenck
Thanks for the great addon I’m getting some weird behaviour though; when using the same icon_on icon_off code (mdi-lamp), it works on 2 switch widgets which are coupled to a hass light object, but another switch widgets that’s coupled to a hass switch object ignores it. The same line also doesn’t work on script widgets.
This works:
light_piano:
widget_type: switch
title: PIANO LIGHT
entity: light.living_piano
icon_on: mdi-lamp
icon_off: mdi-lamp
icon_style_active: "font-size: 400%; margin-top: 15px; color: yellow;"
icon_style_inactive: "font-size: 400%; margin-top: 15px; color: white;"
This doesn’t:
light_hallway:
widget_type: switch
title: HALLWAY LIGHT
entity: switch.sb04
icon_on: mdi-lamp
icon_off: mdi-lamp
icon_style_active: "font-size: 400%; margin-top: 15px; color: yellow;"
icon_style_inactive: "font-size: 400%; margin-top: 15px; color: white;"
Nor this:
activate_lights:
widget_type: script
title: ILLUMINATE
entity: script.activate_living_room_lights
icon_on: mdi-lamp
icon_off: mdi-lamp
icon_style_active: "font-size: 400%; margin-top: 15px; color: green;"
icon_style_inactive: "font-size: 400%; margin-top: 15px; color: white;"
Any idea?
Hi
I am trying AppDaemon for the first time to create histograms of some MQTT received data in a page in HASSIO and I need to have numpy and matplotlib installed to make histograms.
I had compiling problem on kiwsolver which is I solved by adding gcc and g++ in the system packages. But now I have another problem… I put the log at the end of the message. I am using HA 101.3 on a Rapsberry Pi 3 and AppDaemon is version 4.1.0. Any idea on how to solve ?
Thanks,
Edoardo
Here is my config
{
"disable_auto_token": false,
"system_packages": [
"gcc",
"g++"
],
"python_packages": [
"numpy",
"matplotlib"
]
}
Log
System: HassOS 2.12 (armv7 / raspberrypi3)
Home Assistant version: 0.101.3
Supervisor version: 192
-----------------------------------------------------------
Please, share the above information when looking for help
or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing...
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] appdaemon.sh: executing...
[11:09:10] INFO: Updating Hass.io API token in AppDaemon with the current one...
fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/main/armv7/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/community/armv7/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/main/armv7/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/community/armv7/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/testing/armv7/APKINDEX.tar.gz
v3.10.3-36-g7cacb7930a [http://dl-cdn.alpinelinux.org/alpine/v3.10/main]
v3.10.3-20-g9fd7505b58 [http://dl-cdn.alpinelinux.org/alpine/v3.10/community]
v20191114-25-g2ca161d1bd [http://dl-cdn.alpinelinux.org/alpine/edge/main]
v20191114-21-g5295833160 [http://dl-cdn.alpinelinux.org/alpine/edge/community]
v20191114-19-g4d1df62185 [http://dl-cdn.alpinelinux.org/alpine/edge/testing]
OK: 24442 distinct packages available
(1/9) Installing binutils (2.32-r0)
(2/9) Installing gmp (6.1.2-r1)
(3/9) Installing isl (0.18-r0)
(4/9) Installing libgomp (8.3.0-r0)
(5/9) Installing libatomic (8.3.0-r0)
(6/9) Installing mpfr3 (3.1.5-r1)
(7/9) Installing mpc1 (1.1.0-r0)
(8/9) Installing libstdc++ (8.3.0-r0)
(9/9) Installing gcc (8.3.0-r0)
Executing busybox-1.30.1-r2.trigger
OK: 121 MiB in 43 packages
(1/3) Installing musl-dev (1.1.22-r3)
(2/3) Installing libc-dev (0.7.1-r0)
(3/3) Installing g++ (8.3.0-r0)
Executing busybox-1.30.1-r2.trigger
OK: 177 MiB in 46 packages
Looking in links: https://wheels.hass.io/alpine-3.10/armv7/
Collecting numpy
Downloading https://wheels.hass.io/alpine-3.10/armv7/numpy-1.17.4-cp37-none-any.whl (14.1MB)
Installing collected packages: numpy
Successfully installed numpy-1.17.4
You are using pip version 19.0.3, however version 19.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Looking in links: https://wheels.hass.io/alpine-3.10/armv7/
Collecting matplotlib
Downloading https://files.pythonhosted.org/packages/12/d1/7b12cd79c791348cb0c78ce6e7d16bd72992f13c9f1e8e43d2725a6d8adf/matplotlib-3.1.1.tar.gz (37.8MB)
Collecting cycler>=0.10 (from matplotlib)
Downloading https://files.pythonhosted.org/packages/f7/d2/e07d3ebb2bd7af696440ce7e754c59dd546ffe1bbe732c8ab68b9c834e61/cycler-0.10.0-py2.py3-none-any.whl
Collecting kiwisolver>=1.0.1 (from matplotlib)
Downloading https://files.pythonhosted.org/packages/16/e7/df58eb8868d183223692d2a62529a594f6414964a3ae93548467b146a24d/kiwisolver-1.1.0.tar.gz
Collecting pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 (from matplotlib)
Downloading https://files.pythonhosted.org/packages/c0/0c/fc2e007d9a992d997f04a80125b0f183da7fb554f1de701bbb70a8e7d479/pyparsing-2.4.5-py2.py3-none-any.whl (67kB)
Collecting python-dateutil>=2.1 (from matplotlib)
Downloading https://files.pythonhosted.org/packages/d4/70/d60450c3dd48ef87586924207ae8907090de0b306af2bce5d134d78615cb/python_dateutil-2.8.1-py2.py3-none-any.whl (227kB)
Requirement already satisfied: numpy>=1.11 in /usr/lib/python3.7/site-packages (from matplotlib) (1.17.4)
Requirement already satisfied: six in /usr/lib/python3.7/site-packages (from cycler>=0.10->matplotlib) (1.12.0)
Requirement already satisfied: setuptools in /usr/lib/python3.7/site-packages (from kiwisolver>=1.0.1->matplotlib) (40.8.0)
Installing collected packages: cycler, kiwisolver, pyparsing, python-dateutil, matplotlib
Running setup.py install for kiwisolver: started
Running setup.py install for kiwisolver: finished with status 'error'
Complete output from command /usr/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-_7eb00fh/kiwisolver/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-0bhwj9wa/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_ext
building 'kiwisolver' extension
creating build
creating build/temp.linux-armv7l-3.7
creating build/temp.linux-armv7l-3.7/py
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -DTHREAD_STACK_SIZE=0x100000 -fPIC -I. -I/usr/include/python3.7m -c py/kiwisolver.cpp -o build/temp.linux-armv7l-3.7/py/kiwisolver.o
py/kiwisolver.cpp:8:10: fatal error: Python.h: No such file or directory
#include <Python.h>
^~~~~~~~~~
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-_7eb00fh/kiwisolver/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-0bhwj9wa/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-_7eb00fh/kiwisolver/
You are using pip version 19.0.3, however version 19.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
[11:12:02] FATAL: Failed installing package matplotlib
[cont-init.d] appdaemon.sh: exited 1.
[cont-finish.d] executing container finish scripts...
[cont-finish.d] 99-message.sh: executing...
-----------------------------------------------------------
Oops! Something went wrong.
We are so sorry, but something went terribly wrong when
starting or running this add-on.
Be sure to check the log above, line by line, for hints.
-----------------------------------------------------------
[cont-finish.d] 99-message.sh: exited 0.
[cont-finish.d] appdaemon.sh: executing...
[cont-finish.d] appdaemon.sh: exited 0.
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
This is a general maintenance release, however, we gave it a major version bump, because of the upgrade to Python 3.8.
Furthermore, support for providing your own init_commands
via the add-on configuration has been added, allowing you to customize the environment AppDaemon runs in.
Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work:
https://github.com/sponsors/frenck or https://patreon.com/frenck
Will there ever be appdaemon 4 available?
You are asking the question in the wrong place @thundergreen. You should ask the maintainers of AppDaemon that question.
appdaemon is not fully compatible with python 3.8
so i would advise everybody not to use this release.
Got an example of that? besides some warnings, I haven’t found breaking things.
Are those documented issues? If not, I’m happy help and raise them so we can get them fixed.
i just asked other devs that know more about it then i do.
something with aiohttp.
even AD 4 is not compatible yet.
and i dont think that Andrew will make AD 3 updates anymore.
we are to close to releasing AD 4
In the same paragraph!
correct.
AD 4 will probably be released for python max 3.7.5
i am talking about initial release.
but its possible that those updates will be in the beta before release.