Coder Social home page Coder Social logo

Comments (3)

jacobtomlinson avatar jacobtomlinson commented on July 17, 2024

Example from log file for site Clifton Hill Ski Slope Exeter. It continues to be night until 9am.

Tue Dec  2 09:00:03 2014 - Cloudy
Tue Dec  2 10:00:03 2014 - Cloudy
Tue Dec  2 11:00:08 2014 - Cloudy
Tue Dec  2 12:00:04 2014 - Cloudy
Tue Dec  2 13:00:09 2014 - Partly cloudy (day)
Tue Dec  2 14:00:02 2014 - Partly cloudy (day)
Tue Dec  2 15:00:02 2014 - Partly cloudy (day)
Tue Dec  2 16:00:04 2014 - Partly cloudy (day)
Tue Dec  2 17:00:04 2014 - Partly cloudy (day)
Tue Dec  2 18:00:04 2014 - Partly cloudy (day)
Tue Dec  2 19:00:02 2014 - Partly cloudy (night)
Tue Dec  2 20:00:02 2014 - Partly cloudy (night)
Tue Dec  2 21:00:03 2014 - Partly cloudy (night)
Tue Dec  2 22:00:02 2014 - Partly cloudy (night)
Tue Dec  2 23:00:01 2014 - Partly cloudy (night)
Unexpected error: <type 'exceptions.NameError'> on line 64
Wed Dec  3 01:00:01 2014 - Clear night
Wed Dec  3 02:00:03 2014 - Clear night
Wed Dec  3 03:00:04 2014 - Clear night
Wed Dec  3 04:00:02 2014 - Partly cloudy (night)
Wed Dec  3 05:00:02 2014 - Partly cloudy (night)
Wed Dec  3 06:00:04 2014 - Partly cloudy (night)
Wed Dec  3 07:00:01 2014 - Clear night
Wed Dec  3 08:00:02 2014 - Clear night
Wed Dec  3 09:00:04 2014 - Clear night
Wed Dec  3 10:00:05 2014 - Sunny day

Ignote the error at midnight, this is covered by #19.

from datapoint-python.

jacobtomlinson avatar jacobtomlinson commented on July 17, 2024

After analysing the log file further it appears that night starts from the 19:00 timestep and finishes at the 09:00 timestep inclusive. This is consistent across a 2 month logging period (October-November).

It is possible that these are hard values set in the backend and no sunrise/sunset calculations are used.

In the last 2 months there have been no occurances of a day timestep reported at night although anecdotally I can say I've seen it happen in the past.

from datapoint-python.

EJEP avatar EJEP commented on July 17, 2024

I think stripping the day/night, calculating and storing separately is better. It seems strange that some types of weather (partly cloudy) have day/night given but others (cloudy) do not. Given the date and time is already stored for each timestep I'm not sure there's much point storing night/day at all.

from datapoint-python.

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.