Giter Site home page Giter Site logo

Comments (11)

howardjones avatar howardjones commented on August 17, 2024 1

Turns out I did already start this, and it's in the 0.98-php8 branch:
https://github.com/howardjones/network-weathermap/tree/0.98-php8

Still more to go!

from network-weathermap.

howardjones avatar howardjones commented on August 17, 2024

from network-weathermap.

kozfelipe avatar kozfelipe commented on August 17, 2024

0.98a
0.98-php8
PHP Version 8.0.21
CentOS Linux release 7.9.2009

from network-weathermap.

howardjones avatar howardjones commented on August 17, 2024

(sorry for replying to issues on my phone - I didn't see that you had already given most of those details)

For the LoadPlugins issue - does the command-line tool still work then? I think it won't. It is expecting your current working directory to be the one containing lib.

I did have a quick check through for PHP 8 updates, and I think the command-line tool also will have issues with CLI/Getopt. The curly brace error is also a quick fix - they just need to be replaced with [ ]. I'll try to get some time for this in the next week or so.

from network-weathermap.

kozfelipe avatar kozfelipe commented on August 17, 2024

here is another one:

HTML_ImageMap.class.php lines 112, 149, 230 has a required parameter after an optional parameter which is deprecated

PHP Deprecated: Required parameter $coords follows optional parameter $name in HTML_ImageMap.class.php on line 112

when I run weathermap cli script i am getting relative path issues with icons:

/usr/share/centreon/www/modules/centreon-weathermap/src/weathermap --config /usr/share/centreon/www/modules/centreon-weathermap/src/configs/test.conf --output ../output/test.png --htmloutput /usr/share/centreon/www/modules/centreon-weathermap/src/output/test.html

generates the following warning:

WARNING: /usr/share/centreon/www/modules/centreon-weathermap/src/configs/test.conf: ICON 'images/Cloud-Filled.png' does not exist, or is not readable. Check path and permissions. [WMARN38]

this file exists in /usr/share/centreon/www/modules/centreon-weathermap/src/images/Cloud-Filled.png

I tried to use --image-uri but I think it does not applies for icons

from network-weathermap.

howardjones avatar howardjones commented on August 17, 2024

What is the current working directory?
(you can also use a full pathname for the icon)

from network-weathermap.

kozfelipe avatar kozfelipe commented on August 17, 2024

/usr/share/centreon/www/modules/centreon-weathermap/src/

I generate my config files using WriteConfig() function, I don't know how to set full pathname for icons

from network-weathermap.

howardjones avatar howardjones commented on August 17, 2024

When you create the WeatherMapNode, just pass the full pathname to for iconfile instead of "images/blah.png"

from network-weathermap.

kozfelipe avatar kozfelipe commented on August 17, 2024

if I force WeatherMapNode iconfile it messes up the properties list next time I open it

image

I had to add this to pre_render() because somehow its reference is lib directory

if(!is_readable($this->iconfile)) {
     $this->iconfile = __DIR__ . "/../" . $this->iconfile;
}

from network-weathermap.

howardjones avatar howardjones commented on August 17, 2024

Well, at least that is consistent with your LoadPlugins issue, too. I think the working directory is not correct.

from network-weathermap.

kozfelipe avatar kozfelipe commented on August 17, 2024

Hi there,
I came to share my initial release of centreon's module
https://github.com/kozfelipe/centreon-weathermap

from network-weathermap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.