Search found 6 matches

by solarmon
Fri Oct 12, 2018 6:57 am
Forum: Plugin: (Network Weather Map)
Topic: [WMARN38] warningfor when using external_line1 hint for ICON
Replies: 8
Views: 566

Re: [WMARN38] warningfor when using external_line1 hint for

Yeah, whitespace was the wrong term to use - I was just too lazy to lookup what correct terminology. :oops: The issue seems to be with how python outputs depending on the environment terminal type. Some articles I've found related to the issue: https://stackoverflow.com/questions/15760712/python-rea...
by solarmon
Fri Oct 12, 2018 6:04 am
Forum: Plugin: (Network Weather Map)
Topic: [WMARN38] warningfor when using external_line1 hint for ICON
Replies: 8
Views: 566

Re: [WMARN38] warningfor when using external_line1 hint for

OK - I think I've figured it out. :D Although the plugin trims the end of the line, it does not trim the start of the line. I figured out that my script (or rather, what it was subsequently launching) was adding the hidden whitespace to the start of the line: [ESC][?1034h Even though I tried changin...
by solarmon
Fri Oct 12, 2018 5:05 am
Forum: Plugin: (Network Weather Map)
Topic: [WMARN38] warningfor when using external_line1 hint for ICON
Replies: 8
Views: 566

Re: [WMARN38] warningfor when using external_line1 hint for

I added some debugging output to the DS external plugin: #### Working Dir: /usr/local/weathermap | external_line1 = 'down' #### #### Working Dir: /usr/local/weathermap | external_line1 = 'up' #### (Note: I'm actually using weathermap in standalone mode and not as a plugin in Cacti). So it doesn't ch...
by solarmon
Fri Oct 12, 2018 4:48 am
Forum: Plugin: (Network Weather Map)
Topic: [WMARN38] warningfor when using external_line1 hint for ICON
Replies: 8
Views: 566

Re: [WMARN38] warningfor when using external_line1 hint for

I wanted to test that when manually running the script whether there was a permissions issue with the image path/filename. So I created NODE to draw the (down status) image: NODE Test_updown ICON 16 16 images/updown_down.png POSITION 20 20 When I manually run the script, there are no issues with thi...
by solarmon
Fri Oct 12, 2018 4:38 am
Forum: Plugin: (Network Weather Map)
Topic: [WMARN38] warningfor when using external_line1 hint for ICON
Replies: 8
Views: 566

Re: [WMARN38] warningfor when using external_line1 hint for

Thanks for your quick response. An interesting update from me. I also run the same script (to start the weathermap processing) in cron. When it runs in cron (as root) it does not seem to have this issue (the status icons appear as expected) and I assume there are no warnings as I don't get to see th...
by solarmon
Fri Oct 12, 2018 2:58 am
Forum: Plugin: (Network Weather Map)
Topic: [WMARN38] warningfor when using external_line1 hint for ICON
Replies: 8
Views: 566

[WMARN38] warningfor when using external_line1 hint for ICON

Hi, I'm making use of the "TARGET !scriptname" datasource method - as per https://network-weathermap.com/manual/0.98/pages/targets.html#script. I'm able to successfully run a script (after enabling lib/datasources/WeatherMapDataSource_external.php) and it returns the four line values as required. I ...