Git Product home page Git Product logo

weather-cal's People

Contributors

adamengineering avatar anga83 avatar btorresgil avatar drakereinert avatar epizzarello avatar icsat avatar justinsimonelli avatar mvan231 avatar mzeryck avatar theguy69 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  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  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

weather-cal's Issues

Exception/invalid argument

Hey Mzeryck and other contributors, appreciate the work done on this project and the transparent widget maker.

I’m attempting to run the cal widget script but am getting an “error: The operation couldn’t be completed. Invalid argument” prompt upon running. I checked the other resolved issues and have confirmed I entered in the openweather api key and scriptable has location access. There is no line associated with the error so not sure where to start?

I got an error message

2020-10-31 13:57:08: Error on line 758:51: TypeError: undefined is not an object (evaluating 'weatherDataRaw.current.temp')

That is the error I received when trying to set up my widget for the first time. What does it mean and how can I fix it?

sunrise/sunset not working

I think there is a problem with the sunrise/sunset feature. Checked it with default configuration (only api key added). The widget shows only the sunset-icon and "12:00 AM"

I tested the api request and it themes to work.

Could you please check that?

3 digit temperature

According to the weather widget the degrees tomorrow will be 276 degrees Celsius. Although it might be a sign of the end times, I’m hopeful it’s just a bug.

Location set to no-NO and metric units. Weather in a column to the right (default setting).
42390A03-BEED-4E92-8A9A-49C97EEAFD1E

Configure default apps for items & reminders

Hi Max,

thank you so much for sharing your code with us. It helped me a lot in customizing my homescreen. However, one thing I don't understand is how to touch targets (the app which open) for the events items are defined. Is it possible to open the events and reminders items not in the system defaults but with other apps e.g., Calendars from Readdle?

Best regards
Andreas

Weather forecast

Hey,

would it be possible to add a 3 hours and 3 days forecast?
And do you think we can add a second column of events?
First 5 left and second 5 right handed?

Thank you...

The weather isn’t updating

I don’t know why but the weather stopped updating. And now is metric instead of imperial. I’ve tried “reset the widget”, “re enter the API key” and even deleted the script and installed it again but it still shows the same weather from 3 days ago.

Also, the other scripts I have work fine with the same API key. Is there some way to fix it? Thank you!

Open framework for third party functions

Hello Max,

great script and good and well documented code. Actually I do not really have an issue. It's more a question or a request.

In a German Facebook group we had the request of displaying the Data Usage or to be more precise the Data left from your T-Mobile data plan. This is how I got pointed to your work. I took your source code from the Scriptable Gallery (wich is quite old) and quickly added the requested function.

Afterwards I checked your version on GitHub, that has some great improvements compared to the Gallery version.

Since this request is only interesting to Germans and even there, only to T-Mobile Germany customers, this is in my opinion no function to add to your base branch.
Also I have a second idea for Covid-19 data from German Robert-Koch Institute, since there is a lot of attention to this data in Germany. But again, it’s more something for Germans, than for the rest of the world.

Well, it’s no problem to add those functions to your script, but the problem is to stay up to date with your improvements then.

Have you ever thought about reading user provided additional functions from an other script/file?
So everyone could add the needed/wanted functionality without loosing the benefits of your improvements.
Do you see any chance for something like that?

Looking forward to your answer.

Greetings from Germany

Andre

Can't find variable: SFSymbol

Hi, I went through all the steps of setting up the widget and when I try to preview it it gives me an error.
"Exception Ocurred
Error on line 1527:50: ReferenceError: Can't find variable: SFSymbol"

Wishlist

Hello
The widget is really awesome, if you have something else I would be missing the following.

  1. The probability of rain in the next hour. I think the rain percentage can be found here (https://api.openweathermap.org/data/2.5/onecall?)

  2. If you show both the events and reminders, it may be that an event is shown first, e.g. at 10:00. If there is a reminder at 9:00 am, it looks a bit confusing in the display

Event1
10:00
Reminder1
09:00

Perhaps a separation of events and reminders in the display would not be necessary but simply a chronological display.

09:00 Reminder1
10:00 Event1
11:00 Reminder2
11:15 Reminder3
11:30 event2

If you then maybe put time and title on one line, you could still save space.

These are just a few ideas / thoughts that might still be useful.

Thank you for the great job you are doing here.

The latest merge doesn't work.

You get the error 2020-10-09 17:10:57: Error on line 213:33: TypeError: undefined is not an object (evaluating 'data.current.temp')

I have an older version of the code with a little feature I added which I will submit as a pull request.

Reminders

Hallo, it's a great widget for my i miss the reminders in the widgets. I have daily events and reminders. If you have events today, the next 2 should be displayed and if you have reminders today, it would be great if the next two reminders are also displayed there.

And thank you very much for your great job.

regards

I have two problems

First, when i set showLocation to true, i get null in the widget. I would really like to show my city name on this beautiful widget.

Second, the temperature is not similar to that in default weather app from iOS, and i am not talking here about 1-2'C but 5-7'C difference. Can't we somehow switch the service to another ? Something like https://weather.com/weather/today/l/33.89011182351103,35.53696841112721 works perfectly fine and is more precise.

Also in openweathermap.org which option do you select from the following list of options https://openweathermap.org/api#current

[Request] Change Event from Start Date to End Date

Hi @mzeryck

Would it be possible to change line 748 in the Weather Cal code.js file to

return (event.EndDate.getTime() > currentDate.getTime()) ? Or at least make it an option?

This would mean the event would still show even if it has already started (sometimes I'm late!). Then it goes away once the event is over.

Thanks for your consideration!

Changing the Time

Hello! Is there anyway to correctly put the time or keep the time up to date with my current one? Mine is stuck at 4:54 PM

Reminders

Hi.

I have an issue with the Reminders on this widget. It only shows me the Verträge Reminder and not the other i have.

I didn't changed anything Reminder based in the script.

Thanks
image

iPhone 12 Mini

Hi, could you please update the script to support iPhone 12 mini? I can’t get my background to match up with the widget. Thank you!
968FC49D-6EF1-415E-90D3-BF9D6FCDF926

Covid & sunrise/sunset

Hi.
I love the code! very professional!

I am having 2 issues -

  1. Covid shows USA data, although i changed location to Israel. not sure why..
  2. I added Sunrise and Sunset, but i get double sunrise on the widget.

Thanks
Roi

Support for Darkmode Image?

Hi,

any plans to support a second image for the automatic switch to darkmode?
Just realize that widget looks shitty at night ;)

AM/PM to 24 hour clock

Hi again,

Title is pretty self-explanatory. for example right now the widget shows me that the sun will go down at 3:51 PM but I prefer to view the time as 15:51.
After midnight would be 03:51 instead of 3:51 AM.
Is this setting possible to change?

Thanks in advance.

Forecast font size

Is there a way to change to font size of the forecast?

I changed for the current weather:
largeTemp: { size: 34, color: "", font: "light" },
smallTemp: { size: 12, color: "", font: "" },
tinyTemp: { size: 12, color: "", font: "" },

But I can’t find any setting for the forecast temperature.

Making sure I'm using your latest script. How?

Thanks for this fantastic work.
I've just gotten started with this and downloaded your latest .js a week ago. I've noticed since I started using your widget you've made more commits (bug fixes etc). What's the best way of keeping your script updated in my scriptable app without having to re-enter my personal edits to the .js file? Scriptable doesn't auto-update the script when you make commits right?

I assume the only way to keep it updated is that I re-download your latest .js file and then manually edit my personal details?
Maybe I shouldn't even try to fix something that isn't broken, hehe. There's just something in my brain that wants to make sure I'm using the latest version of everything. OCD I guess.
Thanks again.

*edit. just checked the latest .js script. did you change the color of the battery? my phone is 100 % and the battery icon is now black in color, when it used to be white.

What should i do

So when i paste the text from the web and i run the script, the notification that show up is like this. (I already put the API from the weather website that you told).
image
image

WeatherCal v2 message

Hey @mzeryck thanks for the new update tho i have a little feedback about how the message is showing now, below is an example of how v2 shows it
image

On v1 it used to show it like this
Enjoy the rest of your day, [name].

Anyway to revert this minimal change ?

Reminders

Todays update broke the Reminders filter on my device. No matter what NUMBER I have in

// How many reminders to show. Use 0 for all. numberOfReminders: 0

it displays all Reminders with a due date, prior to this release it only showed the NUMBER I wanted

Sunrise and Sunset elements do the same thing

So I know that it changes based on the time of day. But it seems like it doesn’t matter if I put sunrise or sunset in the layout it does the same thing. I wonder if maybe we should have a third option that does the same behavior as it does today (dynamically change) and have sunrise and sunset only show those respective elements. Thoughts?

Covid

Not so much an issue. But I was wondering if you would be able to add daily new cases for the COVID section.

And thanks for all the work you put in to this 🙏

Issue

In the info you said that if I wanted to have a transparent widget I had to run the transparent widget first and then at the end of that script export it to photos and use it in the weather script right? But I can't find any export to photos in the first script.

Weather error

Hi,

I have a problem with this widget because if I try to run the script or try to add it to my homescreen, i get the error message “undefined is not an object (evalating ‘weatherDataRaw.current.temp’) so I can’t use it. Please help my by fixing this error because I really want to use this widget without issues.
Thank you!

How to set the desired Calendar to be shown?

I was wondering what to put in between the brackets to display only specific calendars?

// Set which calendars for which to show events. Empty [] means all calendars.
,selectCalendars: []

Error message

Hey!

I have the issue shown below. What can I do about it?
image

Dynamic date broken

I just downloaded the latest version, looks like the display of large date is broken?
I double checked that dynamic date is set to true... the "no events message" is also displayed on the widget.
Of course low priority ;-)

Reminders Sort Fix

@mzeryck I think the Reminders code needs a slight tweak to correctly sort by date. I put my suggestion below. Correct me if I am wrong, I am very much a for fun amateur programmer, but this tweak worked for me.

I switched the order of the sort and filter/slice functions (sort first and filter/slice second). Originally, the only reminders that were properly sorted by date were the first 3 (numberOfReminders) reminders in order of creation date. Everything else was left off even if it's due date came before. When I changed the value of numberOfRemindres = 12 (my total reminder list) the sort worked fine. When I made the change to the code order shown below, all of the reminders were properly sorted regardless of creation date.

Example: (numberOfReminders = 3)
Reminder 1 Due: tomorrow
Reminder 2 Due: in 7 days
Reminder 3 Due: in 2 days
Reminder 4 Due: Today
Reminder 5 Due: Yesterday (with overdue set to true)

Current code displays Reminders 1, 3, and 2.
New code displays Reminder 5, 4, 1.

I hope that makes sense.

`   // Sort in order of due date. SORT BEFORE THE FILTER/SLICE BELOW
    reminders.sort(function(a, b) {
    
      // Due dates are always picked first.
      if (!a.dueDate && b.dueDate) return 1
      if (a.dueDate && !b.dueDate) return -1
      if (!a.dueDate && !b.dueDate) return 0
    
      // Otherwise, earlier due dates go first.
      const aTime = a.dueDate.getTime()
      const bTime = b.dueDate.getTime()
      
      if (aTime > bTime) return 1
      if (aTime < bTime) return -1
      return 0 
    })
  
// Determine which reminders to show. DO THIS AFTER THE SORT. 
    let reminders = await Reminder.allIncomplete()
    reminders = reminders.filter(shouldShowReminder).slice(0,numberOfReminders)

    // Store the data.
    data.reminders.all = reminders
  }`

Thank you so much for this script, it is amazing. I also appreciate your work on the reminders part even though I think I read you don't use it.

Error

I'm getting this error when I run the code on Scriptable:

2020-10-08 21:56:38: Error on line 213:33: TypeError: undefined is not an object (evaluating 'data.current.temp')

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.