Code Monkey home page Code Monkey logo

solarposition's People

Contributors

jej avatar kenwillmott avatar per1234 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

solarposition's Issues

SolarPositionRTC Example give following error

Arduino: 1.8.12 (Windows Store 1.8.33.0) (Windows 10), Board: "Arduino Uno"

libraries\SolarPosition-master\SolarPosition.cpp.o (symbol from plugin): In function `SolarPosition::SolarPosition(float, float)':

(.text+0x0): multiple definition of `JulianDate(int, int, int)'

sketch\solarTimeRTC.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here

collect2.exe: error: ld returned 1 exit status

exit status 1
Error compiling for board Arduino Uno.

Any thoughts as to why the example code is not running? the two libraries are installed...
Thanks in advance

time zone

how to add time difference like -4.. i need exact live sun poistion for soler tracker , is that right lib to use?

Upper case Arduino.h

Hi.

Could you please change the include for Arduino.h back to upper case? Before your latest commit it was already upper case but has changed since. See this pull request #2

Thank you.

how to convert UTC to local time

I'm working on simple heliostat project, and I've found this library very useful. but very difficult to understand for me.
I'm using RTC (DS3231) and Arduino Uno. with the example sketch "solarTmeRTC" which is working perfectly with my lat and long.
the only issue is "I can't convert UTC to local time (+5.5)" could you please help me to get the local time

thank you...

solarTimeRTC.ino example prints times without zero padding

The solarTimeRTC example is missing leading zeros on the time elements, and could print ugly times like:

     9:5:1 UTC on Tuesday, April 18, 2023

Serial.print(someTime.Hour);
Serial.print(F(":"));
Serial.print(someTime.Minute);
Serial.print(F(":"));
Serial.print(someTime.Second);
Serial.print(F(" UTC on "));
Serial.print(dayStr(someTime.Wday));
Serial.print(F(", "));
Serial.print(monthStr(someTime.Month));
Serial.print(F(" "));
Serial.print(someTime.Day);
Serial.print(F(", "));
Serial.println(tmYearToCalendar(someTime.Year));

A few lines like this would solve it:

if(someTime.Second<10)Serial.print('0');

Here's a configured simulation:

https://wokwi.com/projects/362382128060882945

image

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.