HomeAutomation v3.0

http://karpero.mine.nu/ha

Moderators: Daniel, tom_rosenback, Telldus

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

HomeAutomation v3.0

Post by tom_rosenback »

tom_rosenback wrote:Nu har den dag som många av er förhoppningsvis väntat på. HomeAutomation 3.0 har under en längre tid varit under utveckling men av flera olika orsaker har det dragit ut på tiden att få den release klar (husbygge, familjetillökning osv), men nu har vi äntligen kommit så långt så att vi anser den klar för allmänheten också :D

Det har hänt en hel del bakom kulisserna i 3.0, men även i gränssnittet har det skett en hel del. Den största biten är nog det mobila gränssnittet. I 3.0 kan man även bygga egna systemplugins så att man kan använda sig av andra system än Telldus om man så känner för det, kommer skriva ihop en liten "for-dummies" angående detta, i installationen kommer det med bland annat tdtool pluginen. Vi har även integrerat parsern i HA nu så den behöver man inte längre ladda ner separat. APIt har fått sig en omstrukturering och nu finns det även en liten dokumentation hur man anropar APIt (ex till tredjeparts applikationer, appar osv). I kort är det vad som skett, vill man veta mera exakt vad som ändrats så kan man gå in på http://karpero.mine.nu/mantis och läsa i ChangeLog.

Om ni hittar något konstigt eller har några frågor angående 3.0 releasen så ropa till så löser vi det!

Här hittar ni nedladdningslänken: http://karpero.mine.nu/ha/index.php?page=download
tom_rosenback wrote:Now has the day come that hopefully many of you have been waiting for! HomeAutomation 3.0 has been for a long time under development and the timetable has just stretched for some reason or another (building house, newborn daughter etc) but now we have come that far that we feel 3.0 is ready for public release too. :D

There has been a lot going on behind the scenes in 3.0 but also the GUI has gotten some attention. Largest bit is the mobile userinterface. In 3.0 one can also build own systemplugins så that one can use other systems than Telldus too, I´ll write a short "for-dummies" how to do this. In the installation is included tdtool and some other plugins that we feel can be useful right from the start. The Weather Parser has also been integrated into HA now so no need the download it separately anymore. The API has been restructured and refactored, also some new functionality has been added. You can now also find a short documentation on how to do requests against the API. That was just a summary of what has happened, do you feel that you want more info about what exactly has been changed, have a look in the ChangeLog here http://karpero.mine.nu/mantis

If you find anything wierd or have any questions about the 3.0 release, just give me a ping so that we can solve it.

The download link can be found here: http://karpero.mine.nu/ha/index.php?page=download
//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
niclasf
Posts: 163
Joined: Fri Mar 17, 2023 9:45 am
Contact:

Re: HomeAutomation v3.0

Post by niclasf »

Perfekt!
Ska testa direkt.

Tack för din insats!
niclasf
Posts: 163
Joined: Fri Mar 17, 2023 9:45 am
Contact:

Re: HomeAutomation v3.0

Post by niclasf »

I try to do a clean install, but I get into trouble in Step 2 of 6 Mysql settings.
I have tried two alternatives, but none of them work.

First I drop the old homeautomation mysql database, drop database homeautomation;
I create a new, create database homeautomation;
and do the GRANT ALL ON-stuff.

I unpack the 3.0-version and move+chown it to /var/www/

In Step 2 I fill in localhost, homeautomation, <username>, <passwd>
and press "Test Mysql connection"
Then I get "Couldn't establish contact with database, please check the settings."

To ensure nothing has gone wrong with the database creation I try 2.0.2-version instead.
It passes Step 2 without any problems. This time I save the generated mysql_settings.php-file.

I go back to the 3.0-version and this time I copy the mysql_settings.php-file from the 2.0.2-version into the 3.0-version.
Same result after pressing the "Test Mysql connection"

How can I get more traces of what is going on?
tom_rosenback
Posts: 779
Joined: Fri Mar 17, 2023 9:45 am
Contact:

Re: HomeAutomation v3.0

Post by tom_rosenback »

niclasf wrote:I try to do a clean install, but I get into trouble in Step 2 of 6 Mysql settings.
I have tried two alternatives, but none of them work.

First I drop the old homeautomation mysql database, drop database homeautomation;
I create a new, create database homeautomation;
and do the GRANT ALL ON-stuff.

I unpack the 3.0-version and move+chown it to /var/www/

In Step 2 I fill in localhost, homeautomation, <username>, <passwd>
and press "Test Mysql connection"
Then I get "Couldn't establish contact with database, please check the settings."

To ensure nothing has gone wrong with the database creation I try 2.0.2-version instead.
It passes Step 2 without any problems. This time I save the generated mysql_settings.php-file.

I go back to the 3.0-version and this time I copy the mysql_settings.php-file from the 2.0.2-version into the 3.0-version.
Same result after pressing the "Test Mysql connection"

How can I get more traces of what is going on?
Hi,

Thank you for your input!

I'm suspecting that the response from the Mysql check is corrupt by some error message from PHP. Could you please help us debug this by opening the developer console in Chrome (on Windows by clicking F12, on Mac I'm not sure about what key combination is used). When you have the developer console open do the following:
- Click Net tab
- Click Mysql test connection button
- A new row should appear in the console related to the MySql test, click this
- Click Response tab
- Copy paste the response here

Also have a look at this image which explains the same procedure https://developers.google.com/chrome-de ... sponse.png

If you can't get the developer console output just let me know and I'll help you.
//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
niclasf
Posts: 163
Joined: Fri Mar 17, 2023 9:45 am
Contact:

Re: HomeAutomation v3.0

Post by niclasf »

Thanks for the respons.

Here is what I did.
I followed your instruction and got the following error message from php,
The error message
The error message
Screen Shot 2014-02-08 at 07.59.13.png (63.23 KiB) Viewed 20649 times
I installed the GD-support with,

Code: Select all

# apt-get install php5-gd
and restarted the http-server,

Code: Select all

# /etc/init.d/lighttpd restart
That did the trick. Thanks for the support! And thanks for a great piece of software!
tom_rosenback
Posts: 779
Joined: Fri Mar 17, 2023 9:45 am
Contact:

Re: HomeAutomation v3.0

Post by tom_rosenback »

niclasf wrote:Thanks for the respons.

Here is what I did.
I followed your instruction and got the following error message from php,
Screen Shot 2014-02-08 at 07.59.13.png
I installed the GD-support with,

Code: Select all

# apt-get install php5-gd
and restarted the http-server,

Code: Select all

# /etc/init.d/lighttpd restart
That did the trick. Thanks for the support! And thanks for a great piece of software!
Great! Thanks for the solution too, will add PHP5-GD as a requirement in the first step of installation for coming releases.
//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
guom
Posts: 8
Joined: Fri Mar 17, 2023 9:45 am

Re: HomeAutomation v3.0

Post by guom »

Hi,

Great software.

My installation stopped at step 2 as well. But I do have GD installed.

I tried to see if my GD was installed correctly, so I commented out my php.ini file:

Code: Select all

;extension=php_gd2.dll
and restartet apache, the response looked like this:

JpGraph Error: 25001 This PHP installation is not configured with the GD library. Please recompile PHP with GD support to run JpGraph. (Neither function imagetypes() nor imagecreatefromstring() does exist)

then I removed the comment, so my response tab seems a little bit different.

Code: Select all

{"success":false}
I have not deleted the old homeautomation database, I tried to create a new one called homeautomation2, but it seems like I get the same response: Couldn't establish contact with database, please check the settings. I'm running on windows 7.
tom_rosenback
Posts: 779
Joined: Fri Mar 17, 2023 9:45 am
Contact:

Re: HomeAutomation v3.0

Post by tom_rosenback »

guom wrote:Hi,

Great software.

My installation stopped at step 2 as well. But I do have GD installed.

I tried to see if my GD was installed correctly, so I commented out my php.ini file:

Code: Select all

;extension=php_gd2.dll
and restartet apache, the response looked like this:

JpGraph Error: 25001 This PHP installation is not configured with the GD library. Please recompile PHP with GD support to run JpGraph. (Neither function imagetypes() nor imagecreatefromstring() does exist)

then I removed the comment, so my response tab seems a little bit different.

Code: Select all

{"success":false}
I have not deleted the old homeautomation database, I tried to create a new one called homeautomation2, but it seems like I get the same response: Couldn't establish contact with database, please check the settings. I'm running on windows 7.
The success: false indicates that there is some problems with the connection. Are you sure you have correct credentials? Can you login in with them through eg mysql CLI-tool?
//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
guom
Posts: 8
Joined: Fri Mar 17, 2023 9:45 am

Re: HomeAutomation v3.0

Post by guom »

Yes I can, and I installed v.2.0.2 yesterday, and that went without any problems.

So I just figured out that maybe something was wrong with my local mysql. So I rebooted the server and got Mysql settings ok :)
When I pres "Next step" I got a pop up in chrome saying that "The database is now emptied and recreated. OK?"

I press OK, and nothing happens, and when I look at the database, it isn't emptied. So I tried with a new created database as well, but nothing happens with the new database either, I'm still stuck at step 2.
tom_rosenback
Posts: 779
Joined: Fri Mar 17, 2023 9:45 am
Contact:

Re: HomeAutomation v3.0

Post by tom_rosenback »

guom wrote:Yes I can, and I installed v.2.0.2 yesterday, and that went without any problems.

So I just figured out that maybe something was wrong with my local mysql. So I rebooted the server and got Mysql settings ok :)
When I pres "Next step" I got a pop up in chrome saying that "The database is now emptied and recreated. OK?"

I press OK, and nothing happens, and when I look at the database, it isn't emptied. So I tried with a new created database as well, but nothing happens with the new database either, I'm still stuck at step 2.
The page doesn´t load at all or?
//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
guom
Posts: 8
Joined: Fri Mar 17, 2023 9:45 am

Re: HomeAutomation v3.0

Post by guom »

Correct, nothing happens after jeg pressed OK.
Any log I can look at?
tom_rosenback
Posts: 779
Joined: Fri Mar 17, 2023 9:45 am
Contact:

Re: HomeAutomation v3.0

Post by tom_rosenback »

guom wrote:Correct, nothing happens after jeg pressed OK.
Any log I can look at?
This seems like a Javascript problem then, the button "Next" changes state from disabled to enabled, right?

Not really any log to look in if the problem is with JS, I could have a look if you let me in, email me.
//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
guom
Posts: 8
Joined: Fri Mar 17, 2023 9:45 am

Re: HomeAutomation v3.0

Post by guom »

Tom, How can I send you a PM?
Or should I use http://karpero.mine.nu/ha/index.php?pag ... t&hl=en_US ?

And yes, it seems like a js problem..
tom_rosenback
Posts: 779
Joined: Fri Mar 17, 2023 9:45 am
Contact:

Re: HomeAutomation v3.0

Post by tom_rosenback »

guom wrote:Tom, How can I send you a PM?
Or should I use http://karpero.mine.nu/ha/index.php?pag ... t&hl=en_US ?

And yes, it seems like a js problem..
The link you sent works, my email is also found in any of the source files.
//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
guom
Posts: 8
Joined: Fri Mar 17, 2023 9:45 am

Re: HomeAutomation v3.0

Post by guom »

Thx for your quick reply. I have just sent you info about my server preference. Let me know if there is something more you need from me.
Post Reply