Open Drakemoor opened 1 day ago
This is going to take a while to figure this out as I'm getting similar results? First thing I can see is that the icons are not set as inline images. Using template 5 as an example it should be...
M today's Weather | 🌡Max℃ | 🌡Min℃ | ☔ Rain | 💨Wind | 🌪Gusts | 💧Humidity | 🌫Pressure | 🌳AQ |
---|---|---|---|---|---|---|---|---|
%tempmax-today% | %tempmin-today% | %icon-today% | %windspeed-today% %winddirstr-today% |
%windgust-today% | %humidity-today% | %pressure-today% |
Note the
For some reason is the url in being put in quotes Remove the quotation marks and it displays properly.
Edit: I see what is wrong here. My plugin is putting the url in quotation marks (I need to change this to get the inline image to work correctly). You can get it to work though if you change it to <img src=%iconurl% />
and it will display correctly.
There is a lot going on here and I will need to go through each of your templates one by one to figure out what is happening here. I will post an update here after some more testing.
After a quick test I think I know what is happening here. I believe the next template is being inserted before the previous one has finished inserting itself. Try inserting this in a new note and it is easier to see.
#### New Weather Plugin
##### Template 1
%weather1%
##### Template 2
%weather2%
Results in...
#### New Weather Plugin
##### Template 1
Partially cloudy • Current Temp:Edmonton: Tueday October 29 - 3:18 pm
Probability of precipitation: 0% • (none)
Current Temp: 5°C • Feels Like: 5°C
Wind: 13 km/h from the Southwest with gusts up to 18 km/h
Sunrise: 08:28:52 • Sunset: 18:05:37
s Like: 5°
##### Template 2
Edmonton: Tueday October 29 - 3:18 pm
Probability of precipitation: 0% • (none)
Current Temp: 5°C • Feels Like: 5°C
Wind: 13 km/h from the Southwest with gusts up to 18 km/h
Sunrise: 08:28:52 • Sunset: 18:05:37
You can see %weather1% starts inserting template 1 and template 2 is being appended to the partially inserted template 1 then %weather2%, the last template, is being inserted correctly. I never considered someone wanting to use more than one template in the same note and the way javascript works is it does not wait for a command to finish before it executes the next command. This results in the next template being inserted at the current cursor position which is where the previous template is currently being inserted. I know that sounds confusing, but basically I have to make sure the previous template insertion completes before doing the next template insertion. This will still require more testing to confirm that this is what is happening but I'm pretty sure this is what is happening.
I'm sorry for the vague report, but I don't even know how to properly explain what exactly is wrong. So, I would give an example and hope it would make things clear.
I'm using Templater along with VC Weather plugins.
As a Templater template I have the following:
Then as VC Weather templates I have:
Weather Template 1
Weather Template 2
Weather Template 3
Weather Template 4
Weather Template 5
Weather Template 6
Weather Template 71
Weather Template 8
When I create a new file using above setup, I get this:
Here is a screengrab from the Live Preview of the above:
https://github.com/user-attachments/assets/ec58ff57-3e94-4b1d-a181-370348caef3d
So, as you can see it's not only that the VC Weather's templates don't render properly, but there is something that completely breaks the output.
For example: The output shows the H5 headers properly until "Template 4" then it repeats the "Template 2" header.
Also, the 'Template 5' used to work flawlessly in 'OpenWeather' plugin. To use it with the new one I updated the variables, but as you can see the output is all messed up.
Let me know if I can provide anymore info to sort this out.
Thank you continuing to support this plugin. 🙇♂️