landroid-bridge icon indicating copy to clipboard operation
landroid-bridge copied to clipboard

bad config? no schedule ahead

Open iz3man opened this issue 5 years ago • 8 comments

I kindly ask someone to check my config, as i don't see any planned mowing activity in my schedule. Even though it's not raining and i set mowing to 7 days a week nothing happens. Any ideas very welcome!

image

And this is my config.json file:

{
    "http": {
        "port": 3000
    },
    "landroid-s": {
        "enable": true,
        "email": "xxxxxxx",
        "pwd": "xxxxxxx",
        "dev_sel": 0
    },
    "mqtt": {
        "enable": true,
        "url": "xxxxxxxxxx@localhost",
        "topic": "landroid"
    },
    "logLevel": "info",
    "scheduler": {
        "enable": true,
        "cron": true,
        "weather": {
            "provider": "darksky",
            "apiKey": "219389ca143fa62xxxxxxxxx",
            "latitude": xxxxxxxx,
            "longitude": xxxxxxx
        },
        "db": "./scheduler.db",
        "earliestStart": 14,
        "latestStop": 20,
        "startEarly": true,
        "offDays": 0,
        "squareMeters": 60,
        "perHour": 15,
        "mowTime": 75,
        "chargeTime": 75,
        "daysForTotalCut": 7,
        "rainDelay": 180,
        "threshold": 30
    }
}

iz3man avatar May 25 '19 17:05 iz3man

Same issue here, running docker container.

Logs show these error.

[2019-05-28T17:10:31.950] [INFO] ScheduledTasks - Successfully refreshed weather cache [2019-05-28T17:15:00.007] [INFO] ScheduledTasks - Running ScheduledTasks.applySchedule... [2019-05-28T17:15:00.117] [ERROR] App - Unhandled rejection: Error: Could not load weather forecast: TypeError: Cannot read property 'dateTime' of undefined [2019-05-28T17:55:24.800] [ERROR] SchedulerRouter - Error: Could not load weather forecast: TypeError: Cannot read property 'dateTime' of undefined at WeatherFactory_1.WeatherFactory.getProvider.loadHourly10day.then.catch.e (/usr/src/app/dist/Scheduler.js:60:34) [2019-05-28T18:10:30.017] [INFO] ScheduledTasks - Refreshing weather to cache (try #1)... [2019-05-28T18:10:30.019] [INFO] WeatherDarkSky - Loading from https://api.darksky.net/forecast/75f294xxxxxxxxxxf3edf5ac2d3e15/xxxxxx4106,4.5594391?units=si [2019-05-28T18:10:30.722] [INFO] WeatherDarkSky - Loading from https://api.darksky.net/forecast/75f2xxxxxxxxf3edf5ac2d3e15/xxxxx4106,xxx3xxxxxx01630?units=si [2019-05-28T18:10:31.238] [INFO] WeatherDarkSky - Loading from https://api.darksky.net/forecast/75f2xxxxxxxxdf5ac2d3e15/xxxx194106,xxxxxx91?units=si [2019-05-28T18:10:31.969] [INFO] ScheduledTasks - Successfully refreshed weather cache [2019-05-28T18:15:00.007] [INFO] ScheduledTasks - Running ScheduledTasks.applySchedule... [2019-05-28T18:15:00.079] [ERROR] App - Unhandled rejection: Error: Could not load weather forecast: TypeError: Cannot read property 'dateTime' of undefined [2019-05-28T18:45:49.052] [ERROR] SchedulerRouter - Error: Could not load weather forecast: TypeError: Cannot read property 'dateTime' of undefined at WeatherFactory_1.WeatherFactory.getProvider.loadHourly10day.then.catch.e (/usr/src/app/dist/Scheduler.js:60:34) [2019-05-28T18:58:28.507] [ERROR] SchedulerRouter - Error: Could not load weather forecast: TypeError: Cannot read property 'dateTime' of undefined at WeatherFactory_1.WeatherFactory.getProvider.loadHourly10day.then.catch.e (/usr/src/app/dist/Scheduler.js:60:34)

charlez79 avatar May 28 '19 19:05 charlez79

I'm also seeing this issue

xpx avatar May 30 '19 15:05 xpx

I can see the exact same error in my log. Unfortunatly I cannot try it out with the wunderground-API as it requires you to have your own station now.

[2019-06-30T10:58:07.171] [ERROR] SchedulerRouter - Error: Could not load weather forecast: TypeError: Cannot read property 'dateTime' of undefined

at WeatherFactory_1.WeatherFactory.getProvider.loadHourly10day.then.catch.e (/usr/src/app/dist/Scheduler.js:60:34)

Crazyachmed avatar Jun 30 '19 11:06 Crazyachmed

You can use openweather.org as well

iz3man avatar Jun 30 '19 12:06 iz3man

how?

charlez79 avatar Jun 30 '19 15:06 charlez79

There aren't any other weather providers possible according to src/WeatherFactory.ts

Crazyachmed avatar Jul 13 '19 11:07 Crazyachmed

hi i have same issue anyone found a solution?

andenmad avatar Aug 12 '19 21:08 andenmad

Same issue here, would like to hear if anybody found a solution, i'm using Darksky

kdrost1 avatar Aug 13 '19 19:08 kdrost1