forestfield wrote:I'm seeing some truncation in the weather alert descriptions. At the moment I have 3 weather alerts (location = crawley, uk).
Hi Paul - that is an unusual condition indeed. I ran your script against my weather location and the single existing alert logged without error. I'm more than happy to fix any bug that may be in the plugin, but need a bit more information in order to target my efforts.
I notice in your log output, it doesn't match the script you posted (the lines don't start with "Dark Skies Alert"). Is the log output from the script you posted?
I notice in your log the string "pww-fw Error". It would be helpful to know what the nature of the error actually is (beyond the truncation, which we already know about.) What happens if you wrap the print in a try/except block?
What happens when you copy the state value from the plugin device itself and paste it into a plain text editor? (Look at the plugin device custom states, right-click and select Copy State Value). Are those values truncated as well?
Another test we can do is to dump the weather XML to a log file and interrogate that. From the plugin menu, select Write Weather Data to File. A message will be written to the Indigo log with the name and location of the data file. Please let me know if you see truncated values there.