jclarke0000 / mmm-darkskyforecast Goto Github PK
View Code? Open in Web Editor NEWMagic Mirror module to display weather information using the Dark Sky API
Magic Mirror module to display weather information using the Dark Sky API
I checked to see if you'd fixed this in the 1.6
tag, but it's still in there.
In your node_helper.js
, you're doing this:
request({url: url, methid: "GET"}, function( error, response, body) {
method
is misspelled.
You also have request
as a dependency in your package.json
- it's not necessary as it's already a dependency in MagicMirror's package.json
file.
To be honest, you don't need any of the dependencies in your package.json file at all - moment
and request
are both production dependencies of MagicMirror and npm
shouldn't be included at all. Might be nice to remove them, so people don't have to do npm install
for this module.
The label_days and label_timeFormat are always Formatted UpperCase, e.g. "MON" instead of "Mon". Ist it possible to Remove the Ucase? I can't find it in the Code, bur i'm not good in js ;)
btw: The Module is great"
I've recently noticed that the summary of the weather doesn't always update. But all other aspects of the module does. The summary displays a information from a previous day. Has anyone experienced this? updateInterval is set to 10. It has been happening since I've installed the module.
Any help, would be appreciated.
I discovered that Pirate Weather has created an API designed to be a drop in replacement/ alternative to the Dark Sky API. Could you add this to DarkSkyForecast? Using apiBase: "https://api.pirateweather.net" and my Pirate weather API key in the default weather app for weatherProvider: "darksky" does work. Please see https://pirateweather.net/getting-started for more info. Thank you.
Is there anyway to modify or remove the header text "WEATHER"?? I feel the module is pretty self explanatory and I like to keep the space used as minimal as possible. I looked through a few files but couldn't see a reference to it. thanks!
Hello - this is great! I've been looking for a module that incorporated a daily forecast with an hourly ever since the Weather Underground API went down - this is Awesome and looks great.
I'd like to ask for a feature when you are able - can you add humidity? At least to the current conditions at the top?
If I understand it correctly setting units: "si",
should result in wind as m/s and rain as mm/h but it only affects wind for me.
{
module: "MMM-DarkSkyForecast",
header: "Väder",
position: "top_right",
classes: "default everyone",
disabled: false,
config: {
apikey: "xxx",
latitude: "59.3885351",
longitude: "17.0499467",
iconset: "4c",
concise: true,
forecastLayout: "table",
colored: true,
units: "si",
hourlyForecastInterval: 6,
maxHourliesToShow: 3,
maxDailiesToShow: 2,
label_timeFormat: "HH",
label_days: ["Sön", "Mån", "Tis", "Ons", "Tors", "Fre", "Lör"],
}
},
The animation of the icons seems quite heavy on cpu load.
On my Pi4 when only the main icon is being animated my CPU most of the time is at about 30% usage. If I turn off the animation it is at about 10%. There must be a way to make it more economical (animated gif)?
My MM moves around to many locations, I would like to be able to send a notification to this module from other modules to update the latitude and longitude so that I may be able to display the current local conditions.
The module just stuck at 'Loading'...
Error in pm2 log:
0|mm | [MMM-DarkSkyForecast] 29-Jul-23 12:15 ** ERROR ** null
Hello!
So I enjoy your module, but I was just wondering how I could limit the number of days to show. Right now it shows three entries for today, plus the next 4 days. I would like to limit that to the same three entries for hourly today, then the next 3 days rather than 4. I couldn't find an option in the config guide. Is there a way?
How can I change this to inches and Fahrenheit. as well as mpg not kmph?
Apple has purchased Dark Sky and is shutting down the API.
The API will continue to function through the end of 2021.
More Informations
great module.. Would it be possible to added the moonphase as well as sunrise and sunset times?
Hi there;
I am from Turkey and where 24- hour time format is used. So "am" and "pm" aren't used here for time. I want to change time format of the hourly weather forecast to 24-hour time format. I changed time format in MagicMirror config.js file. However I can't modify for this module.
Do you have any idea about change time format for this module?
Hello there,
We wanted to let you know about a change coming to Dark Sky. Beginning on March 31st, 2023 the Dark Sky API will no longer be available. To prepare, we encourage you to learn more about WeatherKit, a new Apple API available on iOS, iPadOS, macOS, tvOS, and web that provides access to the new Apple Weather forecast data.
You can learn more here.
As always, we appreciate your support, and will continue to update you with any future changes.
Thanks, The Dark Sky Team
First of all, thanks for this module. I don't know is future after 2021 :(
I can't find in the option unit how to set only precipitation in mm/h instead of % ?
Thanks
Even though my configuration is this in config.js, the module still shows in middle of my display taking up most of my screen?
It shows "Weather" underlined in the top right, but shows everything else in the wrong place??
{
module: "MMM-DarkSkyForecast",
header: "Weather",
position: "top_right",
classes: "default everyone",
disabled: false,
config: {
apikey: "---------",
latitude: "--------",
longitude: "--------",
iconset: "4c",
concise: false,
forecastLayout: "table"
}
},
Any help would be much appreciated!
How can we add severe weather alerts for location? Do you have any plans on adding it to this module?
first of all, great that you made a new weather module like MMM-WunderGround. I really liked that one.
I have a problem with hourlyForecastInterval. If I don't put it in de config and leave it to the default and put maxHourliesToShow : "6", in the config, than I receive 6 forecasts with 3 hours apart.
When I put hourlyForecastInterval to 1 or 2 I only get 2 forecasts that are 10 hours apart.
MagicMirror version: 2.5.0
Node Version: 10.15.0
MMM-DarkSkyForecast version: 1.0.0
Config.js configuration:
{
module: 'MMM-DarkSkyForecast',
header: "Weather",
position: 'top_center',
disabled: false,
config: {
updateInterval: 10,
//requestDelay: 250,
//updateFadeSpeed: 500,
//language: 'en',
//colored: true,
units: 'us',
//showCurrentConditions: true,
//showExtraCurrentConditions: true,
//showSummary: true,
forecastHeaderText: "O'Neill, NE",
//showForecastTableColumnHeaderIcons: true,
//showHourlyForecast: true,
hourlyForecastInterval: 2,
maxHourliesToShow: 5,
//showDailyForecast: true,
maxDailiesToShow: 5,
//showPrecipitation: true,
//showWind: true,
//concise: true,
iconset: '5c',
apiKey: 'blocked for privacy',
latitude: '42.457649',
longitude: '-98.647789',
//useAnimatedIcons: true,
forecastLayout: 'tiled',
//showInlineIcons: true,
},
},
I saw someone was able to adapt this module to Pirate Weather, but I notice that the free subscription always expires after 1 month.
Therefore I was wondering if this could be easily adapted to tomorrow.io too?
I tried playing at editing just what was modified for Pirate Weather, but I couldn't manage to get then the module running succesfully...
PS: How can I edit the "Powered by DarkSky" text at the module's bottom?
This module looks awsome! I wanted to ask if there is a way to display UV index for current weather?
Hi, First... Amazing module! thanks for the hard work.
I'm trying to edit your CSS but can't find the HTML to really test it against. I hopefully can explain what I'm trying to do. This is what I have now (still a work in progress)
I would like to make tiled on 2 rows and blend the top row to current weather and hourly forecast with daily forecast below it.
EG (bad mspaint edit)
Any chance you can help point me in the right direction or point me at the html rendered version of the module so I can work on the CSS myself.
Any help you can offer would be appreciated.
Cheers
MMM-DarkSkyForecast/node_helper.js
Line 16 in 946ee89
DarkSky docs link in README.md now refers to https://support.apple.com/en-us/102594
It appears that Apple Developer Program membership is now required to access this API (which has, in any event, changed).
Apple Developer Program membership
Access to WeatherKit is included in the Apple Developer Program, which also provides all the tools, resources, and support you need to develop and distribute apps — including access to beta software, app services, testing tools, app analytics, and more.
Availability and pricing
WeatherKit provides up to 500,000 API calls a month per Apple Developer Program membership. If you need additional API calls, the Account Holder of your Apple Developer Program membership can subscribe in the Account tab of the Apple Developer app. Subscription plans are priced in U.S. dollars, or in local currency where available.
500,000 calls/month: Included with membership
Transitioning from Dark Sky
Support for the Dark Sky weather service will end March 31, 2023. To transition to WeatherKit and continue accessing weather data for your apps, webs apps, websites, and services, you’ll need to be a member of the Apple Developer Program, review special considerations, and map fields to their appropriate names.
If you’re a nonprofit organization, accredited educational institution, or government entity, you may qualify for an Apple Developer Program membership fee waiver.
Is this module still viable given these changes?
This looks great and I followed the instruction but it wont load. When I refresh the screen I can see it pop up that it is loading for a second then it disappears.
I downloaded the git hub file, unzipped it and used SSH to place in my modules. I added the below to my magic mirror config.js
{
module: "MMM-DarkSkyForecast",
header: "Weather",
position: "top_right",
classes: "default everyone",
disabled: false,
config: {
apikey: "-------",
latitude: "444444",
longitude: "44444",
iconset: "4c",
concise: false,
forecastLayout: "table"
}
API key is correct along with lat and log. I removed them for my security.
I then added this in my config magic mirror add-on-
{
"name": "MMM-DarkSkyForecast",
"git": "https://github.com/jclarke0000/MMM-DarkSkyForecast.git",
"cmd": ""
},
This is the error i am getting on the add-on magic mirror log
[MMM-DarkSkyForecast] 2-Mar-19 15:23 ** ERROR ** null
When all of that didnt work I went to the MMM-darkskyforecast.js and filled in some of the "" apikey, LAt and Log.
Not sure what else to do. I have only had Magic mirror downloaded for a month so I believe it is the 2.2 or newer.
Great module and I want to use it for different locatinons in combination wiht Netatmo. In order to do that I installed the Netatmo AgP42 two times in different folders, renamed the netatmo.js accordingly and changed the module name withing the netatmo.js. Works perfect. I tried the same appraoch with the DarkSkyForecast, but it doesn't work.
Is there a chance to have multiple installations of the module?
Thanks in advance!
When I use the default Long and Lat, the module loads. London works as does Vancouver and New York however when trying Hawaii, Sydney, Paris, Cape Town, Moscow, Melbourne, and Wellington, the module will not load. Using https://www.latlong.net/ for Long and Lat.
When I use the same Long and Lat in this module that works with the Forecast.io module, the module won't load. At first, I thought it was southern hemisphere's (given the Lat is a 'negative' number) but that doesn't appear to be the cause.
Anyone able to replicate this?
APPLE DID IT
Support for the Dark Sky API ended on March 31, 2023, and has been replaced by Apple’s WeatherKit API. Developers can use WeatherKit in apps with iOS 16, iPadOS 16, macOS 13, tvOS 16, and watchOS 9 or higher with a platform-specific Swift API, and on any other platform with a REST API.
Anyway we can get this to work with another API I really Enjoyed the UI of this module.
Any other way to obtain Dark Sky API key as they have shutdown new sign up's?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.