Graph Upload limited to 30? **solved**

Discussion of the Meteohub software package

Moderator: Mattk

Post Reply
cbhiii
Gold Boarder
Gold Boarder
Posts: 306
Joined: Fri Feb 15, 2008 2:02 am
Location: Michigan, USA
Contact:

Graph Upload limited to 30? **solved**

Post by cbhiii »

Hi,

I have started to use the Graph Upload for my graphs to FTP on my site.

Can I increase the limit of 30 CRON jobs?

Thanks.
Station: Davis Vantage Pro2 Plus
Hardware: Raspberry Pi 2 (Meteohub status)
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7953
Joined: Mon Oct 01, 2007 10:51 pm

Re:Graph Upload limited to 30?

Post by admin »

My Meteohub generates and uploads 46 graphs every 5 minutes. Where did you find a formal limit for this?

does cron throw an error? never seen this

my graph generations don't start all exactly at the same time. As there are some graphs for the week or month this does not need to computed every 5 minutes because nobody will see a change.
cbhiii
Gold Boarder
Gold Boarder
Posts: 306
Joined: Fri Feb 15, 2008 2:02 am
Location: Michigan, USA
Contact:

Re:Graph Upload limited to 30?

Post by cbhiii »

After 30 graphs or cron jobs listed in the graph upload section the webpage does not respond. You have to delete some before you can save the page.
Station: Davis Vantage Pro2 Plus
Hardware: Raspberry Pi 2 (Meteohub status)
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7953
Joined: Mon Oct 01, 2007 10:51 pm

Re:Graph Upload limited to 30?

Post by admin »

as the params are transfered via http-get on the url this might get too long. Could you please send me a paste of your url when being at the limit after pressing \"save\". This limit can depend on browser limits and other factors.

I will look if I can switch to http-post for avoiding this limit (if my theory is right).
cbhiii
Gold Boarder
Gold Boarder
Posts: 306
Joined: Fri Feb 15, 2008 2:02 am
Location: Michigan, USA
Contact:

Re:Graph Upload limited to 30?

Post by cbhiii »

Here is my URL for Graph Upload. I can't click save after this many graph uploads.

... too long line, removed by admin ....
Station: Davis Vantage Pro2 Plus
Hardware: Raspberry Pi 2 (Meteohub status)
cbhiii
Gold Boarder
Gold Boarder
Posts: 306
Joined: Fri Feb 15, 2008 2:02 am
Location: Michigan, USA
Contact:

Re:Graph Upload limited to 30?

Post by cbhiii »

I modified some of my graph uploads with more text in the 'cron schedule' and I had to remove more graphs to get it to save. So, yes, it appears to be an issue with too much text in the URL.
Station: Davis Vantage Pro2 Plus
Hardware: Raspberry Pi 2 (Meteohub status)
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7953
Joined: Mon Oct 01, 2007 10:51 pm

Re:Graph Upload limited to 30?

Post by admin »

switching to http-post does do the trick. will be in the 2.1a update.
cbhiii
Gold Boarder
Gold Boarder
Posts: 306
Joined: Fri Feb 15, 2008 2:02 am
Location: Michigan, USA
Contact:

Re:Graph Upload limited to 30?

Post by cbhiii »

Thanks Boris. That will help a lot. Didn't want to have to start editing my crontab. :o
Station: Davis Vantage Pro2 Plus
Hardware: Raspberry Pi 2 (Meteohub status)
Post Reply