I've been racking my brains for a couple of hours. Local files are not parsed. I've already made a separate test skin and it doesn't work, what's the reason?
unexpectedly everything worked. I just clicked update the skin again and it found what I was looking for. I haven't found it before. There were no errors in the log. but there was no string value as a result of measure either. scratching my turnips
Then another question. Actually because of him I started analyzing the file.
In the file I have a value, a code that needs to be added to the URL as part of the address. For example, instead of xxxx in the address https://docs.xxxx.net
insert a value, for example cod123, to get https://docs.cod123.net. I write this value to the file myself. and no matter what I did, it was not transmitted, although the rest of the skin saw it. So I decided to try to parse it directly from the file and it didn’t work either.
I figured out why it’s not looking in the file. He doesn't like the coding. If UTF-8, then it searches normally. and with UTF-16 encoding, LE BOM, which is found in Rainmeter files, does not find anything. At the same time, Rainregexp searches both ways.
But the question of how to insert the required numbers and letters into the URL is still relevant.
To get help, you should have to pack the config you're working with and post the package here. Make sure to include into the package, the file you have to parse with the WebParser measure (C:\Users\RmicroN\Desktop\nnn.txt). Without having those files, it's hard to help you.
This problem has been resolved. It turned out that regexp cannot parse the file utf-16-le with bom. If you convert to utf-8, then regexp works, I note that rainregexp parses both utf-8 and utf-16-le with bom equally well.
but the main problem that caused me to parse the file has not been solved
[mTotal]
Measure =Plugin
Plugin =WebParser
UpdateRate =3600
Url =https://services.gfore.net/inform-service/#hash_val#/forecast/?lang=#lang#&city=#here the value from mcod must be inserted#
UserAgent =#uagent#
RegExp ="(?siU)<location(.*)</location>"
Kotofanchik wrote: ↑March 27th, 2024, 3:19 am
Or teach how to assign a value obtained from measure to a variable. I tried all the variants of quotation brackets at random. Not assigned.
You can either add a OnUpdateAction to the measure to set the variable, or use the measure directly as a variable using Section Variables
RicardoTM wrote: ↑March 27th, 2024, 3:34 am
You can either add a OnUpdateAction to the measure to set the variable, or use the measure directly as a variable using Section Variables
This doesn’t help, I did as it was written and as it was not written and 25 more options and nothing works.