Toon app: Buienradar

Forum about forum-provided applications on Toon

Moderators: marcelr, TheHogNL, Toonz

Post Reply
ams123
Member
Member
Posts: 73
Joined: Thu Aug 31, 2017 5:27 pm
Location: Amersfoort

Re: Toon app: Buienradar

Post by ams123 »

Toonz wrote:
ams123 wrote: its say alreadt exist si this is it cant remove buienradar can press install but all seems stay the same the tile show Utrecht no numbers with the temp no pictures
Michel30 had a similar issues with cron already existing but apparently not 100% compatible.
So try this:
1. remove cron: opkg remove cron
2. install our cron version: opkg install cron_3.0pl1-r8_qb2.ipk
3. remove buienradar via ToonStore
4. install buienradar via ToonStore
eneco-001-2:~# opkg remove cron
No packages removed.
Collected errors:
* print_dependents_warning: Package cron is depended upon by packages:
* print_dependents_warning: buienradar
* print_dependents_warning: These might cease to work if package cron is removed.

* print_dependents_warning: Force removal of this package with --force-depends.
* print_dependents_warning: Force removal of this package and its dependents
* print_dependents_warning: with --force-removal-of-dependent-packages.
eneco-001-230:~#
Toon solarpannels
ams123
Member
Member
Posts: 73
Joined: Thu Aug 31, 2017 5:27 pm
Location: Amersfoort

Re: Toon app: Buienradar

Post by ams123 »

Toonz wrote:
ams123 wrote: its say alreadt exist si this is it cant remove buienradar can press install but all seems stay the same the tile show Utrecht no numbers with the temp no pictures
Michel30 had a similar issues with cron already existing but apparently not 100% compatible.
So try this:
1. remove cron: opkg remove cron
2. install our cron version: opkg install cron_3.0pl1-r8_qb2.ipk
3. remove buienradar via ToonStore
4. install buienradar via ToonStore
after i remove buienradar from the toon
eneco-001 opkg remove cron
Removing package cron from root...
Stopping Vixie-cronstart-stop-daemon: warning: killing process 0: No such process
.
Removing any system startup links for cron ...
/etc/rc0.d/K65cron
/etc/rc1.d/K65cron
/etc/rc2.d/S65cron
/etc/rc3.d/S65cron
/etc/rc4.d/S65cron
/etc/rc5.d/S65cron
/etc/rc6.d/K65cron
Removing any system startup links for cron ...
eneco-001
eneco-001-230931:~# opkg install cron_3.0pl1-r8_qb2.ipk
Installing cron (3.0pl1-r8) to root...
Configuring cron.
Adding system startup for /etc/init.d/cron.
System startup links for /etc/init.d/cron already exis
eneco-001
Toon solarpannels
michel30
Member
Member
Posts: 286
Joined: Fri Aug 25, 2017 4:42 pm

Re: Toon app: Buienradar

Post by michel30 »

Hello,

Yes that is fine, now just install buienradar.

The cron will properly not work because there is an issue of missing file.
I add this file manual but it was not fill up with conjobs.

Marcel will look at it.

Regards,
Michel
ams123
Member
Member
Posts: 73
Joined: Thu Aug 31, 2017 5:27 pm
Location: Amersfoort

Re: Toon app: Buienradar

Post by ams123 »

ok buienradar work fine now :lol:
Toon solarpannels
Toonz
Forum Moderator
Forum Moderator
Posts: 1876
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: Buienradar

Post by Toonz »

Hi all,

some additional info on the refresh rate of the buienradar data:
- every 5 minutes the weatherstation data, the rain prediction data and the big and small buienradar images are updated (e.g. 14.05, 14.10 etc)
- other images like muggenradar, bbq radar etc are retrieved only at 2 minutes after every hour (e.g. 14.02, 15.02 etc)

If you want higher refresh rates you can change the schedule in crontab

Next weekend I plan to post a small update which stores the collected data in the volatile RAM memory instead of the flash memory.

Kind regardz,

Toonz
Last edited by Toonz on Sun Dec 24, 2017 5:55 pm, edited 1 time in total.
member of the Toon Software Collective
michel30
Member
Member
Posts: 286
Joined: Fri Aug 25, 2017 4:42 pm

Re: Toon app: Buienradar

Post by michel30 »

@Toonz

Could you please provide us how your crontab file looks like.

It looks that I lost all the information like carbage collector etc when I typte > crontab -e there is no crontab file with information.

My Buienradar is not refreshing.

Thanks.
marcelr
Global Moderator
Global Moderator
Posts: 1153
Joined: Thu May 10, 2012 10:58 pm
Location: Ehv

Re: Toon app: Buienradar

Post by marcelr »

You should at least have this:
(this is generated on a toon with no crontab prior to installation of buienradar)

Code: Select all

# crontab for root
#      The time and date fields are:
#
#             field          allowed values
#             -----          --------------
#             minute         0-59
#             hour           0-23
#             day of month   1-31
#             month          1-12 (or names, see below)
#             day of week    0-7 (0 or 7 is Sunday, or use names)
#
SHELL=/bin/sh
*/5 * * * * /root/bin/buienradar_get_data_5min.sh
2 */1 * * * /root/bin/buienradar_get_data_hourly.sh
After installing this file (root/crontab)
run:

Code: Select all

crontab /root/crontab
and the contents will end up in the actual crontab file:

/var/cron/tabs/root

Then restart the cron daemon:

Code: Select all

/etc/init.d/cron restart
And the updates should work.
hanplo
Starting Member
Starting Member
Posts: 20
Joined: Tue Aug 29, 2017 1:12 pm

Re: Toon app: Buienradar

Post by hanplo »

I am lost, sorry. Buienradar is not working anymore. I see a lot options, thats to much for me. Can I aspect there will come an update for the Toonstore and Buienradar that solve the problems that have arisen after the update. I unstalled Buienrader and did a reinstall. The inbox says I installed the latest version of Buienradar but no Buienradar on my Toon. Even the regular Weer-app and the traffic app are not working anymore.
Matt88
Starting Member
Starting Member
Posts: 18
Joined: Sun Aug 27, 2017 8:24 pm

Re: Toon app: Buienradar

Post by Matt88 »

Same problem here: Toonstore lists the new Buienradar app as available. Installation starts, Toon restarts, but there is no new Buienradar app. Tried to update and reinstall it but it would not install trought the store.
Toonz
Forum Moderator
Forum Moderator
Posts: 1876
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: Buienradar

Post by Toonz »

Matt88 wrote:Same problem here: Toonstore lists the new Buienradar app as available. Installation starts, Toon restarts, but there is no new Buienradar app. Tried to update and reinstall it but it would not install trought the store.
You will meed to manually install cron first as posted above.
After that install buienrader again via Toonstore.

Happy Xmas

Toonz
member of the Toon Software Collective
michel30
Member
Member
Posts: 286
Joined: Fri Aug 25, 2017 4:42 pm

Re: Toon app: Buienradar

Post by michel30 »

@marcelr

Thanks, this helps :-) one file did not had the option read that why it was not updating the buienradar.

At all, first install crontab manual do an vi /var/cron/tabs/root and save the file
Do a chmod 775 /var/cron/tabs/root and after that install buienradar manual.
Matt88
Starting Member
Starting Member
Posts: 18
Joined: Sun Aug 27, 2017 8:24 pm

Re: Toon app: Buienradar

Post by Matt88 »

Toonz wrote:
Matt88 wrote:Same problem here: Toonstore lists the new Buienradar app as available. Installation starts, Toon restarts, but there is no new Buienradar app. Tried to update and reinstall it but it would not install trought the store.
You will meed to manually install cron first as posted above.
After that install buienrader again via Toonstore.

Happy Xmas

Toonz
Thanks but my technical knowledge is a bit limited on this. That's why I'm very happy with the Toon Store :wink:
I know how to acces Toon via WinSCP. But where to put the cron IPK file? And how can I start the installation proces?

Merry Xmas and thanks in advance!
marcelr
Global Moderator
Global Moderator
Posts: 1153
Joined: Thu May 10, 2012 10:58 pm
Location: Ehv

Re: Toon app: Buienradar

Post by marcelr »

Just drop it in /root (that's where you end up at login).
Then install with

Code: Select all

opkg install cron_3.0pl1-r8_qb2.ipk
Now install buienradar:

Code: Select all

opkg install buienradar_8.2.1-r0_qb2.ipk
That should do it.

(or use the toonstore for buienradar)
Matt88
Starting Member
Starting Member
Posts: 18
Joined: Sun Aug 27, 2017 8:24 pm

Re: Toon app: Buienradar

Post by Matt88 »

You guys are the best! Buienradar is back again :)
Henk-JanS
Starting Member
Starting Member
Posts: 11
Joined: Mon Nov 06, 2017 4:37 pm

Re: Toon app: Buienradar

Post by Henk-JanS »

Ok - after the installation of cron & installing buienradar I thought I was done too. Turned out buienradar didn't update, so I manually added the two scripts as listed a few posts above.

Now when I run the 5-minute script manually, I get an error message that the longitude/latitude files do not exist:

Code: Select all

100 76378  100 76378    0     0   201k      0 --:--:-- --:--:-- --:--:--  229k
./buienradar_get_data_5min.sh: line 18: can't open /qmf/qml/apps/buienradar/selectedLatitude.txt: no such file
./buienradar_get_data_5min.sh: line 19: can't open /qmf/qml/apps/buienradar/selectedLongitude.txt: no such file
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
These two files indeed are not there. I have selected a weatherstation in the app, and the file 'selectedstation.txt' also exists and contains a value.

Any reasons to be concerned? Should I manually add these to files?
Post Reply

Return to “Toon Apps”