Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure pialert without internet #45

Closed
intheshell opened this issue Dec 13, 2022 · 7 comments
Closed

Configure pialert without internet #45

intheshell opened this issue Dec 13, 2022 · 7 comments

Comments

@intheshell
Copy link

Hello my friend

Can i install pialert on a network without internet. I try this but the device dont appears

Regards

@leiweibau
Copy link
Owner

Off the cuff, I can't answer the question, I would have to test it. You would then be missing the functions that MAC addresses are assigned to manufacturers. Also notifications would not work.

@leiweibau
Copy link
Owner

Another consideration to your request.
Prerequisites for such an installation are:

  • all dependencies (python packages, software like webserver, arp-scan, etc) must already be installed on the system
  • you need the package "pialert_latest.tar" from the repository

Then you could edit the installation script with the path of the "pialert_latest.tar". This should get the biggest problems out of the way. However, since the issue with dependencies is very individual, I can not make a precise statement.

@intheshell
Copy link
Author

well, anyway what i did: i moved the machine that was working with internet to a network without internet and it stopped working.

@leiweibau
Copy link
Owner

leiweibau commented Dec 13, 2022

Okay, so Pi.Alert is already installed? I can test this in the next days.
Are you running Pi-hole on the same system?
Have you assigned a static IP to Pi.Alert or do you use a DHCP?

What means "Not working"?
You can't reach the Webinterface or no scan starts?

@leiweibau
Copy link
Owner

Try to change the following lines (line 181+) from

    # Get Internet IP
    print ('\nRetrieving Internet IP...')
    internet_IP = get_internet_IP()
    # TESTING - Force IP
        # internet_IP = "1.2.3.4"

to:

    # Get Internet IP
    print ('\nRetrieving Internet IP...')
    # internet_IP = get_internet_IP()
    # TESTING - Force IP
    internet_IP = "0.0.0.0"

Also the section beginning in line 702 from:

    # Check Internet connectivity
    internet_IP = get_internet_IP()
        # TESTING - Force IP
        # internet_IP = ""

to

    # Check Internet connectivity
    # internet_IP = get_internet_IP()
        # TESTING - Force IP
    internet_IP = "0.0.0.0"

In my test environment it worked in offline mode. Here below again the links to the corresponding lines.
https://github.com/leiweibau/Pi.Alert/blob/main/back/pialert.py#L181
https://github.com/leiweibau/Pi.Alert/blob/main/back/pialert.py#L702

@intheshell
Copy link
Author

Hello my friend, ok I will to check.

regards

@intheshell
Copy link
Author

you are great!!, now i can use pialert without internet

regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants