thanks for the input. your help is much appreciated.
but first my 16 year old asked if i could take him out, i'm teaching him how to drive.
i'll come back after i have have started and need more help.
thanks for the input. your help is much appreciated.
I lost the previous message in a refresh, so I'm not going to write it again, but instead post the code. Unfortunately, you, my friend, need explanations on why things are like this and not like that in order to understand a little how to deal with Rainmeter code on your own - and pasting the code without the "reasons why" won't help you as much as I'd like. Anyway:Hackit wrote: ↑April 5th, 2020, 7:58 pmSo i have been able to move the country based on the city growing, but if the name of the city is too long then i get over lap. if i adjust the gap and go back to a shorter city name then i have a big gap.
if someone can offer some help i'll include a zip of what i'm currently working on. please excuse the mess, i find it easier to add a ; to turn things on and off.
Code: Select all
[Rainmeter] Update=900 DynamicWindowSize=1 AccurateText=1 ;------------for testing alignment ;BackgroundMode=2 ;white ;SolidColor=255,255,255,255 ;gray ;SolidColor=135,135,135,255 ;black ;SolidColor=0,0,0,255 ;------------------------------end [Metadata] Name=TDW-3.4 Author=HackitZ Version=3 Information=Parses the Weather.com website JSON data to provide weather information|Right-click and select "Edit Weather Variables" to change settings License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0 Version=Feb 20, 2020 made with help from the community, too many people to list. thanks everyone for all the help. you guy's rock! [Variables] @Include=#@#Variables.inc @Include2=#@#WeatherComJSONVariables.inc @Include3=#@#WeatherComJSONMeasures.inc @Include4=#@#WeatherComJSONLanguage.inc @Include5=#@#WeatherComJSONMoon.inc @Include6=#@#WeatherComJSONPollen.inc @includeMoonMeasures=#@#Includes\MoonMeasures.inc MinSkinWidth=300 IconSize=225 ;-----------------------URL link to moon phase------------------- URL=http://www.iohelix.net/moon/moonlite.xml ---Measures--- [MeasureLongString] Measure=Calc Formula=(MeterLocationCurrent+1)%2 UpdateDivider=3 ;RegExpSubstitute=1 ;Substitute="^0$":"A not so long string","^1$":"A very very very very very very very very very very very very very very very very very long string" DynamicVariables=1 [MeasureGotTheData] Measure=String String=[@LocationName] DynamicVariables=1 IfMatch=^$ IfNotMatchAction=[!HideMeter MeterReticulating][!ShowMeterGroup AllMeters][!Update] ; Overrides a template measure [NewCurrentTemperature] Measure=String Group=Weather String=[@CurrentTemperature] DynamicVariables=1 ; Note that after some point in the afternoon, there will ; be NO Low Temperature returned. The High Temperature ; returned will then be the "low" from the current time until ; midnight of the same day. ; This can be tested with: IfMatch=^$ IfMatchAction=[!SetOption MeterTodayHighLow Text "Low Tonight %1%2"] IfNotMatchAction=[!SetOption MeterTodayHighLow Text "%1%2 | %3%4"] ; Meters [MeterReticulating] ;Measure=String Meter=String X=200 Y=80 StringAlign=Center FontFace=Walkway Expand Black InlineSetting=Color | 255,255,255,255 InlineSetting2=Size | 23 InlineSetting3=Shadow | 2 | 2 | 3.5 | 10,10,10,230 InlineSetting4=GradientColor | 180 | 0,170,255,255 ; 0.1 | 255,255,255,255 ; 0.9 SolidColor=0,0,0,1 Padding=5,5,5,5 AntiAlias=1 Text=Updating, One Sec ... [MeterCurrentIcon] Meter=Image Group=AllMeters MeasureName=@CurrentIcon X=((Max(#MinSkinWidth#,Max([MeterLocationCurrent:W],[MeterCurrentConditions:W]))-[MeterCurrentIcon:W])*0.5) Y=0 W=#IconSize# H=#IconSize# ImagePath=#ImagePath#\WeatherIcons PreserveAspectRatio=1 ImageAlpha=#IconAlpha# AntiAlias=1 MouseOverAction=[!SetOption MeterCurrentIcon ImageAlpha 255][!ShowMeterGroup Details3][!UpdateMeter MeterCurrentIcon][!Redraw] MouseLeaveAction=[!SetOption MeterCurrentIcon ImageAlpha #IconAlpha#][!HideMeterGroup Details3][!UpdateMeter MeterCurrentIcon][!Redraw] Hidden=1 DynamicVariables=1 [MeterLocationCurrent] MeasureName=@LocationName MeasureName2=@LocationCountry Meter=String Group=AllMeters X=(Max(#MinSkinWidth#,Max([MeterLocationCurrent:W],[MeterCurrentConditions:W]))*0.5) Y=20 H=30 FontFace=Walkway UltraBold InlineSetting=Color | #Location# InlineSetting2=Size | 18 InlineSetting3=Shadow | 2 | 2 | 3.5 | 10,10,10,230 InlineSetting4=Italic StringAlign=Center AntiAlias=1 ClipString=2 LeftMouseUpAction=!Execute ["https://weather.com/#Language#/weather/today/l/#LocationCode#"] Text="%1, %2" Hidden=1 DynamicVariables=1 [MeterCurrentConditions] MeasureName=@CurrentConditions Meter=String Group=AllMeters X=(Max(#MinSkinWidth#,Max([MeterLocationCurrent:W],[MeterCurrentConditions:W]))*0.5) Y=0R H=30 FontFace=Walkway UltraBold InlineSetting=Color | #Location# InlineSetting2=Size | 18 InlineSetting3=Shadow | 2 | 2 | 3.5 | 10,10,10,230 InlineSetting4=Italic StringAlign=Center AntiAlias=1 ClipString=2 Hidden=1 DynamicVariables=1
You are right on the money, just when i think i'm starting to understand. I realize i don't.
Oh boy, I don't even know where to begin here, LOL. I like the fact that you hang on to trying and do something, but there are just basic things that you don't know, and that are already known even by someone who didn't saw a piece of Rainmeter code in his life. I'm going to be honest and direct with you: it's like teaching someone to read when he doesn't even know what letters are.Hackit wrote: ↑April 8th, 2020, 4:54 pmjust found a chance to look at the differences, wow i was way off.
so i can see it's starts with the current icon meter, so i see that every new meter that is added, i need to add the new meter name.
i see that the brackets allow #MinSkinWidth#,Max and [MeterCurrentIcon:W] to be controling?(controlling is the wrong word i know) all the other meters in the inner brackets, ([MeterLocationCurrent:W],[MeterCurrentConditions:W],[newmeter])
now i see you have all the StringAlign=Center, i have changed the [MeterLocationCurrent:W],[MeterCurrentConditions:W] to the left and it seems fine, is this going to cause an issue? i thought i read that i (forget what i thought it was most likely wrong)
i also added a value before the string and after the x to adjust the meter position, is this the correct way to adjust the meters?
also at the end of the string is *0.5, does the asterisk represent multiply? if so does /2 mean divide by 2? (not sure i would need to use /2, just asking.
Your patience are to be commended, i hope you are some kind of teacher/mentor to others. having that much patience is a gift.Yincognito wrote: ↑April 8th, 2020, 6:21 pm
In the end, I think it will be pointless to explain the meaning of those Max() formulas, because I have the feeling that you won't take advantage of that the way it's supposed to (or further add some wrong numbers before or after some string in the hope it will have an effect), so maybe it would be better to just experiment starting from the code posted and hopefully you'll manage to make something out of it. Again, I really do appreciate the fact that you keep trying, and you have my respect for this, but it's not that there are things you don't understand yet, but there are basic things that you don't. You will eventually, I think, but this (current) fact makes it very hard to explain things properly, as you still miss a good part of the "foundation" to understand the more "advanced" stuff.
Nah, I can have more patience than that. That was just me being direct, that's all. Don't worry about accidents and the problems you have, I also have some friends with quite similar problems that I helped use stuff on computers (not Rainmeter, but other) and they are now doing things mostly on their own - and I'm proud of them. I can do explaining forever actually, my only issues is that the "student" has to have a base of some kind (the minimal "foundation" I talked about), and that I must foresee a positive potential result out of it (i.e. a successful finality) because I don't like to do things without an effect of some kind.