Git Product home page Git Product logo

Comments (10)

stefanwichmann avatar stefanwichmann commented on July 25, 2024

Hey,
this is only an information message and should therefore be no problem.

To be sure and to identify the root cause: Could you start Kelvin with the -debug flag?

Thanks,
Stefan

from kelvin.

mhop74 avatar mhop74 commented on July 25, 2024

Thanks for the reply Stefan. I've changed my installation to have Kelvin run as systemd process rather than as a docker container. It seems a lot easier to know what it going on and has removed the info msg I was receiving.

from kelvin.

stefanwichmann avatar stefanwichmann commented on July 25, 2024

Ok but strange... I'll close the issue for now.

from kelvin.

sirwolfgang avatar sirwolfgang commented on July 25, 2024

I have been having the parsing error, seemingly off and on(or maybe just me noticing it) since I set it up over a month ago. Here is a loop of the error as seen in the debug log. I am installed via the /opt/kelvin as a service method.

DEBU[2019/18/04 20:48:31] 🎨 Updating scenes...
DEBU[2019/18/04 20:48:31] 🎨 Updating scene "Default (Kelvin)" for schedule "default"...
INFO[2019/18/04 20:48:31] parsing time "" as "15:04": cannot parse "" as "15"
DEBU[2019/18/04 20:48:32] 🎨 Successfully updated scene "Default (Kelvin)"
DEBU[2019/18/04 20:48:32] 💡 HueLight Living, Wall - Setting light state to 2632K and 72% brightness (TargetColorTemperature: 379, CurrentColorTemperature: 375, TargetColor: [0.466 0.412], CurrentColor: [0.464 0.412], TargetBrightness: 182, CurrentBrightness: 185, TransitionTime: 4)
DEBU[2019/18/04 20:48:32] 💡 HueLight Living, Wall - Light was successfully updated (TargetColorTemperature: 379, CurrentColorTemperature: 375, TargetColor: [0.466 0.412], CurrentColor: [0.464 0.412], TargetBrightness: 182, CurrentBrightness: 185, TransitionTime: 4)
INFO[2019/18/04 20:48:32] 💡 Light Living, Wall - Updated light state to 2632K at 72% brightness
DEBU[2019/18/04 20:48:32] 🤖 Light Living, Wall - Updated light state. Awaiting transition...
DEBU[2019/18/04 20:48:33] 💡 HueLight Living, Center - Setting light state to 2632K and 72% brightness (TargetColorTemperature: 379, CurrentColorTemperature: 375, TargetColor: [0.466 0.412], CurrentColor: [0.464 0.412], TargetBrightness: 182, CurrentBrightness: 185, TransitionTime: 4)
DEBU[2019/18/04 20:48:33] 💡 HueLight Living, Center - Light was successfully updated (TargetColorTemperature: 379, CurrentColorTemperature: 375, TargetColor: [0.466 0.412], CurrentColor: [0.464 0.412], TargetBrightness: 182, CurrentBrightness: 185, TransitionTime: 4)
INFO[2019/18/04 20:48:33] 💡 Light Living, Center - Updated light state to 2632K at 72% brightness
DEBU[2019/18/04 20:48:33] 🤖 Light Living, Center - Updated light state. Awaiting transition...
DEBU[2019/18/04 20:48:33] 💡 HueLight Entry - Setting light state to 2632K and 72% brightness (TargetColorTemperature: 379, CurrentColorTemperature: 375, TargetColor: [0.466 0.412], CurrentColor: [0.464 0.412], TargetBrightness: 182, CurrentBrightness: 185, TransitionTime: 4)
DEBU[2019/18/04 20:48:33] 💡 HueLight Entry - Light was successfully updated (TargetColorTemperature: 379, CurrentColorTemperature: 375, TargetColor: [0.466 0.412], CurrentColor: [0.464 0.412], TargetBrightness: 182, CurrentBrightness: 185, TransitionTime: 4)
INFO[2019/18/04 20:48:33] 💡 Light Entry - Updated light state to 2632K at 72% brightness
DEBU[2019/18/04 20:48:33] 🤖 Light Entry - Updated light state. Awaiting transition...
DEBU[2019/18/04 20:49:31] 💡 Light Living, Wall - Updated target light state for the interval 20:00 - 22:00 from {ColorTemperature:2632 Brightness:72} to {ColorTemperature:2616 Brightness:72}
DEBU[2019/18/04 20:49:31] 💡 Light Living, Center - Updated target light state for the interval 20:00 - 22:00 from {ColorTemperature:2632 Brightness:72} to {ColorTemperature:2616 Brightness:72}
DEBU[2019/18/04 20:49:31] 💡 Light Entry - Updated target light state for the interval 20:00 - 22:00 from {ColorTemperature:2632 Brightness:72} to {ColorTemperature:2616 Brightness:72}
DEBU[2019/18/04 20:49:31] 💡 Light Whale - Updated target light state for the interval 20:00 - 22:00 from {ColorTemperature:2632 Brightness:72} to {ColorTemperature:2616 Brightness:72}
DEBU[2019/18/04 20:49:31] 🎨 Updating scenes...
DEBU[2019/18/04 20:49:31] 🎨 Updating scene "Default (Kelvin)" for schedule "default"...
INFO[2019/18/04 20:49:31] parsing time "" as "15:04": cannot parse "" as "15"
DEBU[2019/18/04 20:49:32] 🎨 Successfully updated scene "Default (Kelvin)"

from kelvin.

stefanwichmann avatar stefanwichmann commented on July 25, 2024

Reopening the issue.

Could you post your config.json file? It seems like there is an error in it. Thanks!

from kelvin.

sirwolfgang avatar sirwolfgang commented on July 25, 2024

It's almost default, I have basically reset it each time I have upgraded. Edited in place with Nano, or sometimes with the WebGUI. I guessing its the "time": "", before sunrise part? Which is not something I think I personally edited.

{
  "version": 1,
  "bridge": {
    "ip": "10.0.0.41",
    "username": "Xc9fsxooQQyS9Cbuac13YFPA9t6x16bJiU2DVL-5"
  },
  "location": {
    "latitude": 37.7811,
    "longitude": -122.4625
  },
  "webinterface": {
    "enabled": true,
    "port": 8080
  },
  "schedules": [
    {
      "name": "default",
      "associatedDeviceIDs": [
        1,
        2,
        3,
        4
      ],
      "enableWhenLightsAppear": true,
      "defaultColorTemperature": 6500,
      "defaultBrightness": 100,
      "beforeSunrise": [
        {
          "time": "",
          "colorTemperature": 1500,
          "brightness": 60
        }
      ],
      "afterSunset": [
        {
          "time": "20:00",
          "colorTemperature": 3400,
          "brightness": 80
        },
        {
          "time": "22:00",
          "colorTemperature": 1500,
          "brightness": 60
        }
      ]
    }
  ]
}

from kelvin.

sirwolfgang avatar sirwolfgang commented on July 25, 2024

I tried looking around, not sure what the issue is. My guess is it could be something about the web form resetting to the default of null, then saving it down. Either way, I think it might be sensible to or set NULL times with midnight.

from kelvin.

stefanwichmann avatar stefanwichmann commented on July 25, 2024

The issue is the empty string for the "time" key under "beforeSunrise". In this form the configuration is invalid. You can fix the warning by entering valid timestamp in the format of the others.

The default timestamp for this would be "4:00".

from kelvin.

sirwolfgang avatar sirwolfgang commented on July 25, 2024

The first Time input field doesn't look to the initalize right on my web GUI. If I click save schedule while it is in this default state, it then overwrites the "4:00" with "".

image

from kelvin.

stefanwichmann avatar stefanwichmann commented on July 25, 2024

The tab "Schedules" in the webinterface displays the content of the config.json. If you have an empty timestamp in your configuration it will be displayed as seen above in the screenshot.

If you clear this field in the webinterface an empty (and invalid) value will be written to your config.json. After this you will see the warnings in the log...

There is certainly some room for improvement here and the webinterface could to some validation... PRs are welcome!

from kelvin.

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.