HomeGenie Forum

Automation Program Plugins and Wizard Scripting => Help => Topic started by: codedmind on November 23, 2015, 09:47:21 PM

Title: UPDATE GONE WRONG
Post by: codedmind on November 23, 2015, 09:47:21 PM
I there...

Today i do a stupid thing :/ i update the homegenie without verified if i have the backup of latest programs i create... and yep... i don't have them!

I do a update with dpkg -i package... and i loose everything... anyway to recover the old settings/programs?

Thanks a lot
Title: Re: UPDATE GONE WRONG
Post by: bkenobi on November 23, 2015, 11:11:06 PM
If you didn't create a backkup or make a copy the HG directory prior to installation, I don't know of any way to restore your files.  When you install from the command line, it overwrites all files.  Ive done this before so I can sympathize.  At this point, I keep a backup for pretty much any change I make to the system.
Title: Re: UPDATE GONE WRONG
Post by: codedmind on November 23, 2015, 11:44:11 PM
Bad vibes :(

And th latest version appear to have very bugs... at least the program.notify don't show up in the pop up... anything changed?

I have popup appear "HomeGenie Event Stream CONNECTED" and "HomeGenie Event Stream DISCONNECTED"
Title: Re: UPDATE GONE WRONG
Post by: bkenobi on November 25, 2015, 08:07:23 PM
There is a thread about the notifications.  I thought they were working on mine but can't remember the last time I saw one actually display so maybe they aren't.

I just wrote a test script and it did generate a popup.
Title: Re: UPDATE GONE WRONG
Post by: codedmind on November 26, 2015, 09:02:37 AM
I wil try it...

However i'm having a lot issues with versions 1.1 503, don't know if is because i'm running it on a rpi, but i always running it and don't have any issue.

Now wunderground isn't updating, i always have a popup about the event strem connect/disconnect don't have another popups etc...
Title: Re: UPDATE GONE WRONG
Post by: Gene on November 26, 2015, 10:13:36 AM
you need at least mono 3.2 installed.

g.
Title: Re: UPDATE GONE WRONG
Post by: codedmind on November 26, 2015, 10:17:18 AM
I have mono 3.2.8, the "default" of raspbian jessie

yesterday i try a repo with mono 4 to try and see if the problem is mono and a loose all the homegenie install again, because mono4 don't have corlib2 (i guess is that) so i return to default mono install
Title: Re: UPDATE GONE WRONG
Post by: Gene on November 26, 2015, 10:27:35 AM
Yesterday I downloaded latest raspbian wheezy, installed it with HG on my second RPi. The result is HG running with mono 3.2.8 and there's no such issue. Go figure out why.
Which locale have you set?
Type the "locale" command and paste the output here.

Code: [Select]
$ mono --version
Mono JIT compiler version 3.2.8 (Debian 3.2.8+dfsg-4+rpi1)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. [url=http://www.mono-project.com]www.mono-project.com[/url]
TLS:           __thread
SIGSEGV:       normal
Notifications: epoll
Architecture:  armel,vfp+hard
Disabled:      none
Misc:          softdebug
LLVM:          supported, not enabled.
GC:            sgen
$ locale
LANG=it_IT.UTF-8
LANGUAGE=
LC_CTYPE="it_IT.UTF-8"
LC_NUMERIC=it_IT.UTF-8
LC_TIME=it_IT.UTF-8
LC_COLLATE="it_IT.UTF-8"
LC_MONETARY=it_IT.UTF-8
LC_MESSAGES="it_IT.UTF-8"
LC_PAPER=it_IT.UTF-8
LC_NAME=it_IT.UTF-8
LC_ADDRESS=it_IT.UTF-8
LC_TELEPHONE=it_IT.UTF-8
LC_MEASUREMENT=it_IT.UTF-8
LC_IDENTIFICATION=it_IT.UTF-8
LC_ALL=

it would be also useful if you'd post the HG log. Always useful.....

g.
Title: Re: UPDATE GONE WRONG
Post by: codedmind on November 26, 2015, 10:33:28 AM
I will put it in a few hours.

But i'm running jessie not wheezy
Title: Re: UPDATE GONE WRONG
Post by: Gene on November 26, 2015, 10:36:26 AM
oh-oh... I then suppose that you need a wheezy install. But I wonder why dani (see the TESTING RELEASE thread) that is running jessie, is not having the "disconnected" issue.

g.
Title: Re: UPDATE GONE WRONG
Post by: codedmind on November 26, 2015, 02:28:55 PM
Code: [Select]
pi@raspberrypi ~ $ mono -V
Mono JIT compiler version 3.2.8 (Debian 3.2.8+dfsg-10)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. [url=http://www.mono-project.com]www.mono-project.com[/url]
TLS:           __thread
SIGSEGV:       normal
Notifications: epoll
Architecture:  armel,vfp+hard
Disabled:      none
Misc:          softdebug
LLVM:          supported, not enabled.
GC:            sgen
pi@raspberrypi ~ $ locale
LANG=pt_PT.UTF-8
LANGUAGE=
LC_CTYPE="pt_PT.UTF-8"
LC_NUMERIC="pt_PT.UTF-8"
LC_TIME="pt_PT.UTF-8"
LC_COLLATE="pt_PT.UTF-8"
LC_MONETARY="pt_PT.UTF-8"
LC_MESSAGES="pt_PT.UTF-8"
LC_PAPER="pt_PT.UTF-8"
LC_NAME="pt_PT.UTF-8"
LC_ADDRESS="pt_PT.UTF-8"
LC_TELEPHONE="pt_PT.UTF-8"
LC_MEASUREMENT="pt_PT.UTF-8"
LC_IDENTIFICATION="pt_PT.UTF-8"
LC_ALL=
pi@raspberrypi ~ $ uname -a
Linux raspberrypi 4.1.7+ #817 PREEMPT Sat Sep 19 15:25:36 BST 2015 armv6l GNU/Linux
pi@raspberrypi ~ $

other error i'm getting is witg weather modulr

Code: [Select]
2015-11-26 13:32:55.0917 Info HomeAutomation.HomeGenie.Automation 34 Automation Program Program.Notification {"Title":"Weather Underground ERROR!","Message":"Unable to get data from service. `string' does not contain a definition for `moon_phase'"}
Title: Re: UPDATE GONE WRONG
Post by: Gene on November 26, 2015, 02:42:38 PM
hi codemind,

I'm trying to find a work-around for the "connect/disconnect" error that will work on all platforms.
For the weather undergound, that error moslty indicates that the location name is not found by the weather service.
Try to put "auto" as the location.

g.
Title: Re: UPDATE GONE WRONG
Post by: codedmind on November 26, 2015, 02:43:54 PM
I change to paris, etc and always the same problem, something the result is ok, but the widget don't update itself...
Title: Re: UPDATE GONE WRONG
Post by: Gene on November 26, 2015, 03:07:51 PM
I've the fix for the connect/disconnect issue.
You can replace the attached file in the homegenie folder (stop hg, replace file and restart hg), or if you prefer just wait for next hg update (in a couple of days perhaps).

g.
Title: Re: UPDATE GONE WRONG
Post by: codedmind on November 26, 2015, 04:17:46 PM
This file solve the notification problem.
Thanks