MB PRO: Periodical every full minute

All about the standard Meteobridge devices based on mobile routers from TP-Link, D-Link, ASUS

Moderator: Mattk

Post Reply
User avatar
tofe
Junior Boarder
Junior Boarder
Posts: 27
Joined: Sun Jun 30, 2013 10:08 pm
Contact:

MB PRO: Periodical every full minute

Post by tofe »

Would it be possible to add in the Periodical the dropdown menu "every full Minute"?
The reason is that on my web server, an XML file is expected in the seconds 00-10 from import cronjob. Thanks. :)
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7874
Joined: Mon Oct 01, 2007 10:51 pm

Re: MB PRO: Periodical every full minute

Post by admin »

Why that? Your server should react on receiving data by an http request and
not acting time controlled on asynchronous uploads.
I would strongly recommend to rethink your server process design.
User avatar
tofe
Junior Boarder
Junior Boarder
Posts: 27
Joined: Sun Jun 30, 2013 10:08 pm
Contact:

Re: MB PRO: Periodical every full minute

Post by tofe »

To save the number connection and traffic, every minute a very small XML file on the server geladen.Von this XML data via cron job will be imported into a database for archiving. Next also interested can access this XML and can itself read out desired data. About httpRequest I had to write the data to an XML file. Or create in a database and then an API for external access.

Are generated with "Upload every minute" data once the second 20, once the second 50. With so different intervals the values max1 or min1 are no longer representative because uploads 30 seconds or more of data is missing between two.

The weatherBoxx could this kontinuireliche every full minute option on the system performance not meet, so I disposed of them disappointed after a short time. The MB PRO I bought because it is powerful and this option (my requirement) could meet.
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7874
Joined: Mon Oct 01, 2007 10:51 pm

Re: MB PRO: Periodical every full minute

Post by admin »

Sending data every minute via FTP is NOT recommended by any means.
That has nothing to do with capabilities of MB PRO. It has to do with
overhead FTP is producing when setting up a connection. It is not
acceptable that this upload blocks other network processes for
longer times. It is simply a bad design.

To feed a database by a cronjob that hopes that data will be uploaded via FTP right
in time of a 10 second window is not how to do things. My recommendation is to write a
small perl script that gets triggered by a HTTP request fired by Meteobridge.
This is clearly the way to go. I am sure you will come to the same conclusion when you
think a bit about it.

You fire lots of bug reports/requests here, so please open your mind and accept
a design bug on your side this time. I think that is fair :lol:
User avatar
tofe
Junior Boarder
Junior Boarder
Posts: 27
Joined: Sun Jun 30, 2013 10:08 pm
Contact:

Re: MB PRO: Periodical every full minute

Post by tofe »

Thank you for your statement. I can understand it, and it would be for me a way to do this via HTTP request. I want to have the data for visitors and customers quickly and in about the same time on my server. Is it possible to have the HTTP request "every full minute" in the drop-down menu?

For security reasons I have not HTTPRequest used, because it is easier a fake HTTP request to send as a fake file upload to FTP. After a short check I can integrate a always changing Secuitiy-Token with HTTP request! :D

I want to replace existing systems, remain the target requirements. I'm open to any idea, and HTTP request are a great idea. :idea: :) If only HTTP request "every full minute" could be done, that would be the solution for my requirements.

Would that be a good compromise? :)
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7874
Joined: Mon Oct 01, 2007 10:51 pm

Re: MB PRO: Periodical every full minute

Post by admin »

Latest release allows triggering on "every started minute" for FTP and also HTTP.
It is not guaranteed that it will trigger on the very first second, but as long as no
other process is keeping upload process busy, it should happen within the first 5 seconds.
User avatar
tofe
Junior Boarder
Junior Boarder
Posts: 27
Joined: Sun Jun 30, 2013 10:08 pm
Contact:

Re: MB PRO: Periodical every full minute

Post by tofe »

You are great! Thank you very much!
Post Reply