AROS World Exec
General => Help => Topic started by: Amiwell on July 24, 2022, 09:01:02 AM
-
hi
how i can to configure weatherbar by yannik erb for my lcation
Thank's
-
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"
-
ok thank you :)
-
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 (https://openweathermap.org/current).
Please use that information instead.
-
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.
-
How can I start the program when the system starts
Thanks again
-
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.
-
thank you amigasystem yes i use user-startup :)
-
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.
-
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.
-
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 ?
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.
-
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.
-
We start and do not load the saved settings!
-
No better not to start it automatically, and use it only when needed, also the default setting affects what magorium mentioned.
-
It is better to launch it when you want, ok :)
-
As long as you use the default settings for weatherbar it should not matter much.
That is why i made the post about leaving the (update interval) settings alone and especially not tamper with the script itself as Yanick build in some form of protection to not "overload" the webserver. As long as you play by those rules then all should be fine.
You guys are the ones who know how many times your distribution gets downloaded... but the real question is how many people actually use your distribution as a daily driver _and_ who are egoistic enough to want to have a weather update every second/minute. The default hour interval setting should be enough for most people (excluding weather fetishists) :)
The goal of my post was to inform so that people know how things work in case they are not aware.
Luckily for use there is also an alternative that was developed by markusF, although perhaps lacking some features when comparing 1:1.
-
Luckily or unluckily I don't need a weather update every minute. ;D
I have no air conditioning so for the rest of the Summer the forecast is VERY HOT 🔥🔥🔥
-
@Magorium
I don't know how many use my distribution, however I have not tampered with any scripts :)
-
Tampering with the script requires knowledge of the LUA language, so I did not tamper with the script either.
Also if I don't know how a program works I avoid mofifying it or ask the developer if he can do it.