more G-Labs products

Author Topic: Mirage setup  (Read 980 times)

July 19, 2016, 04:28:32 PM
Read 980 times

gbremmer

  • *
  • Information
  • Newbie
  • Posts: 23
Hi Gene,

I really like the Mirage. Would like to use it to enable / disable my alarm system.

I've build the application and run it under Windows, but somehow I cannot control the latest version of the Alarm system. Does it need an update?



July 19, 2016, 09:58:22 PM
Reply #1

gbremmer

  • *
  • Information
  • Newbie
  • Posts: 23
I can't run the application on the Raspberry.  I've downloaded the latest version, but I get the following error:
Unhandled Exception:
System.IO.FileNotFoundException: Could not load file or assembly 'HgClientLib, Version=1.0.6044.27497, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
File name: 'HgClientLib, Version=1.0.6044.27497, Culture=neutral, PublicKeyToken=null'
[ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: Could not load file or assembly 'HgClientLib, Version=1.0.6044.27497, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
File name: 'HgClientLib, Version=1.0.6044.27497, Culture=neutral, PublicKeyToken=null'

Now i'm trying to update mono and see if that helps:
https://neildanson.wordpress.com/2013/12/10/building-mono-on-a-raspberry-pi-hard-float/
« Last Edit: July 19, 2016, 10:33:35 PM by gbremmer »

July 21, 2016, 10:54:28 AM
Reply #2

gbremmer

  • *
  • Information
  • Newbie
  • Posts: 23
Dear, did anybody got this working? Do you need to build the application with a specific version?
It's not working and I don't know what i'm doing wrong.

July 21, 2016, 09:32:25 PM
Reply #3

gbremmer

  • *
  • Information
  • Newbie
  • Posts: 23
Got it working.

You need to download Microsoft Visual Studio.
Edit the following file:
HgSmartControl/Program.cs

and set the right IP. The file in the manual is incorrect.

Open the project and click on Build > Build Solution.

Copy the files to the raspberry in to the following folder
/home/pi/Homegenie

After that adjust the rasp-config that it boots in Console.

then do the following on the console:
Code: [Select]
sudo nano /etc/rc.localput these commands in the /etc/rc.local file:
Code: [Select]
export DISPLAY=:0
X -nocursor -s 0 -dpms&
mono /home/pi/Homegenie/HgSmartControl.exe

The only thing that doesn't work are the icons and I cannot change / open Security Alarm. Perhaps the source code is a bit outdated and doesn't work with the latest version.



« Last Edit: July 21, 2016, 09:34:50 PM by gbremmer »

July 25, 2016, 08:10:55 PM
Reply #4

gbremmer

  • *
  • Information
  • Newbie
  • Posts: 23
Is there somebody else who uses Mirage? Could somebody update the code so it will work with the latest version?