Giter VIP home page Giter VIP logo

Comments (5)

marcass avatar marcass commented on June 9, 2024

Setpoints set in google calendar with following sytnax:
background: setpoint 10C, disabled
home: setpoint 18C
and variations thereof

from dz.

marcass avatar marcass commented on June 9, 2024

Solved. See bold calendar entry - syntax was incorrect.

With current code run in precompiled (using classpath, not classpath-dev) code I get the following error with info detail preceding error:

08:58:13,565 INFO Scheduler pool-14-thread-1 [run] Checking schedule
08:58:14,347 INFO GCalScheduleUpdater pool-14-thread-1 [run, update, update] 10 calendars found:
08:58:14,349 INFO GCalScheduleUpdater pool-14-thread-1 [run, update, update] calendar: spare bed
08:58:14,350 INFO GCalScheduleUpdater pool-14-thread-1 [run, update, update] calendar: kids bed
08:58:14,351 INFO GCalScheduleUpdater pool-14-thread-1 [run, update, update] calendar: outside
08:58:14,353 INFO GCalScheduleUpdater pool-14-thread-1 [run, update, update] calendar: living
08:58:14,354 INFO GCalScheduleUpdater pool-14-thread-1 [run, update, update] calendar: coffee
08:58:14,354 INFO GCalScheduleUpdater pool-14-thread-1 [run, update, update] calendar: hall
08:58:14,355 INFO GCalScheduleUpdater pool-14-thread-1 [run, update, update] calendar: marcus bed
08:58:14,356 INFO GCalScheduleUpdater pool-14-thread-1 [run, update, update] calendar: downstairs
08:58:14,357 INFO GCalScheduleUpdater pool-14-thread-1 [run, update, update] calendar: Contacts
08:58:14,358 INFO GCalScheduleUpdater pool-14-thread-1 [run, update, update] calendar: Holidays in New Zealand
08:58:14,360 INFO GCalScheduleUpdater pool-14-thread-1 [run, update, update, updateCalendar] Zone name: spare bed
08:58:14,361 INFO GCalScheduleUpdater pool-14-thread-1 [run, update, update, updateCalendar] id: <some-token-i've-removed for bug report>@group.calendar.google.com
08:58:14,364 INFO GCalScheduleUpdater pool-14-thread-1 [run, update, update, updateCalendar, parseEvents] query: {calendarId=<some-token-i've-removed for bug report>@group.calendar.google.com, singleEvents=true, timeMax=2018-07-31T23:59:59.000+12:00, timeMin=2018-07-31T00:00:00.000+12:00}
08:58:14,915 INFO GCalScheduleUpdater pool-14-thread-1 [run, update, update, updateCalendar, parseEvents] 1 events found
08:58:14,917 INFO GCalScheduleUpdater pool-14-thread-1 [run, update, update, updateCalendar, parseEvents, updateEvent] {"date":"2018-07-31"} to {"date":"2018-08-01"}
08:58:14,917 INFO GCalScheduleUpdater pool-14-thread-1 [run, update, update, updateCalendar, parseEvents, updateEvent, parsePeriod] name: 'background'
08:58:14,922 INFO StatusParser pool-14-thread-1 [run, update, update, updateCalendar, parseEvents, updateEvent, parsePeriod, parse] Token: 'setpoint 10c'
08:58:14,923 INFO StatusParser pool-14-thread-1 [run, update, update, updateCalendar, parseEvents, updateEvent, parsePeriod, parse] Token: 'disabled'
08:58:14,927 INFO GCalScheduleUpdater pool-14-thread-1 [run, update, update, updateCalendar] Zone name: kids bed
08:58:14,928 INFO GCalScheduleUpdater pool-14-thread-1 [run, update, update, updateCalendar] id: [email protected]
08:58:14,931 INFO GCalScheduleUpdater pool-14-thread-1 [run, update, update, updateCalendar, parseEvents] query: {calendarId=[email protected], singleEvents=true, timeMax=2018-07-31T23:59:59.000+12:00, timeMin=2018-07-31T00:00:00.000+12:00}
08:58:15,468 INFO GCalScheduleUpdater pool-14-thread-1 [run, update, update, updateCalendar, parseEvents] 1 events found
08:58:15,470 INFO GCalScheduleUpdater pool-14-thread-1 [run, update, update, updateCalendar, parseEvents, updateEvent] {"date":"2018-07-31"} to {"date":"2018-08-01"}
08:58:15,471 INFO GCalScheduleUpdater pool-14-thread-1 [run, update, update, updateCalendar, parseEvents, updateEvent, parsePeriod] name: 'background'
08:58:15,476 INFO StatusParser pool-14-thread-1 [run, update, update, updateCalendar, parseEvents, updateEvent, parsePeriod, parse] Token: 'setpoint 10c'
08:58:15,477 INFO StatusParser pool-14-thread-1 [run, update, update, updateCalendar, parseEvents, updateEvent, parsePeriod, parse] Token: 'disabled'
08:58:15,482 INFO GCalScheduleUpdater pool-14-thread-1 [run, update, update, updateCalendar] Zone name: outside
08:58:15,483 INFO GCalScheduleUpdater pool-14-thread-1 [run, update, update, updateCalendar] id: [email protected]
08:58:15,486 INFO GCalScheduleUpdater pool-14-thread-1 [run, update, update, updateCalendar, parseEvents] query: {calendarId=[email protected], singleEvents=true, timeMax=2018-07-31T23:59:59.000+12:00, timeMin=2018-07-31T00:00:00.000+12:00}
08:58:16,036 INFO GCalScheduleUpdater pool-14-thread-1 [run, update, update, updateCalendar, parseEvents] 1 events found
08:58:16,038 INFO GCalScheduleUpdater pool-14-thread-1 [run, update, update, updateCalendar, parseEvents, updateEvent] {"date":"2018-07-31"} to {"date":"2018-08-01"}
08:58:16,039 INFO GCalScheduleUpdater pool-14-thread-1 [run, update, update, updateCalendar, parseEvents, updateEvent, parsePeriod] name: 'background'

Error in here:
08:58:16,043 INFO StatusParser pool-14-thread-1 [run, update, update, updateCalendar, parseEvents, updateEvent, parsePeriod, parse] Token: 'setpoint10c'

08:58:16,047 ERROR Scheduler pool-14-thread-1 [run] Unexpected exception
java.util.NoSuchElementException: null
at java.util.StringTokenizer.nextToken(StringTokenizer.java:349) ~[?:1.8.0_112]
at net.sf.dz3.scheduler.gcal.StatusParser.parse(StatusParser.java:78) ~[dz3-scheduler-gcal-v3-3.6.8-SNAPSHOT.jar:?]
at net.sf.dz3.scheduler.gcal.GCalScheduleUpdater.parseEvent(GCalScheduleUpdater.java:322) ~[dz3-scheduler-gcal-v3-3.6.8-SNAPSHOT.jar:?]
at net.sf.dz3.scheduler.gcal.GCalScheduleUpdater.updateEvent(GCalScheduleUpdater.java:290) ~[dz3-scheduler-gcal-v3-3.6.8-SNAPSHOT.jar:?]
at net.sf.dz3.scheduler.gcal.GCalScheduleUpdater.parse(GCalScheduleUpdater.java:261) ~[dz3-scheduler-gcal-v3-3.6.8-SNAPSHOT.jar:?]
at net.sf.dz3.scheduler.gcal.GCalScheduleUpdater.parseEvents(GCalScheduleUpdater.java:243) ~[dz3-scheduler-gcal-v3-3.6.8-SNAPSHOT.jar:?]
at net.sf.dz3.scheduler.gcal.GCalScheduleUpdater.updateCalendar(GCalScheduleUpdater.java:181) ~[dz3-scheduler-gcal-v3-3.6.8-SNAPSHOT.jar:?]
at net.sf.dz3.scheduler.gcal.GCalScheduleUpdater.update(GCalScheduleUpdater.java:126) ~[dz3-scheduler-gcal-v3-3.6.8-SNAPSHOT.jar:?]
at net.sf.dz3.scheduler.Scheduler.update(Scheduler.java:266) ~[dz3-scheduler-3.6.8-SNAPSHOT.jar:?]
at net.sf.dz3.scheduler.Scheduler.run(Scheduler.java:230) [dz3-scheduler-3.6.8-SNAPSHOT.jar:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_112]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [?:1.8.0_112]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [?:1.8.0_112]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [?:1.8.0_112]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_112]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_112]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_112]
08:58:16,051 INFO Scheduler pool-14-thread-1 [run] done
08:59:13,565 INFO Scheduler pool-14-thread-1 [run] Checking schedule
08:59:14,331 INFO GCalScheduleUpdater pool-14-thread-1 [run, update, update] 10 calendars found:
08:59:14,332 INFO GCalScheduleUpdater pool-14-thread-1 [run, update, update] calendar: spare bed
08:59:14,333 INFO GCalScheduleUpdater pool-14-thread-1 [run, update, update] calendar: kids bed

Sorry for not spotting this!

marcus

from dz.

marcass avatar marcass commented on June 9, 2024

In summary, calendar items with a syntax like this:
: setpoint10C
Will throw an exception as it won't parse. There needs to be a space between 'setpoint' and , like so:
: setpoint 10C

I should read the docs more carefully!

from dz.

climategadgets avatar climategadgets commented on June 9, 2024

Parser will be updated to issue a clearer message to indicate what exactly made it choke.

from dz.

climategadgets avatar climategadgets commented on June 9, 2024

Added a Wiki page to aid in schedule configuration: https://github.com/home-climate-control/dz/wiki/Schedule:-Google-Calendar-Integration:-Syntax

from dz.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.