WheaterBar Problem

Amiwell · 7300

Amiwell

  • Legendary Member
  • *****
    • Posts: 2616
    • Karma: +35/-4
  • Peace
on: July 24, 2022, 09:01:02 AM
hi

how i can to configure weatherbar by yannik erb for my lcation

Thank's



AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3762
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #1 on: July 24, 2022, 11:46:03 AM
To enter data your Country or City, you need to go to "https://www.bbc.com/weather",  once you type the name of your city or town in the appropriate tab, and give a enter, the 7 numbers to be added in the "WeatherBar" will appear on the Browser address bar next to the link, see screenshot.

The weather numbers found can be added directly either on the GUI Preferences, or manually in the configuration file named "WeatherForecast.cfg"


Amiwell

  • Legendary Member
  • *****
    • Posts: 2616
    • Karma: +35/-4
  • Peace
Reply #2 on: July 24, 2022, 12:08:43 PM
ok thank you :)



magorium

  • Legendary Member
  • *****
    • Posts: 634
    • Karma: +62/-0
  • Convicted non contributor
Reply #3 on: July 24, 2022, 08:17:50 PM
Close but not the way you should do it.

You can type the name of your city or the city_id number.

The city_id number is mostly common for all weather websites but does not have to be

The website that yannick uses is https://openweathermap.org and the list with city_id numbers can be found here: http://bulk.openweathermap.org/sample/city.list.json.gz (although the file was not actually gzipped for me).

This is the list that the websites openweathermap.org uses, according to their API documentation.

Please use that information instead.


AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3762
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #4 on: July 25, 2022, 01:17:27 AM
magorium I know those links, the file posted by you "city.list.json" includes all the cities and can be browsed with a text reader, but I find the link posted by me much easier, convenient and faster, just a simple click to get the numbering, thanks anyway for posting them.


Amiwell

  • Legendary Member
  • *****
    • Posts: 2616
    • Karma: +35/-4
  • Peace
Reply #5 on: July 25, 2022, 05:36:02 AM
How can I start the program when the system starts

Thanks again



AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3762
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #6 on: July 25, 2022, 06:02:07 AM
You can do this in two ways, either through WBStartup or user-startup !

If you use the WBStartup, you have to delete the other icons in the folder (readme etc..) and you have to add in the Icon Tooltype the parameter DONOTWAIT

If you use user-startup instead, you need to add the attached command "after assignment to LUA"

C:WBRun DH1:Extras/Utility/WeatherBar/WeatherBar >NIL:

Change the command to match your WeatherBar path.


Amiwell

  • Legendary Member
  • *****
    • Posts: 2616
    • Karma: +35/-4
  • Peace
Reply #7 on: July 25, 2022, 06:35:28 AM
thank you amigasystem yes i use user-startup :)



magorium

  • Legendary Member
  • *****
    • Posts: 634
    • Karma: +62/-0
  • Convicted non contributor
Reply #8 on: July 25, 2022, 10:16:09 AM
Another small remark about this weatherbar script:

Don't be an ass and increase the update-interval inside the script itself (as Yannick tried to minimise the update frequency). Just use the GUI for that, but also here be gentle with selecting a update-frequency. He probably used a free API key and that has restrictions, otherwise the application will (eventually) get blocked by the website.


AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3762
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #9 on: July 25, 2022, 11:19:19 AM
magorio I didn't quite understand what you wrote, if you are referring to an automatic weather update, yes that would be a nice feature.

What's missing is the possibility (maybe there is), is to be able to choose the GUI location and maybe the possibility of an iconify of the GUI with the ability to see on the bar just some more important data.


magorium

  • Legendary Member
  • *****
    • Posts: 634
    • Karma: +62/-0
  • Convicted non contributor
Reply #10 on: July 25, 2022, 03:34:11 PM
magorio I didn't quite understand what you wrote, if you are referring to an automatic weather update, yes that would be a nice feature.
In your screen shot there is an option in the configuration window of weatherbar named "update rate".

This is the so-called update-interval and represent the time-interval that is used to update the weather information. It is the amount of time that needs to pass before new information is gathered about the weather from the website. Thus weatherbar request the website to provide this information.

The website limits the amount of requests per application. Say the website limits this to 100 requests per hour and imagine there are 100 people running weatherbar at the same time and who configured weatherbar to update the weather information every second....

In such a case the website will 'block' the weatherbar application from being able to request any new information about the weather, making the application useless for both you (and other people using it).

So, as i stated: do not be a jerk and think only of yourself but also about other people and be gentle with modifying the update interval. Because you can also manipulate the restriction that Yannick has build in the script you could circumvent his restriction and become an even bigger jerk if you do so  :)

Does that information make more sense to you now ?

Quote
What's missing is the possibility (maybe there is), is to be able to choose the GUI location and maybe the possibility of an iconify of the GUI with the ability to see on the bar just some more important data.
Yes, that is an omission but also understandable as zulu (is that what it MUI for Lua is called ?) has some restrictions.
« Last Edit: July 25, 2022, 03:37:31 PM by magorium »



AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3762
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #11 on: July 25, 2022, 04:44:38 PM
Ok now I get it, on AROS One WheaterBar will "not be started automatically" and I will leave the values as default, then the user will configure everything.

« Last Edit: July 25, 2022, 04:49:22 PM by AMIGASYSTEM »



Amiwell

  • Legendary Member
  • *****
    • Posts: 2616
    • Karma: +35/-4
  • Peace
Reply #12 on: July 26, 2022, 05:48:00 AM
We start and do not load the saved settings!



AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3762
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #13 on: July 26, 2022, 06:48:18 AM
No better not to start it automatically, and use it only when needed, also the default setting affects what magorium mentioned.


Amiwell

  • Legendary Member
  • *****
    • Posts: 2616
    • Karma: +35/-4
  • Peace
Reply #14 on: July 26, 2022, 07:23:29 AM
It is better to launch it when you want, ok :)