HomeGenie Forum
General Category => Troubleshooting and Support => Topic started by: emerich on November 01, 2015, 01:32:11 PM
-
Hi,
I constantly get the messege Event stream connected and half a second later Event stream disconnected. I don't see any other messages beside these two.
I allready did a total uninstall and install of the software but without any change.
Anny suggestions?
Thanks Christian
-
Read this:
http://www.homegenie.it/forum/index.php?topic=1141.msg6914#msg6914 (http://www.homegenie.it/forum/index.php?topic=1141.msg6914#msg6914)
-
Hello,
I already tried to delete the homegenie directory and reinstalled on a "clean" System.
Still the same error, When ever I switch one of my modules I get the disconnect message and I think therefor the update uf the display is also missing.
br. Christian
-
Hi Christian,
the solution is to change your Raspberry Pi defalt locale to en_US.UTF-8.
Another solution could be upgrading mono to latest 4.x version.
http://www.mono-project.com/docs/getting-started/install/linux/ (http://www.mono-project.com/docs/getting-started/install/linux/)
g.
-
I seem to see the event stream disconnect/reconnect on my RPi from time to time and I have en_US.UTF-8 as my locale. If the issue is constant then I don't see that.
-
hi bkenobi,
is there any error reported in the log?
-
Further info about the error "Input string was not in the correct format":
http://raspberrypi.stackexchange.com/questions/15051/parsing-double-in-mono-c-fails (http://raspberrypi.stackexchange.com/questions/15051/parsing-double-in-mono-c-fails)
g.
-
[SOLUTION]
Change the startup.sh file like this:
sudo nano /usr/local/bin/homegenie/startup.sh
startup.sh
#!/bin/sh
#
# Usage: startup_debug.sh <homegenie_folder_path>
# Example: ./startup_debug.sh /usr/local/bin/homegenie
#
cd "`dirname \"$0\"`"
if [ -f /usr/bin/mono ]
then
MONO="LC_ALL=en_US.UTF-8 /usr/bin/mono"
else
MONO="LC_ALL=en_US.UTF-8 /usr/local/bin/mono"
fi
EXITCODE="1"
while [ "$EXITCODE" = "1" ]; do
if [ -z "$1" ]
then
sudo $MONO HomeGenie.exe
else
cd $1
sudo $MONO HomeGenie.exe >/dev/null 2>&1
fi
EXITCODE="$?"
echo "Exit code: $EXITCODE"
done
Reboot your Raspberry Pi.
Notice the LC_ALL=en_US.UTF-8 in front of the mono executable path. This is the solution.
I will apply this fix to the next HG update.
Hope this will solve the issue for you all.
Cheers,
g.
-
:) Thanks Gene for your investigation and the fix!!!! :)
br. Christian