Charts: Creating an EXE instead of an HTML

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

Moderator: Mattk

Post Reply
User avatar
Bart
Expert Boarder
Expert Boarder
Posts: 128
Joined: Fri Nov 20, 2020 12:08 am
Contact:

Charts: Creating an EXE instead of an HTML

Post by Bart »

I have a newly set MB RPI. When I create and save a chart myself. Then it is saved on my PI as an executable file (exe). All preset chart go well.
That is different from my NanoSD where an html is stored. When I view the 'exe' with BBEdit or Atom the content is the same as the html on the NanoSD. Changing the extension is not the solution. Does anyone know the correct solution? And who knows how I avoid this problem? Otherwise I get an exe every time I create a chart myself.
Thanks
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re: Charts: Creating an EXE instead of an HTML

Post by admin »

Meteobridge does not generate charts with extension "exe". Did you try to open it with a browser regardless what the OS your are using to examine the files does tell you?
User avatar
Bart
Expert Boarder
Expert Boarder
Posts: 128
Joined: Fri Nov 20, 2020 12:08 am
Contact:

Re: Charts: Creating an EXE instead of an HTML

Post by Bart »

Renaming the file to .html is not a sollution. Opening in safari, e.g. is not possible. So I selected the content and pasted in an empty exiting .html and it worked. All in BBdit btw It is now accessible as an HTML. So it was an HTML but it enters the charts folder (viewing on MACOS) as if it were an exe. I want to make it a periodical upload to my website....In this way that won't work. What is wrong?
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re: Charts: Creating an EXE instead of an HTML

Post by admin »

I am working with Macs on my own. When I generate a chart on the Meteobridge RPI by pressing the "Export to charts folder" button on "Graphs - Generate Chart" tab it exports a html file into the charts folder. When I connect to this folder from my Mac I see a html file and when I click onto it, it opens fine in Safari. Please do as I explained above and you will see that it works flawlessly.

How does your workflow differ from my explanation?
User avatar
Bart
Expert Boarder
Expert Boarder
Posts: 128
Joined: Fri Nov 20, 2020 12:08 am
Contact:

Re: Charts: Creating an EXE instead of an HTML

Post by Bart »

Yep. Thats exactly what I do. But in this case the file that appears is a file which give MACOS the idea that it is an executable file. Clicking on it wile gives a blanc/strange doc and does not open safari. Clicking right on the file gives the opportunity to choose another app to ope the document with. Safari is not one to choose from. So it is not the normal (you described and what I am used to) operation.
User avatar
Bart
Expert Boarder
Expert Boarder
Posts: 128
Joined: Fri Nov 20, 2020 12:08 am
Contact:

Re: Charts: Creating an EXE instead of an HTML

Post by Bart »

Just kept thinking why something different is happening on that MB RPI now. Could it be because the graph is defined by me (see 1st post)? But the outcome of that should also be an html.
User avatar
Bart
Expert Boarder
Expert Boarder
Posts: 128
Joined: Fri Nov 20, 2020 12:08 am
Contact:

Re: Charts: Creating an EXE instead of an HTML

Post by Bart »

Is there someone with a solution? Thanks in advance. :?:
svampen
Junior Boarder
Junior Boarder
Posts: 32
Joined: Fri Aug 16, 2019 10:57 am
Location: Sweden
Contact:

Re: Charts: Creating an EXE instead of an HTML

Post by svampen »

Sounds a bit strange.

Are you sure you have not forgot to enter the extension in the upload? The .html must be there.

MacOS and other Unix/Linux operating systems have some permission settings for each file. One of these settings is the execution-bit. If set, the file is treated as an executable file. I did some tests with this bit and extension, however I could not really recreate your issue.

But do check the settings in the meteobridge/services first:
Skärmavbild 2021-08-03 kl. 20.59.36.png
Skärmavbild 2021-08-03 kl. 20.59.36.png (25.55 KiB) Viewed 2262 times
PWS Villshärad/Halmstad, Sweden: vader.fishmoose.se DavisVPro + MB NanoSD.
User avatar
Bart
Expert Boarder
Expert Boarder
Posts: 128
Joined: Fri Nov 20, 2020 12:08 am
Contact:

Re: Charts: Creating an EXE instead of an HTML

Post by Bart »

Example created file 08.52.36.png
Example created file 08.52.36.png (61.45 KiB) Viewed 2237 times
I have set up a few html uploads on my MB NanoSD. I use the command you suggested. On the MB RPI ta file is created that is not seen as a "last-file" as intended. If I double click on it, nothing happens on MacOs, the content is indeed convertible with BBedit to a (also for browser) readable HTML, see 3th post.

This is what I get on my MB RPI, the file "AIR" has the properties of an executable unix file:
svampen
Junior Boarder
Junior Boarder
Posts: 32
Joined: Fri Aug 16, 2019 10:57 am
Location: Sweden
Contact:

Re: Charts: Creating an EXE instead of an HTML

Post by svampen »

That is strange.
I did try the same thing on my Nano; a custom graph -> create -> export.
The .html is added by automagic. You obviously have tried this also with your Nano.

Possibly this is a Raspberry-issue?? Unfortunately I have no installation of Meteobridge on a pi to test on. :(

Just for test, is it possible to add the .html already at the chart's definition page? Will that work or make difference?

Definition:
Skärmbild från 2021-08-04 10-32-06.png
Skärmbild från 2021-08-04 10-32-06.png (56.66 KiB) Viewed 2232 times
My test, (that seem to work):
Skärmbild från 2021-08-04 10-38-47.png
Skärmbild från 2021-08-04 10-38-47.png (18.78 KiB) Viewed 2232 times
PWS Villshärad/Halmstad, Sweden: vader.fishmoose.se DavisVPro + MB NanoSD.
User avatar
Bart
Expert Boarder
Expert Boarder
Posts: 128
Joined: Fri Nov 20, 2020 12:08 am
Contact:

Re: Charts: Creating an EXE instead of an HTML

Post by Bart »

Hopeful I added .html to the file. I had completely forgotten. Stupid of me, keep looking over that. But that still didn't work. So I defined a whole new graph. And that turned out to be the solution.
Now upload it to my site and that's it. I posted this issue here two months ago or something. I thought it was indeed an MB RPI problem because it works on my NanoSD. Felt like a voice crying in the wilderness. And that's because I forgot something so simple. Thanks for the suggestions and thinking along Svampen.

Bart
svampen wrote: Wed Aug 04, 2021 10:43 am Possibly this is a Raspberry-issue?? .....
svampen
Junior Boarder
Junior Boarder
Posts: 32
Joined: Fri Aug 16, 2019 10:57 am
Location: Sweden
Contact:

Re: Charts: Creating an EXE instead of an HTML

Post by svampen »

Bart, I am not really sure what might have been wrong, but I am very glad you sorted it out!

All the best! :)
PWS Villshärad/Halmstad, Sweden: vader.fishmoose.se DavisVPro + MB NanoSD.
User avatar
Bart
Expert Boarder
Expert Boarder
Posts: 128
Joined: Fri Nov 20, 2020 12:08 am
Contact:

Re: Charts: Creating an EXE instead of an HTML

Post by Bart »

Thanks to you I added the “.html. I suppose that the MB Rpi makes (unix) an executabel if you do not add a file extension.
Bart
Post Reply