Coder Social home page Coder Social logo

Comments (16)

cdaerr avatar cdaerr commented on June 14, 2024 1

Version 0.3.9-alpha.3 works well:

The datapoints vom today, the 24. Feb:
grafik

The debug log:
grafik

from iobroker.followthesun.

HGlab01 avatar HGlab01 commented on June 14, 2024

Hi!
Which "Interval of execution in seconds (default: 120 seconds, minimum: 10 seconds)" are you using?
For me it looks strange, that under "current" it is Feb 09 and under "today" it is Feb 08

If 25.3 or 25.1 is the right choice depends on the algorithm you are using... I tried to use the most proper one

from iobroker.followthesun.

cdaerr avatar cdaerr commented on June 14, 2024

from iobroker.followthesun.

HGlab01 avatar HGlab01 commented on June 14, 2024

Hm, can we close the issue and if there is still a problem you can reopen it?

from iobroker.followthesun.

cdaerr avatar cdaerr commented on June 14, 2024

This are the values from today, taken some minutes ago on 15. February morning.

Values for today have the date of yesterday:
grafik

Values for tomorrow have the date of today:
grafik

Is there any additional debug info I can provide?

from iobroker.followthesun.

HGlab01 avatar HGlab01 commented on June 14, 2024
  1. please "mose over" on solornoon today like this
    image
    to the the timestamp
    As you see, in my installation the date was updated 34 seconds after midnight

  2. Is there every day a log line like "Cronjob 'Sun parameter calculation' starts"?

  3. after restarting the adapter there is one log line starting with "Daily sun parameter calculation scheduled for". Which time is mentioned there?

from iobroker.followthesun.

cdaerr avatar cdaerr commented on June 14, 2024

In my installation it was updated on last adapter restart:
grafik

grafik

The log at last manual restart yesterday:
grafik

Log from today after midnight:
grafik

from iobroker.followthesun.

HGlab01 avatar HGlab01 commented on June 14, 2024

still no idea whtat's going wrong. Please switch to debug mode and post the log.
Most important are the lines (dates) after "Run CalcSunData"

from iobroker.followthesun.

cdaerr avatar cdaerr commented on June 14, 2024

grafik

from iobroker.followthesun.

cdaerr avatar cdaerr commented on June 14, 2024

After restart values are correct:
grafik

from iobroker.followthesun.

HGlab01 avatar HGlab01 commented on June 14, 2024

Can you run the adapter until tomorrow morning in debug mode?
Interesting are these log entries tomorrow after midnight. The first line date after "Run CalcSunData" is used for today, the second for yesterday, third for tomorrow etc.

from iobroker.followthesun.

cdaerr avatar cdaerr commented on June 14, 2024

The debug log from today (16. Februray) Midnight:
grafik

and this is the actual state of the objects:
grafik

from iobroker.followthesun.

HGlab01 avatar HGlab01 commented on June 14, 2024

Thanx for all the info!
It is a strange behavior!
First date in the log is 16th. Which is today --> ok
In the next step the time is calculated based on the date and here the unexpected happens in your installation.
This is my solar-noon from today calculated couple of seconds after midnight:
image
Can you please double check if your coordinates (latitude and longitude) are fitting to your time zone?

Please create a new small Javascript with following content:

const suncalc = require('suncalc');
const config = getObject("system.adapter.javascript.0");
const lat = config.native.latitude;
const long = config.native.longitude;
log('LAT: ' + lat);
log('LONG: ' + long);
let timeStamp = new Date('2022-02-16 00:00:23');
log('TIMESTAMP: ' + timeStamp);
let times = suncalc.getTimes(timeStamp, lat, long);
log('SOLARNOON: ' + times.solarNoon);

and please let me know the log result :-)

Please also check/change in the javascript adapter settings the "Astro settings" to "Use system settings"
image

from iobroker.followthesun.

cdaerr avatar cdaerr commented on June 14, 2024

The astro settings have all the time been:
grafik

Yout got the result by E-Mail

from iobroker.followthesun.

HGlab01 avatar HGlab01 commented on June 14, 2024

Please check if this version works
https://HGlab01/ioBroker.followthesun#63cea743f66d40880214c8d46dfcae6056738e3a

from iobroker.followthesun.

HGlab01 avatar HGlab01 commented on June 14, 2024

fixed in https://github.com/HGlab01/ioBroker.followthesun/releases/tag/v0.3.9

from iobroker.followthesun.

Related Issues (19)

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.