Page 2 of 3

Re: Guide install HomeAutomation on Raspberry PI 2 Modell B

Posted: Fri Mar 17, 2023 9:45 am
by tom_rosenback
lorde wrote:Any idea ? :)
You want rows to or from the logfile?

Re: Guide install HomeAutomation on Raspberry PI 2 Modell B

Posted: Fri Mar 17, 2023 9:45 am
by robban035
Hi,
I did follow the guide but got stuck at

----
sudo chown -R root:www-data HomeAutomation/

Surf to the HomeAutomation
http://homepi/HomeAutomation
----
and when i run the setup i get this
----
Could not open '/var/www/HomeAutomation/system/mysql_settings.php' for writing
----
when i list the files in /var/www/HomeAutomation/system/ there is no mysql_settings.php

any hints on what is wrong?

Re: Guide install HomeAutomation on Raspberry PI 2 Modell B

Posted: Fri Mar 17, 2023 9:45 am
by lorde
I think You can use WinSCP to modify the owner and the rights. You have to be logged-in as root (in WinSCP )
I wish i could help better ...

Re: Guide install HomeAutomation on Raspberry PI 2 Modell B

Posted: Fri Mar 17, 2023 9:45 am
by lorde
tom_rosenback wrote:
lorde wrote:Any idea ? :)
You want rows to or from the logfile?
To the logfile. I would like to have for instance 1 row / hour. Possible? :?

Re: Guide install HomeAutomation on Raspberry PI 2 Modell B

Posted: Fri Mar 17, 2023 9:45 am
by tom_rosenback
robban035 wrote:Hi,
I did follow the guide but got stuck at

----
sudo chown -R root:www-data HomeAutomation/

Surf to the HomeAutomation
http://homepi/HomeAutomation
----
and when i run the setup i get this
----
Could not open '/var/www/HomeAutomation/system/mysql_settings.php' for writing
----
when i list the files in /var/www/HomeAutomation/system/ there is no mysql_settings.php

any hints on what is wrong?
As it suggests HA cannot write/create the file which means that www-data doesn't have sufficient permissions. Try chmod command.

Re: Guide install HomeAutomation on Raspberry PI 2 Modell B

Posted: Fri Mar 17, 2023 9:45 am
by tom_rosenback
lorde wrote:
tom_rosenback wrote:
lorde wrote:Any idea ? :)
You want rows to or from the logfile?
To the logfile. I would like to have for instance 1 row / hour. Possible? :?
I seem to have forgotten what sensors you have that you want to read but can you try to explain exactly what you want to achieve? Parser does not write anything to any log file regarding sensor readings this you have to setup separately.

Re: Guide install HomeAutomation on Raspberry PI 2 Modell B

Posted: Fri Mar 17, 2023 9:45 am
by lorde
tom_rosenback wrote:can you try to explain exactly what you want to achieve?
I would like to log the temperatures (some of them). I would like to make them available immediately (in written, not on the graph) and separate from others ( for instance if i like to see how was moving outside temp last night, i want to open the log file for that purpose and read )
Even more advanced, i like to log any temperature witch is outside some boundaries (example: if basement temp dropped below 10, write a line in log file)

Question is how to write in the log file, and/or what exactly is the purpose of the log file (how was meant to be used) ??


Question 2:
I want to heat up a room, between 7 and 8 o' clock in morning, up to 20 dgr. C. How is correct to do:
A.
Static ON 07:00
Dynamic ON if t < 15
Dynamic OFF if t > 20
Static OFF 08:00

B.
Static ON 07:00
Dynamic OFF if t > 20

Static OFF 08:00

Re: Guide install HomeAutomation on Raspberry PI 2 Modell B

Posted: Fri Mar 17, 2023 9:45 am
by lorde
lorde wrote:
tom_rosenback wrote:can you try to explain exactly what you want to achieve?
I would like to log the temperatures (some of them). I would like to make them available immediately (in written, not on the graph) and separate from others ( for instance if i like to see how was moving outside temp last night, i want to open the log file for that purpose and read )
Even more advanced, i like to log any temperature witch is outside some boundaries (example: if basement temp dropped below 10, write a line in log file)

Question is how to write in the log file, and/or what exactly is the purpose of the log file (how was meant to be used) ??


Question 2:
I want to heat up a room, between 7 and 8 o' clock in morning, up to 20 dgr. C. How is correct to do, A or B ? :
A.
Static ON 07:00
Dynamic ON if t < 15
Dynamic OFF if t > 20
Static OFF 08:00

B.
Static ON 07:00
Dynamic OFF if t > 20

Static OFF 08:00

Re: Guide install HomeAutomation on Raspberry PI 2 Modell B

Posted: Fri Mar 17, 2023 9:45 am
by tom_rosenback
lorde wrote:
lorde wrote:
tom_rosenback wrote:can you try to explain exactly what you want to achieve?
I would like to log the temperatures (some of them). I would like to make them available immediately (in written, not on the graph) and separate from others ( for instance if i like to see how was moving outside temp last night, i want to open the log file for that purpose and read )
Even more advanced, i like to log any temperature witch is outside some boundaries (example: if basement temp dropped below 10, write a line in log file)

Question is how to write in the log file, and/or what exactly is the purpose of the log file (how was meant to be used) ??


Question 2:
I want to heat up a room, between 7 and 8 o' clock in morning, up to 20 dgr. C. How is correct to do, A or B ? :
A.
Static ON 07:00
Dynamic ON if t < 15
Dynamic OFF if t > 20
Static OFF 08:00

B.
Static ON 07:00
Dynamic OFF if t > 20

Static OFF 08:00
Logfiöes which are inside of parser folder are only examples of what the parser is able to read and parse. Weather parser is not ment to be used for writing to these logfiles. Possible to do with some code work but as I said weather parser is only ment for reading not writing to these logfiles.

Regarding your dynamic schedule, both are correct only differnce is that the second one will turn off immidiately when temp is over 20, the other one will turn off at 0800 even if temp is below 20.

Re: Guide install HomeAutomation on Raspberry PI 2 Modell B

Posted: Fri Mar 17, 2023 9:45 am
by lorde
Hello to all!
Clear Log not working anymore. Do you know where is the log file located, i want to empty-it manually.

Thanks !

Re: Guide install HomeAutomation on Raspberry PI 2 Modell B

Posted: Fri Mar 17, 2023 9:45 am
by tom_rosenback
lorde wrote:Hello to all!
Clear Log not working anymore. Do you know where is the log file located, i want to empty-it manually.

Thanks !
You are talking about a physical file? These you need to delete manually.

Re: Guide install HomeAutomation on Raspberry PI 2 Modell B

Posted: Fri Mar 17, 2023 9:45 am
by lorde
tom_rosenback wrote:
lorde wrote:Hello to all!
Clear Log not working anymore. Do you know where is the log file located, i want to empty-it manually.

Thanks !
You are talking about a physical file? These you need to delete manually.
Yes , i was talking about physical file. However, i solved the problem, i was loged-on as "local" instead of "admin"

Re: Guide install HomeAutomation on Raspberry PI 2 Modell B

Posted: Fri Mar 17, 2023 9:45 am
by murre87
Installationscript for HA & Tellstick at Raspberry PI.

https://github.com/ollan/rpi-tellstick-homeautomation

Re: Guide install HomeAutomation on Raspberry PI 2 Modell B

Posted: Fri Mar 17, 2023 9:45 am
by lorde
Hello there !

Any ideea how to fix the clock ?
The time shows 3H40min less ...

Thank you in advance !!!

Re: Guide install HomeAutomation on Raspberry PI 2 Modell B

Posted: Fri Mar 17, 2023 9:45 am
by tom_rosenback
lorde wrote:Hello there !

Any ideea how to fix the clock ?
The time shows 3H40min less ...

Thank you in advance !!!
Hi,

Have you checked php.ini setting for timezone?