Guide install HomeAutomation on Raspberry PI 2 Modell B

http://karpero.mine.nu/ha

Moderators: Daniel, tom_rosenback, Telldus

tom_rosenback
Posts: 779
Joined: Fri Mar 17, 2023 9:45 am
Contact:

Re: Guide install HomeAutomation on Raspberry PI 2 Modell B

Post by tom_rosenback »

lorde wrote:Any idea ? :)
You want rows to or from the logfile?
//Tom

Senaste info och release om/av HomeAutomation hittas här http://karpero.mine.nu/ha
Latest info and release of HomeAutomation can be found here http://karpero.mine.nu/ha
robban035
Posts: 1
Joined: Fri Mar 17, 2023 9:45 am

Re: Guide install HomeAutomation on Raspberry PI 2 Modell B

Post 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?
lorde
Posts: 20
Joined: Fri Mar 17, 2023 9:45 am

Re: Guide install HomeAutomation on Raspberry PI 2 Modell B

Post 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 ...
Last edited by lorde on Fri Oct 02, 2015 5:05 am, edited 1 time in total.
lorde
Posts: 20
Joined: Fri Mar 17, 2023 9:45 am

Re: Guide install HomeAutomation on Raspberry PI 2 Modell B

Post 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? :?
tom_rosenback
Posts: 779
Joined: Fri Mar 17, 2023 9:45 am
Contact:

Re: Guide install HomeAutomation on Raspberry PI 2 Modell B

Post 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.
//Tom

Senaste info och release om/av HomeAutomation hittas här http://karpero.mine.nu/ha
Latest info and release of HomeAutomation can be found here http://karpero.mine.nu/ha
tom_rosenback
Posts: 779
Joined: Fri Mar 17, 2023 9:45 am
Contact:

Re: Guide install HomeAutomation on Raspberry PI 2 Modell B

Post 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.
//Tom

Senaste info och release om/av HomeAutomation hittas här http://karpero.mine.nu/ha
Latest info and release of HomeAutomation can be found here http://karpero.mine.nu/ha
lorde
Posts: 20
Joined: Fri Mar 17, 2023 9:45 am

Re: Guide install HomeAutomation on Raspberry PI 2 Modell B

Post 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
lorde
Posts: 20
Joined: Fri Mar 17, 2023 9:45 am

Re: Guide install HomeAutomation on Raspberry PI 2 Modell B

Post 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
tom_rosenback
Posts: 779
Joined: Fri Mar 17, 2023 9:45 am
Contact:

Re: Guide install HomeAutomation on Raspberry PI 2 Modell B

Post 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.
//Tom

Senaste info och release om/av HomeAutomation hittas här http://karpero.mine.nu/ha
Latest info and release of HomeAutomation can be found here http://karpero.mine.nu/ha
lorde
Posts: 20
Joined: Fri Mar 17, 2023 9:45 am

Re: Guide install HomeAutomation on Raspberry PI 2 Modell B

Post 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 !
tom_rosenback
Posts: 779
Joined: Fri Mar 17, 2023 9:45 am
Contact:

Re: Guide install HomeAutomation on Raspberry PI 2 Modell B

Post 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.
//Tom

Senaste info och release om/av HomeAutomation hittas här http://karpero.mine.nu/ha
Latest info and release of HomeAutomation can be found here http://karpero.mine.nu/ha
lorde
Posts: 20
Joined: Fri Mar 17, 2023 9:45 am

Re: Guide install HomeAutomation on Raspberry PI 2 Modell B

Post 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"
murre87
Posts: 28
Joined: Fri Mar 17, 2023 9:45 am

Re: Guide install HomeAutomation on Raspberry PI 2 Modell B

Post by murre87 »

Installationscript for HA & Tellstick at Raspberry PI.

https://github.com/ollan/rpi-tellstick-homeautomation
lorde
Posts: 20
Joined: Fri Mar 17, 2023 9:45 am

Re: Guide install HomeAutomation on Raspberry PI 2 Modell B

Post by lorde »

Hello there !

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

Thank you in advance !!!
tom_rosenback
Posts: 779
Joined: Fri Mar 17, 2023 9:45 am
Contact:

Re: Guide install HomeAutomation on Raspberry PI 2 Modell B

Post 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?
//Tom

Senaste info och release om/av HomeAutomation hittas här http://karpero.mine.nu/ha
Latest info and release of HomeAutomation can be found here http://karpero.mine.nu/ha
Post Reply