home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
HTPC Projects
Hardware
Ambient Lighting System
AtmoHue - BETA - Philips Hue support for AtmoLight & AtmoWin
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="killer8" data-source="post: 1110491" data-attributes="member: 127854"><p>I did some searching on how to get sunset information etc. Seems you don't need an API since it can be simply calculated. For example see this <a href="http://stackoverflow.com/questions/2056555/c-sharp-sunrise-sunset-with-latitude-longitude" target="_blank">http://stackoverflow.com/questions/2056555/c-sharp-sunrise-sunset-with-latitude-longitude</a></p><p></p><p>Another option is this json api <a href="http://openweathermap.org/current" target="_blank">http://openweathermap.org/current</a> when I look at the response it includes sunrise/sunset information<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>Since I think you are using C# (not sure but whole mediaportal is written in that right?) you could also consider a library like <a href="http://www.codeproject.com/Articles/29306/C-Class-for-Calculating-Sunrise-and-Sunset-Times" target="_blank">http://www.codeproject.com/Articles/29306/C-Class-for-Calculating-Sunrise-and-Sunset-Times</a></p><p></p><p>I'm a Java dev myself with very little C# experience(although it's quite similair), so thought maybe above information can help you a bit and prevent you from spending to much time on a solution<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="killer8, post: 1110491, member: 127854"] I did some searching on how to get sunset information etc. Seems you don't need an API since it can be simply calculated. For example see this [url]http://stackoverflow.com/questions/2056555/c-sharp-sunrise-sunset-with-latitude-longitude[/url] Another option is this json api [url]http://openweathermap.org/current[/url] when I look at the response it includes sunrise/sunset information:) Since I think you are using C# (not sure but whole mediaportal is written in that right?) you could also consider a library like [url]http://www.codeproject.com/Articles/29306/C-Class-for-Calculating-Sunrise-and-Sunset-Times[/url] I'm a Java dev myself with very little C# experience(although it's quite similair), so thought maybe above information can help you a bit and prevent you from spending to much time on a solution:) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
HTPC Projects
Hardware
Ambient Lighting System
AtmoHue - BETA - Philips Hue support for AtmoLight & AtmoWin
Contact us
RSS
Top
Bottom