Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Phone to PC communications.

If you have a question or need help, this is the place to be.
Post Reply
jachin99
Experienced User
Posts: 614
Joined: Sat Feb 13, 2016 8:39 pm

Phone to PC communications.

Post by jachin99 »

I am looking into how I can get EG to react to my phone being near my house in order to trigger events on my home PC. I have played around with the auto remote plugin but It seems like there might be better solutions out there. I have seen the webserver EG plugin thrown out there a few times so, how would I use this to solve my problem?
jachin99
Experienced User
Posts: 614
Joined: Sat Feb 13, 2016 8:39 pm

Re: Phone to PC communications.

Post by jachin99 »

Ive been playing around with the web server plugin but im mostly clueless about what i am exactly doing. Im guessing from my limited knowledge that because i have the webserver plugin enabled EG is hosting a web page on my maxhine. How do i get to it or modify it
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Phone to PC communications.

Post by kgschlosser »

what kind of phone is it? meaning is it android or iphone, or a flip phone?!?!

if it's an android. you can use either TCPEvents or the NetworkReceiver plugin for eventghost and an application called EGIGeoZone (it's free) and you will also have to get the EventGhost plugin for the EGIGeoZone app. both are in the android play store

make sure you set up port forwarding on your router to the port you specify

how this works is the application on your phone allows you to set up "geo fences" or virtual fences around your house. as many as you like and doesn't matter the radius of the fence.

if you enter or leave one of the zones, based on cellular location, wifi location or gps location it will send an event to eventghost

and there are quite a few options for payload data and how the event is formatted.

you have the ability to name each fence as you want and also name the device it is coming from. both are perfect for setting up events based on distance from home as well as who is home. you don't wanna be turning the heat down if you leave and the wife is home. this provides the means to set that kind of thing up using the eg.globals

i helped the author in the development side of the app a while ago.

we were trying to get the location more accurate. i was getting kinda picky i guess i wanted to have like 100 foot resolution last i e-mailed the dev, he was trying to figure out a way to get google location services to stop defaulting to cellular gps. which causes some jumping issues and false events. this can be filtered pretty easily using the timer plugin but i have a very specific problem most users won't see.

i have a miniature cell tower in my home called a microcell. and when i leave and the phone has to switch over because i have very limited cell reception where i live it causes a lot of jumping. but again this is all very specific to my location. chances are it will work just fine if you don't live in the middle of Timbuktu on the very fringe of cell reception

the app also allows for the automatic turning on and off of you phones wifi and bluetooth (battery conservation) and also sending of text messages when entering and leaving. as well as posting data to a web server

you can use the latter instead of the network receiver or tcp events but requires some work with setting up the url, and you don't get the pretty events.
If you like the work I have been doing then feel free to Image
jachin99
Experienced User
Posts: 614
Joined: Sat Feb 13, 2016 8:39 pm

Re: Phone to PC communications.

Post by jachin99 »

I have an android phone. Correct me if I'm wrong because I would like to understand this process as much as I can so that I'm setting it up from my own understanding, instead of scouring google for generic instructions. The difference between the network events/ TCP events plugins VS. the web server plugin is that the TCP/Network events open up a kind of Listening service that receives traffic from a specified IP address through my home router VS the web server hosting a web page that I create by uploading a HTML document through the web server plugin? This is my basic understanding of the situation but if i'm wrong then feel free to correct me.

Within the EGIGeofence app, I can add a server and assign it to profiles based on my location, I.E. when I'm at home, contact this server. Where I start to get cloud on the subject is how do I configure EGIGeofence to use my configured webserver to announce to my home event ghost that I am at home? I am guessing that I use the retrieve data function of the TCP Events plugin, and I am sending data to the private IP address of my PC on the port I specify within EGIGeofence because I want the events to fire when I am at home (Connected to my router) for the most part. Once I get this much down, I can work on port forwarding, and sending events from anywhere. Thanks for your help.
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Phone to PC communications.

Post by kgschlosser »

I am going to put a tutorial up of how to do this. I have compleated the tutorial already i just have to post it. It will be in the tutorial thread

K
If you like the work I have been doing then feel free to Image
Post Reply