What is all this web traffic in log?

My HG is working pretty good, but I am trying to see why a couple lights are being turned on at regular intervals without my understanding why.

So my Pi with HG is 192.168.7.129. Another computer on my network - nothing to do with HG - is 192.167.7.234.

HG log reports a LOT of .234 communications! I have no clue why. Can someone tell me what these kinds of lines in my HG log mean?:?:

Have you tried issuing that GET command in a browser to see what response it gives.

You obviously have some script in HG issuing that GET request to your other computer.

Do you have UnPnP enabled in HG. Try disabling it and see if that stops the GET request

Regarding your random lights on/off activity do you have any other X10 transceivers on the same network or uncleared timers/macros stored on your HG controllers

what would I type into a browser? get what?

will try to shut off unpnp. tnx

no other x10 things running.

Here’s a sample of the command that is running on your server and the format to issue it in. It’s the Interfaces.List command.

https://genielabs.github.io/HomeGenie/api/mig/core_api_config.html

Are you sure you don’t have a script running on HG that is requesting a list of interfaces using the Interfaces.List command. Maybe something you created as a test sample program that is still enabled.

In case you can’t follow the example from that link here’s exactly what you need to enter into your browser bar.
This will return a list of interfaces running on HG. It looks suspiciously like a discovery service running there.

http://192.168.7.234/api/HomeAutomation.HomeGenie/Config/Interfaces.List

Thanks for the last comment; no, I could not follow the example; tried typing in GET /api… in Pi, as well as browser…

Using your example on the 3 computers on my network who are getting this directed at them, I get nothing found:

image

I just made a backup file… looked at log and it shows a similar line so I tried putting that in browser - can’t get it to work either. Am I missing something?

http://192.168.7.129/hg/html/homegenie_backup_config.zip
& tried:
http://192.168.7.129/api/hg/html/homegenie_backup_config.zip

Seems if I can get this stuff to run I might be able to find all the network calls; they happen every few seconds 24/7… maybe why my internet seems a tad slow?

Don’t forget if you have a port in use other than port 80 you need to specify this in the api call. Say you are using port 8080 the call would look like this

http://192.168.7.234:8080/api/HomeAutomation.HomeGenie/Config/Interfaces.List

I do use 8080 on HG pi unit (192.168.7.16) but do not have HG installed on any other computers; so why would I want to use 8080 on them? I don’t understand?

http://192.168.7.16:8080/api/HomeAutomation.HomeGenie/Config/Interfaces.List

works and replies:

[ { “Domain” : “HomeAutomation.X10”, “IsConnected” : “True” } ]

No other computer here has HG on it so why are they being asked to run some HG program?

You’ve only one interface running in HG X10. You’ll need to inspect your programs in HG to see which program is making the offending call.

Typically an api call to an invalid IP address getting no response would cause this.

Have you many programs running in HG outside of the standard ones that come with HG.

How many servers have you running on your network. Are you running a proxy or a vpn. Could you list the servers local ip addresses and any ports they are using.

Thank you for your assistance.

I went thru all 15 or so programs running in HG today and did not see any unknown ones; I did turn off like 6 that were running that I do not use. Still getting the constant api calls…

Are you suggesting I go back again and look at each line of code in the ‘program code’ section of each program to see if this /api is there? I will do so.

The IP addresses listed are all valid computers being used on my network - 3 of them so far I see. Noone associated with HG.

Servers on my network? Not sure what that means. I have my Asus router, some switches, 20 or so cameras (most on separate net of 192.168.0.xxx), a Netgear ‘repeater’ to extend range. That’s it.

No proxy or vpn.

Sure I can list all IPs and ports open with Advanced port scanner - I am not showing the main camera other net (did not post IPO addresses):

image

Well once you’ve identified what is located at http://192.168.7.234 it might give an indication what’s going on with your HG server. Effectively you’ll need to edit or delete this GET call in HG to stop this persistent logging.

I’d need to know what’s running on your LAN to see what other servers are running.

Assuming you are running on a RPI do you have any other server software running on it.

" Well once you’ve identified what is located at http://192.168.7.234 it might give an indication what’s going on with your HG server." I know what is located at 7.234 - it is one of my computers I use for business. No HG on it.

“Effectively you’ll need to edit or delete this GET call in HG to stop this persistent logging.” HOW?

“I’d need to know what’s running on your LAN to see what other servers are running.” What more can I tell you? I have no servers I know of running?

“Assuming you are running on a RPI do you have any other server software running on it.” The old HA Bridge is still running on it although I no longer use it. I would delete it if Iknew how…

BTW, I just went thru all programs searching for the word “api” and it is not found in any…

Ok can you access the Configuration Page on the HA Bridge server and see what IP address is listed there. They use some form of helper to setup HG and I wonder if this is the offender here.

It should be quite easy to remove that HA Bridge. Stop the service and delete the Jar.

In order to get rid of any old Configuration setup on your SD card, I’d back up your HG Configuration settings, format the SD card, do a fresh install of HG and restore your HG Configuration backup. 45 minutes work instead of spending countless hours searching for the word “api”. If you want to take an SD card image before formatting to be doubly certain by all means

Since HG mostly works I hate to do a total new reinstall. I would not mind deleting HA bridge tho. So could I bother you to list a couple lines of code that I can type in to delete it?

Oh ye of little faith :laughing:

Just locate the folder where you installed ha-Bridge and delete it. Use the Linux find command if you can’t easily locate it.

Make sure you stop the ha-Bridge service daemon too and delete it if you wish.

If you want to rid yourself of any unnecessary clutter on your SD card I really would do a fresh install and restore your HG Configuration backup.

Alternatively ensure you have any service daemons that were installed on your SD card stopped and disabled with the exception of your HG service daemon. You can of course manually remove any files that are not in use but be careful not to remove any system files or files used by HG.