LastChart Query

This section covers the Meteobridge PRO, PRO2, NANO SD, Raspberry Pi and VM platforms exclusively

Moderator: Mattk

Post Reply
G4MHJ
Expert Boarder
Expert Boarder
Posts: 111
Joined: Fri Aug 24, 2018 9:40 pm

LastChart Query

Post by G4MHJ »

I have always posted the "Lastchart' graphic to my website but due to a mistake in Services I lost the option.

Can somebody remind what entry is required in Services.

I have FTP setup correctly as other services work.

The Lastchart.html is pathed to the root of my website.

This is my failed attempt.
Attachments
Screenshot 2021-06-20 at 13.43.24.png
Screenshot 2021-06-20 at 13.43.24.png (41.66 KiB) Viewed 849 times
Image
User avatar
Bart
Expert Boarder
Expert Boarder
Posts: 128
Joined: Fri Nov 20, 2020 12:08 am
Contact:

Re: LastChart Query

Post by Bart »

I assume that you first created that Chart and save it on your MB. Every hour or every ten minutes whatever you want.
This command is followed by the command to upload that chart to your server with ftp. Create first, then send.

So delete service #9 as it is
New Service #9 "triggered by event" (so now time interval is not applicable)
Now it is a command that follows the creation of the Chart that is stored on your MB.
So "triggered" by event #8 (example)

Now you have to show that "lastfile" the way to that root.
Depending on how it is set up at your Web hosting provider, it should look something like this:
/domains/YOUR DOMAIN NAME/public_html/your directory/[YYYY]-[MM]-[DD].html
The name itself is an example, depending on what you want to get on your website. You know that because it once worked.

And last but not least. I would check the "delete file" box in the new service #9. Otherwise, the periodically created chart will always be saved. Six times an hour (in your example) et cetera....
Now every time that periodically created Chart (#8) is created-uploaded-deleted.....and again and again until you make a mistake :roll: :lol: or really want to stop.
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re: LastChart Query

Post by admin »

1) use "chart:lastchart.txt" as template.
2) add a proper filename as Path/File: Just "/" is not enough.
Post Reply