[NEW : APKG Domoticz 2020.2] x86_64 & Arm64 & armhf

home automation

Moderator: Lillian.W@AST

User avatar
father.mande
Posts: 1794
youtube meble na wymiar Warszawa
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

[NEW : APKG Domoticz 2020.2] x86_64 & Arm64 & armhf

Post by father.mande »

Hi,

After long delay (sorry), I am please to provide you Release Candidate APKG for Domoticz 2020.2 (and update)
==== ATTENTION TOTALLY NEW ARCHITECTURE
==== ==== based now on Ubuntu L.T.S. 20.04 ==== AT THIS TIME for x86_64 and Arm64 models ... but Armhf and i386 (32 bits) are on under construction.
==== ==== include support for Domoticz update / Domoticz managed as a service
==== ==== ALL secure libraries + Python (dev include) + C (dev include)
==== ==== NO OVERHEAD ... NO DOCKER / App-Image / etc. so without, also, for you an unclear level of security inside hidden docker / App-image ...
==== ==== FOR UPDATE purpose ... run as root (as before) BUT can be easily installed on a specific (to Ubuntu not to A.D.M.) user (I will write a specific post later)

==== ==== PLEASE, in case of update (from before 2020.2 version), do to a safe place a backup of your settings & plugins ... like this

Code: Select all

mkdir /share/Public/my_domo_save
cp -pP /usr/local/AppCentral/domoticz/domoticz.db* /share/Public/my_domo_save/
cp -pPR /usr/local/AppCentral/domoticz/plugins /usr/local/AppCentral/domoticz/
[Name]
Domoticz

[Version]
2020.2.1
======= SPECIFIC RECOMMENDATION to UPDATE FROM 2020.2.0 : viewtopic.php?f=166&t=11143
Ubuntu : new user don't have to install time zone software (it is now included)
APKG :
... solve bugs due to A.D.M. (Asustor) delivery using NON GNU tools (I don't see it before, because I add tools using Entware ... and forgot to verify)
... new set of command line interface
... ... MOST VALUED : status / ubuntu_set_time_zone / ubuntu_package_install (to add require package for some plugins) / update_ubuntu (to keep Ubuntu 20.04 L.T.S. updated and secure)

2020.2.0
APKG based on Ubuntu 20.04 L.T.S (chroot mount only)
... Domoticz in Ubuntu (/usr/local/AppCentral/domoticz/focal_{ARCH}/opt/domoticz ... ARCH= result of "uname -m" command (x86_64 / aarch64 / i386 / armv7l)
... start_up procedure :
... ... mount internal chroot require env.
... ... launch a tty survey to set correct access rigth to ttyUSB & ttyACM device when connected (udev is not correctly installed and access right are not correctly set in A.D.M. (delay max = 30 seconds and ONE command used ... so no load)
... ... launch domoticz in Ubuntu as a service (case using root or user after a small change)
... ... domoticz support update (release and beta) and restarting itself (upgrade compare to before)as a standard Ubuntu service.
... ... UPDATE from previous domoticz version is normally supported (I hope)

[Asustor models]
Intel x86_64 (tested on AS5002T)
Arm64 / aarch64 (tested on AS4002T)
arm 32bits / armv7l (tested on AS1002T)

[Port use for Web interface and technical stuff]
9980 (so do http://ip_or_name_of__nas:9980/ )
NO SSL (but you can add it)
loglevel 1 (in APKG folder) is error + info. ) ... in case of problem supply this file first

[Modify domoticz start options] ... ex. add SSL
In /usr/local/AppCentral/domoticz
ALL Ubuntu script (take care it's NOT A.D.M.) are in a folder name mybin (ex. for ex. domoticz.sh start / stop / restart scripts)
1) copy the shell you want to change to yourbin folder DON'T CHANGE SCRIPT NAME
2) do the modification
AT APKG start ... mybin is copied in Ubuntu ... yourbin in copied UNDER mybin in Ubuntu ... so your script overwrite my own script ... then start is really done

[Command line tools]

Code: Select all

 domoticz_mngt
Usage: /usr/local/bin/domoticz_mngt {start|stop|restart|status} for THE APKG ... (ubuntu + tty_survey + domoticz)
Usage: /usr/local/bin/domoticz_mngt {apkg_enable|apkg_disable} ... do same as AppCentral admin WebUI for managing APKG (include Web icon management
...... /usr/local/bin/domoticz_mngt {start_domoticz|stop_domoticz|restart_domoticz|reload_domoticz} Manage only domoticz IN Ubuntu 20.04 L.T.S already started by APKG
...... /usr/local/bin/domoticz_mngt {ubuntu_set_time_zone} ... set your OWN TIME ZONE ... if error (tzdata not installed ... use ubuntu_package_install)
...... /usr/local/bin/domoticz_mngt {update_ubuntu} ... update Ubuntu 20.02 libraries (security)
...... /usr/local/bin/domoticz_mngt {ubuntu_package_install} [Package_name] ... install a pakacge in Ubuntu (ex. tzdata) ... good to use update_ubuntu before to avoid version problems
...... /usr/local/bin/domoticz_mngt {enter_in_ubuntu} enter in chroot as root for maintenace purpose
...... /usr/local/bin/domoticz_mngt {save_domoticz_data} save domoticz.db* and plugins in /share/Public (dated folder created)
[Download]
Models x86_64 : https://father-mande.ovh/A/apkg/domotic ... x86-64.apk
Models aarch64 / arm64 : https://father-mande.ovh/A/apkg/domotic ... _arm64.apk
Models armv7l / arm : https://father-mande.ovh/A/apkg/domotic ... .1_arm.apk

Philippe.
NB open NEW post for problems ...
Last edited by father.mande on Tue Jun 02, 2020 1:26 am, edited 3 times in total.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
beberito
Posts: 17
Joined: Tue Dec 22, 2015 5:45 am

Re: [NEW : APKG Domoticz 2020.2] x86_64 & Arm64 first

Post by beberito »

Thanks a lot [THUMBS UP SIGN]
Will try it tomorrow [WINKING FACE]
ASUSTOR AS-5002T / 2 * Seagate NAS HDD 3 To (RAID 1)
melgi
Posts: 51
Joined: Sun Apr 17, 2016 3:52 am

Re: [NEW : APKG Domoticz 2020.2] x86_64 & Arm64 first

Post by melgi »

Philippe,

Merci beaucoup!!!!! I will read your instructions and try to install it on my NAS.

melgi
melgi
Posts: 51
Joined: Sun Apr 17, 2016 3:52 am

Re: [NEW : APKG Domoticz 2020.2] x86_64 & Arm64 first

Post by melgi »

Philippe,

It looks like I succesfully installed your Domoticz apk. I have control over my Philips Hue and RFXCom devices.

I was just going to write a message that my OpenZWave isn't working. I then deactivated it and re-activated it. Then I could select the correct port (/dev/ttyACM0) and now it's WORKING!

The log says this:
2020-05-25 20:32:52.925 Status: OpenZWave: using config in: /opt/domoticz/Config/
2020-05-25 20:32:52.926 Status: OpenZWave: Starting...
2020-05-25 20:32:52.926 Status: OpenZWave: Version: 1.6-1133-g2a76bdcd
2020-05-25 20:32:55.522 OpenZWave: Value_Added: Node: 6 (0x06), CommandClass: SWITCH BINARY, Label: Instance 1: Switch, Instance: 1, Index: 0
2020-05-25 20:32:55.522 OpenZWave: Value_Added: Node: 6 (0x06), CommandClass: SWITCH BINARY, Label: Instance 2: Switch, Instance: 2, Index: 0
2020-05-25 20:32:55.015 Status: OpenZWave: ManufacturerSpecificDB Ready
2020-05-25 20:32:55.183 Status: OpenZWave: Driver Ready
2020-05-25 20:32:55.183 Status: OpenZWave: New Node added. HomeID: 4234830920, NodeID: 1 (0x01)
2020-05-25 20:32:55.184 Status: OpenZWave: New Node added. HomeID: 4234830920, NodeID: 2 (0x02)
2020-05-25 20:32:55.184 Status: OpenZWave: New Node added. HomeID: 4234830920, NodeID: 3 (0x03)
2020-05-25 20:32:55.184 Status: OpenZWave: New Node added. HomeID: 4234830920, NodeID: 4 (0x04)
2020-05-25 20:32:55.184 Status: OpenZWave: New Node added. HomeID: 4234830920, NodeID: 5 (0x05)
2020-05-25 20:32:55.184 Status: OpenZWave: New Node added. HomeID: 4234830920, NodeID: 6 (0x06)
2020-05-25 20:32:55.973 Status: OpenZWave: Awake Nodes queried

My P1 Smart Meter (/dev/ttyUSB1) and RFXCom Transmitter (/dev/ttyUSB1) are working perfectly with your installation.

My Harmony Elite Hub is not working. When I look in the hardware settings in Domoticz I see there's no login name and password field that I think I should have to fill in for the Logitech Harmony.

Apart from this issue, it looks like your new APKG is working! Thank you! Thank you! Thank you!

I will try to update to beta later and see if the update works correctly for me.

EDIT: My Xiaomi Gateway is recognized again! Just restarted it and retyped in the password of the Gateway and it was recognized again. I then reset all my humidity sensors and one by one they appeared in my Domoticz!

Regards,

melgi
beberito
Posts: 17
Joined: Tue Dec 22, 2015 5:45 am

Re: [NEW : APKG Domoticz 2020.2] x86_64 & Arm64 first

Post by beberito »

I install this package and restore my database.
Everything is OK (with a restart) ;)
There's only one glitch : I'm in France, so i'm in UTC+2 but in domoticz, I'm in UTC (i.e, it's 14:04 but in domoticz, it's 12:04)
Do you know where i can setup this ?
ASUSTOR AS-5002T / 2 * Seagate NAS HDD 3 To (RAID 1)
User avatar
father.mande
Posts: 1794
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: [NEW : APKG Domoticz 2020.2] x86_64 & Arm64 first

Post by father.mande »

Hi Melgi,

In fact my basic configuration (for test) is VERY limited, so I don't have an exact view of the upgrade to 2020 mechanism and what we have to do for each hardware or devices
... I can only suggest you to have a look to the domoticz forum
... F.Y.I. my AS5002T is not stable, so I integrate on Armhf or Arm64 model and do a "clone" portage on x86_64 ...

If any error are reported to the domoticz log or to the syslog (dmesg command), I can try to analyse it and propose somethings ...

BUT thanks a lot for your experience return ...

Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
User avatar
father.mande
Posts: 1794
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: [NEW : APKG Domoticz 2020.2] x86_64 & Arm64 first

Post by father.mande »

Hi,
beberito wrote:I install this package and restore my database.
Everything is OK (with a restart) ;)
There's only one glitch : I'm in France, so i'm in UTC+2 but in domoticz, I'm in UTC (i.e, it's 14:04 but in domoticz, it's 12:04)
Do you know where i can setup this ?
OK it's a bug ... I forgot to manage tzdata (time zone) in the Ubuntu 20.04 L.T.S.
sorry ...
how-to do :
1 open a ssh terminal using root / your_admin_password (not admin please)
2 enter in Ubuntu environment :

Code: Select all

domoticz_mngt enter_in_ubuntu
3 to gain space, package list are removed so do :

Code: Select all

apt-get update
... eventually do an upgrade : apt-get -y dist-upgrade ... but it's not mandatory
4 install the missing software

Code: Select all

apt-get install tzdata
5 reconfigure Time Zone ... to your own location (ex. Europe / Paris)

Code: Select all

dpkg-reconfigure tzdata
... it's all
6 exit Ubuntu

Code: Select all

exit
... reload domoticz's dashboard ... on top left the date / time is now correct.

I am sorry to forgot this ... :oops:

Philippe.
Last edited by father.mande on Tue May 26, 2020 8:55 pm, edited 1 time in total.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
beberito
Posts: 17
Joined: Tue Dec 22, 2015 5:45 am

Re: [NEW : APKG Domoticz 2020.2] x86_64 & Arm64 first

Post by beberito »

father.mande wrote:Hi,
I am sorry to forgot this ... :oops:
Tu es tout pardonné :lol:

Thanks a lot, it's working perfectly now 8-)
ASUSTOR AS-5002T / 2 * Seagate NAS HDD 3 To (RAID 1)
melgi
Posts: 51
Joined: Sun Apr 17, 2016 3:52 am

Re: [NEW : APKG Domoticz 2020.2] x86_64 & Arm64 first

Post by melgi »

Philippe,

I can do the same right? Just perform your steps and then it should be ok? I see you're telling to use Ubuntu. I just perform the command "domoticz_mgt enter_in_ubuntu" and that will get me in the Ubuntu environment on my nas, right?

Verstuurd vanaf mijn SM-G986B met Tapatalk
Last edited by melgi on Tue May 26, 2020 11:20 pm, edited 1 time in total.
User avatar
father.mande
Posts: 1794
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: [NEW : APKG Domoticz 2020.2] x86_64 & Arm64 first

Post by father.mande »

Hi,
domoticz_mngt enter_in_ubuntu
is just a command line to switch from A.D.M. to the Ubuntu environment (even you don't know how and where) ... Ubuntu env. is a chroot a jail isolated (at minima) environment that use it's own context and libraries AND NOT the A.D.M. one.

... so just follow the command as is and normally you can move to the correct time zone (even your place in the world)

Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
Post Reply

Return to “Domoticz”