Comments (5)
We use go-sunrise in the Tidbyt backend to power the "dim before sunset" feature. It has the huge advantage of not requiring any network calls.
Here's an example of the Go usage:
rise, set := sunrise.SunriseSunset(
43.65, -79.38, // Toronto, CA
2000, time.January, 1, // 2000-01-01
)
Perhaps we could add Starlark bindings for it and then we wouldn't need any special magic variable.
from community.
@joeyhoer -- I have tidbyt/pixlet#381 out at the moment which would let you do the maths. You could use sunrise.elevation_time to compute when the sun is at a certain angle below the horizon.
Or use the sunrise.elevation function to determine whether it's currently day, civil, nautical, astronomical, or night for a given location.
from community.
Perhaps we could add Starlark bindings for it and then we wouldn't need any special magic variable.
That sounds like a really good idea. Calling (and caching) api.sunrise-sunset.org for every potential latitude/longitude of Tidbyt users will probably lead to nightmares.
from community.
This was fixed by tidbyt/pixlet#124, right?
from community.
As a related request, I'm noticing that an abrupt change when "day" turns to "night" (and vice versa) in somewhat jarring. This could be resolved in the app by calculating some type of gradual transition; however, it could also be helpful to have variables for the different types of twilight (Civil twilight, Nautical twilight, and Astronomical twilight). This would provide app authors with the ability to slightly change colors to more accurately match ambient lighting without an physical light sensor connected to the Tidbyt (which would be a really cool hardware enhancement).
from community.
Related Issues (20)
- "Jacket" app doesn't update HOT 2
- Skordle Scores App Removal HOT 1
- Plex Recently Added: How to use? HOT 3
- Generated Fields not displaying in Version 1.302.41 of the Tidbyt App HOT 1
- NHL Live not working HOT 3
- Empire State Building lights - all white, no text HOT 3
- .devcontainer/install_pixlet.sh update needed HOT 1
- sleeperfantasyfootball not saving settings set in the tidbyt app. HOT 1
- ESB - not showing colors for today HOT 1
- FitbitWeight app gives OAuth error when authenticating HOT 2
- Please review/update clock_by_henry, I cannot figure out how to initiate a pull request. HOT 1
- [NSWFuelCheck] Adding additional fuel types HOT 4
- VatsimApp HOT 1
- [Feature Request] "Game day only" option for Nascar HOT 1
- [Feature Request] "Game day only" option for IndyCar HOT 2
- NJ Transit app gone missing? HOT 3
- Clarify how often PRs will be reviewed in README HOT 8
- NHL Live App Issue HOT 4
- CArenewable clean energy percentage at/above 100% HOT 2
- CA Renewable animation speed too slow HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from community.