Hello,
I am trying to add changes to a .cpp file in the hardware dir
but i cannot get this to work.
I have Debian 11 and compiled Domoticz (V2022.2 (build 14784)) according to this guide: https://www.domoticz.com/wiki/Build_Dom ... rom_source
I open up lets say /dev-domoticz/hardware/SatelIntegra.cpp and change some log lines and saved them. then preform:
$ sudo make
i see that the file i have edited is changed and being added
after that i preform:
$ ./domoticz
but do not see my changes i have added at the log line.
I think i am missing a step.
Best regards,
Jero
Change Hardware .cpp file
Moderator: leecollings
-
- Posts: 15
- Joined: Sunday 03 March 2019 12:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.10532
- Location: the Netherlands
- Contact:
Change Hardware .cpp file
OrangePi Plus 2e with Armbian Buster.
1x Evohome setup (6x radiators), 1x Tuya floorheater bathroom,
1x RGBW led strip, Satel INTEGRA 256+
IKEA-Trädfri Gateway with 48 controlable lights COAP-Client,
SolarEdge inverter, homebrew P1 meter.
1x Evohome setup (6x radiators), 1x Tuya floorheater bathroom,
1x RGBW led strip, Satel INTEGRA 256+
IKEA-Trädfri Gateway with 48 controlable lights COAP-Client,
SolarEdge inverter, homebrew P1 meter.
- waltervl
- Posts: 5148
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Change Hardware .cpp file
First, I never build domoticz myself so perhaps I am saying something stupid....
Do you start ./domoticz in the /dev-domoticz (build)folder or in the /domoticz (installed) folder? It should be in de dev-domoticz folder i suppose.
Is the domoticz executable modified in the folder you have manualy started domoticz?
Do you start ./domoticz in the /dev-domoticz (build)folder or in the /domoticz (installed) folder? It should be in de dev-domoticz folder i suppose.
Is the domoticz executable modified in the folder you have manualy started domoticz?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 15
- Joined: Sunday 03 March 2019 12:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.10532
- Location: the Netherlands
- Contact:
Re: Change Hardware .cpp file
started it from dev-domoticz and also i need to start it manually
OrangePi Plus 2e with Armbian Buster.
1x Evohome setup (6x radiators), 1x Tuya floorheater bathroom,
1x RGBW led strip, Satel INTEGRA 256+
IKEA-Trädfri Gateway with 48 controlable lights COAP-Client,
SolarEdge inverter, homebrew P1 meter.
1x Evohome setup (6x radiators), 1x Tuya floorheater bathroom,
1x RGBW led strip, Satel INTEGRA 256+
IKEA-Trädfri Gateway with 48 controlable lights COAP-Client,
SolarEdge inverter, homebrew P1 meter.
-
- Posts: 44
- Joined: Saturday 26 August 2017 20:13
- Target OS: Linux
- Domoticz version: 2023.2
- Contact:
Re: Change Hardware .cpp file
It should work like that. When you start re-built domoticz, in startup logs, do you see "-modified" flag added in "Build Hash:" message? It indicates that you really started domoticz built from modified source files, in example:
2022-12-02 17:03:06.906 Status: Domoticz V2022.2 (build 14789) (c)2012-2022 GizMoCuz
2022-12-02 17:03:06.906 Status: Build Hash: e51770e85-modified, Date: 2022-12-02 09:15:37
Domoticz 2023.2 on Odroid M1 and Armbian
MySensors (RFM69 Serial GW): bunch of DIY sensors/devices
Zwave (Z-Wave.me RaZberry board): Danfoss devices
Zigbee (Sonoff Dongle Plus): IKEA, Tesla devices
MySensors (RFM69 Serial GW): bunch of DIY sensors/devices
Zwave (Z-Wave.me RaZberry board): Danfoss devices
Zigbee (Sonoff Dongle Plus): IKEA, Tesla devices
-
- Posts: 15
- Joined: Sunday 03 March 2019 12:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.10532
- Location: the Netherlands
- Contact:
Re: Change Hardware .cpp file
there is the issue, i am getting:ferrosk wrote: ↑Friday 02 December 2022 17:24It should work like that. When you start re-built domoticz, in startup logs, do you see "-modified" flag added in "Build Hash:" message? It indicates that you really started domoticz built from modified source files, in example:
2022-12-02 17:03:06.906 Status: Domoticz V2022.2 (build 14789) (c)2012-2022 GizMoCuz
2022-12-02 17:03:06.906 Status: Build Hash: e51770e85-modified, Date: 2022-12-02 09:15:37
2022-12-05 08:15:56.161 Status: Domoticz V2022.2 (build 14784) (c)2012-2022 GizMoCuz
2022-12-05 08:15:56.161 Status: Build Hash: e04d1d3e2, Date: 2022-11-29 07:53:03
2022-12-05 08:15:56.161 Status: Startup Path: /home/domoticz/dev-domoticz/
Without -modified. i have restarted the server and did the steps again it does not change to modified.
OrangePi Plus 2e with Armbian Buster.
1x Evohome setup (6x radiators), 1x Tuya floorheater bathroom,
1x RGBW led strip, Satel INTEGRA 256+
IKEA-Trädfri Gateway with 48 controlable lights COAP-Client,
SolarEdge inverter, homebrew P1 meter.
1x Evohome setup (6x radiators), 1x Tuya floorheater bathroom,
1x RGBW led strip, Satel INTEGRA 256+
IKEA-Trädfri Gateway with 48 controlable lights COAP-Client,
SolarEdge inverter, homebrew P1 meter.
- gizmocuz
- Posts: 2350
- Joined: Thursday 11 July 2013 18:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Top of the world
- Contact:
Re: Change Hardware .cpp file
I don't think you need to issue any 'sudo' command when building
Please note that the executable could be build inside the 'bin' folder
Please note that the executable could be build inside the 'bin' folder
Quality outlives Quantity!
-
- Posts: 15
- Joined: Sunday 03 March 2019 12:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.10532
- Location: the Netherlands
- Contact:
Re: Change Hardware .cpp file
Thank you for pointing out the "bin" folder.
this does the trick.
i can now see and test my changes. and they are working.
OrangePi Plus 2e with Armbian Buster.
1x Evohome setup (6x radiators), 1x Tuya floorheater bathroom,
1x RGBW led strip, Satel INTEGRA 256+
IKEA-Trädfri Gateway with 48 controlable lights COAP-Client,
SolarEdge inverter, homebrew P1 meter.
1x Evohome setup (6x radiators), 1x Tuya floorheater bathroom,
1x RGBW led strip, Satel INTEGRA 256+
IKEA-Trädfri Gateway with 48 controlable lights COAP-Client,
SolarEdge inverter, homebrew P1 meter.
Who is online
Users browsing this forum: No registered users and 0 guests