andreasgrill / auto-selfcontrol

Small utility to schedule start and stop times of SelfControl
MIT License
305 stars 37 forks source link

start after install but nothing happens to the hosts file. IOS V. 10.13.2 #25

Open theBerNii opened 6 years ago

theBerNii commented 6 years ago

First up: thanks for your awesome work! But there seems to be a problem...

I did everything as described in the README. Self Control is running when I start and the timer is 'ticking' down like it should. But the hosts file does not get written/changed although I have put some sites in the hosts-blacklist. Also every time no matter if Self control is running or not the function check_if_running returns true.

Am I doing something wrong or is there an issue at the moment?

Times below just for testing:

{
    "username": "NilsBertram",
    "selfcontrol-path": "/users/NilsBertram/Applications/SelfControl.app",
    "host-blacklist": [
        "twitter.com",
        "reddit.com",
        "google.de",
        "google.com"
    ],
    "block-schedules":[
        {
            "weekday": 1,
            "start-hour": 0,
            "start-minute": 0,
            "end-hour": 23,
            "end-minute": 59
        },
        {
            "weekday": 2,
            "start-hour": 0,
            "start-minute": 0,
            "end-hour": 23,
            "end-minute": 59
        },
        {
            "weekday": 3,
            "start-hour": 0,
            "start-minute": 0,
            "end-hour": 23,
            "end-minute": 59
        },
        {
            "weekday": 4,
            "start-hour": 0,
            "start-minute": 0,
            "end-hour": 23,
            "end-minute": 59
        },
        {
            "weekday": 5,
            "start-hour": 0,
            "start-minute": 0,
            "end-hour": 23,
            "end-minute": 59
        },
        {
            "weekday": 6,
            "start-hour": 0,
            "start-minute": 0,
            "end-hour": 23,
            "end-minute": 59
        },
        {
            "weekday": 7,
            "start-hour": 0,
            "start-minute": 0,
            "end-hour": 23,
            "end-minute": 59
        }
    ]
}
andreasgrill commented 6 years ago

There is a bug when auto-selfcontrol is started for the first time. If this is the first day you are using auto-selfcontrol, you could wait for the next day. I’m planning on fixing this issue in a future release.

I hope this helps!

Cheers, Andreas

On 25. December 2017 at 23:16:49, theBerNii (notifications@github.commailto:notifications@github.com) wrote:

First up: thanks for your awesome work! But there seems to be a problem...

I did everything as described in the README. Self Control is running when I start and the timer is 'ticking' down like it should. But the hosts file does not get written/changed although I have put some sites in the hosts-blacklist. Also every time no matter if Self control is running or not the function check_if_running returns true.

Am I doing something wrong or is there an issue at the moment?

Times below just for testing:

{ "username": "NilsBertram", "selfcontrol-path": "/users/NilsBertram/Applications/SelfControl.app", "host-blacklist": [ "twitter.com", "reddit.com", "google.de", "google.com" ], "block-schedules":[ { "weekday": 1, "start-hour": 0, "start-minute": 0, "end-hour": 23, "end-minute": 59 }, { "weekday": 2, "start-hour": 0, "start-minute": 0, "end-hour": 23, "end-minute": 59 }, { "weekday": 3, "start-hour": 0, "start-minute": 0, "end-hour": 23, "end-minute": 59 }, { "weekday": 4, "start-hour": 0, "start-minute": 0, "end-hour": 23, "end-minute": 59 }, { "weekday": 5, "start-hour": 0, "start-minute": 0, "end-hour": 23, "end-minute": 59 }, { "weekday": 6, "start-hour": 0, "start-minute": 0, "end-hour": 23, "end-minute": 59 }, { "weekday": 7, "start-hour": 0, "start-minute": 0, "end-hour": 23, "end-minute": 59 } ] }

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/andreasgrill/auto-selfcontrol/issues/25, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABNQtNYb32--rEbbUNEOSj_JB7UlU5-1ks5tEB7NgaJpZM4RMZ2r.