Comments (7)
You can alter the call to the darksky API to achieve this. Look for the following around about line199 in weather.py:
self.weather = forecast(config.DS_API_KEY,
config.LAT,
config.LON,
exclude='minutely')
This is the call and it can be adjusted as per the instructions here:
https://darksky.net/dev/docs
I prefer the "uk2" style which uses celcius for temps and miles for wind speeds etc, so I altered the API call to be the following and it works fine:
self.weather = forecast(config.DS_API_KEY,
config.LAT,
config.LON,
exclude='minutely',
units='uk2')
from piweatherrock.
@genebean Thanks. Love the display! Got it on the wall at work.
from piweatherrock.
Also curious about this. Had a look through and can't see how to change it.
from piweatherrock.
Sorry I didn’t see this sooner. I’ll look at adding a confit flag for metric.
from piweatherrock.
I am working on this but still have some bits to figure out. Here is the status https://github.com/genebean/PiWeatherRock/compare/metric
from piweatherrock.
The main thing I need to figure out is how I want to determine when to show mph
vs kph
and the like
from piweatherrock.
If you all have any additional requests for making this work better when using something other than us
for units please let me know.
from piweatherrock.
Related Issues (20)
- Ability to set each Display Mode's interval/duration HOT 1
- Error while installing Puppetlabs. HOT 3
- Language adjustment, especially in German and text size adjustment HOT 21
- Touchscreen slide between info, hourly and daily page instead of keyboard. HOT 3
- Hourly weather forecast indicates "a.m" in the evening
- Left column margin in daily and hourly forecast further to the left HOT 7
- Pull Air Quality Index data from https://aqicn.org/gaia/ HOT 10
- Display gets stuck on info mode? HOT 3
- Dual screen on Pi4 HOT 4
- Program crashes when quickly switching between info and weather
- Alt icons are black HOT 1
- What to do after installation? HOT 5
- Replace Dark Sky API HOT 48
- Add support for external sensors like DHT 22 (AM2302)
- Include Severe Weather Alerts
- Dependabot couldn't authenticate with https://pypi.python.org/simple/
- Install error
- API calls don’t have error handling resulting in too many daily calls
- Package as Flatpak
- Impossible to install now 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 piweatherrock.