kyob / lmstauronpoweroutagesplugin Goto Github PK
View Code? Open in Web Editor NEWShows power outages in areas served by Tauron.
Shows power outages in areas served by Tauron.
Konfiguracja zrobiona tak (województwo małopolskie, powiat wielicki - gaid=950, powiat myślenicki - gaid=940):
Wynik:
I to się zgadza - dzisiaj akurat w powiecie myślenickim nie ma żadnych ani awaryjnych ani planowych wyłaczeń, w powiecie wielickim są.
Natomiast jak zmienię kolejność w tauron.district z 950,940 na 940,950, wyświetla się:
Wygląda, jakby wyświetlany był wynik tylko dla pierwszego district.
Jakiś czas temu (około miesiąca/dwóch) plugin przestał wyświetlać wyłączenia. Zaktualizowałem u siebie plugin wersją origin master z gita. Po zaciągnięciu zrobiłem composer update, dodałem brakujące ustawienia konfiguracyjne, ustawiłem prawa dostępu do katalogu z pluginem, zrobiłem plik tauron.json (touch taturon.json) z prawami do zapisu przez apacza. Tak wygląda konfiguracja pluginu:
Tak wygląda wynik zadziałania:
Po kliknięciu na belkę nic się nie rozwija .... I - co zauważyłem dodatkowo - plugin się nie wyświetla w menu Administracja (poprzednia wersja się wyświetlała):
Plik tauron.json jest pusty ...
W logu apacza jedynie coś takiego:
[Thu Jun 15 13:55:50.921725 2023] [php7:warn] [pid 15226] [client x.x.x.x:35958] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/lms.git/plugins/LMSTauronPowerOutagesPlugin/handlers/TauronPowerOutagesHandler.php on line 79, referer: https://adres_lms/?m=configlist
[Thu Jun 15 13:55:50.921737 2023] [php7:warn] [pid 15226] [client x.x.x.x:35958] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/lms.git/plugins/LMSTauronPowerOutagesPlugin/handlers/TauronPowerOutagesHandler.php on line 79, referer: https://adres_lms/?m=configlist
Aktualne stable (świeżynka ;) ), wrzuciłem aktualny plugin (HEAD), opcje konfiguracyjne są ustawione jak w działającym pluginie na stable-24. Efekt - nie wyświetla się nic, natomiast w error.log ląduje:
PHP Warning: array_merge_recursive(): Expected parameter 2 to be an array, null given in /var/www/lms.git/plugins/LMSTauronPowerOutagesPlugin/modules/tauronpoweroutages.php on line 20
PHP Warning: array_merge_recursive(): Expected parameter 1 to be an array, null given in /var/www/lms.git/plugins/LMSTauronPowerOutagesPlugin/modules/tauronpoweroutages.php on line 27
PHP Warning: array_merge_recursive(): Expected parameter 1 to be an array, null given in /var/www/lms.git/plugins/LMSTauronPowerOutagesPlugin/modules/tauronpoweroutages.php on line 27
PHP w wersji 7.4.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.