Weather Software > Cumulus
Moon sun images {Solved}
Goldguru:
Is it possible to display moon phase & sun height images when using the regular http://192.168.0.1XX:8998/index.html interface?
Most referances I can find are FTP related & sadly so badly intermixed with C.1 that its almost impossible to tell where C.1 ends & CMX begins in the explainations.
I attemped to create an FTP on my local machine & was able to enter into google the path to the web files but all that showed was the web files..lol.
'm guessing I missed the template part ?
Thnx Gold
mcrossley:
MX generates the moon phase image in the /web folder as /web/moon.png
To display on the dashboard interface you would have to configure it as an "Extra File", specify the local path as "web/moon.png", the remote path as "interface/img/moon.png", disable Process, disable FTP.
Then on your dashboard page you would have to add an image tag into the html of <img src="img/moon.png">
Goldguru:
my CMX is the last release 3116
in my web folder i have MoonBaseImage.png
folder path C:\CumulusMXDist3116\CumulusMX\web
in settings/extra web files I put web\MoonBaseImage.png with no other box's ticked do i need utf-8 ticked?
I'm running win7
so I would then open index.htm & edit in
<img src="img/moonbaseimage.png">
does it matter where it is added
or just add it below <head>?
Thnx Gold
mcrossley:
No, the base image is what Cumulus creates the phase image from. It sounds like you haven't enabled generation of the Moon image in the settings, once you do that you will have a moon.png file.
Goldguru:
OK I got the moon.png 13kb created, correct path to extra webfiles
where exactly do I add the <img src="img/moon.png">
I opened indedx.html with notepad++,from what I've read tags need to be between <body> & <body>
--- Quote from: mcrossley on February 27, 2021, 04:41:48 PM ---
Then on your dashboard page you would have to add an image tag into the html of <img src="img/moon.png">
--- End quote ---
how do I know where to add it?
I tried on the end of line#129 and got a small page icon with a bent corner
<p><span>Sunrise</span> <span id="Sunrise" class="low"></span> Sunset <span id="Sunset" class="high"></span> Moonrise <span id="Moonrise" class="low"></span> Moonset <span id="Moonset" class="high"></span>(added here)</p>
do I have to create a block to put it in?
or add it after this line
<p><span id="Forecast"></span></p (line #130)
above </div> (line 131)
don't I have to indicate the size of the image in the tag?
<img src="img/moonbaseimage.png" width="200"
height="200">
like that?
Thnx Gold
Navigation
[0] Message Index
[#] Next page
Go to full version