amaximus / fkf-garbage-collection-card Goto Github PK
View Code? Open in Web Editor NEWFKF Budapest Garbage Collection Card for Home Assistant/Lovelace
License: MIT License
FKF Budapest Garbage Collection Card for Home Assistant/Lovelace
License: MIT License
I'm using a Samsung Galaxy S5 Mini mounted on the wall running LineageOS and WallPanel app to display Lovelace.
When I add fkf-garbage-collection-card
to the UI, the whole interface becomes very slow and laggy. Touching other controls like switches, covers etc barely react, state change feedback comes after minutes delay.
As soon as I remove fkf-garbage-collection-card
from the dashboard, everything turns back to normal.
dark_mode: true
entity: sensor.fkf_hulladek
hide_date: true
items_number: 3
type: 'custom:fkf-garbage-collection-card'
Tried with LineageOS built on Android 7.1.2, and Android 9, behaves exactly the same. The phone is in a closed WiFi network without access to the internet, only accesses Home Assistant and NTP server on the same network. Home Assistant runs on an Xenon-based ESXi server VM.
In the case of Budaörs, it queries the 3 types of waste with one single query, as far as I can see from the code, the problem may be that in the case of Budapest there are 2 separate requests 1. for municipal and selective and 2. for green waste. When the extension was written in winter there was no green waste, so this difference in the result didn't come up in the testing. Two result files are attached: the list from FKF (https://www.fkf.hu/hulladeknaptar-budaors) and the list queried by HA with the current code. For testing "Árvácska utca" was used.
Dear Author,
Could you please extrend your program to process the garbage collection schedule in Budaörs, please?
It works similar like FKF at Budapest, couple differences noticed:
Many thanks in advance!
hundavide
The card can't load the translations when installed manually, since it expects a hacs path:
translationJSONobj
is initialized to "undefined"
(a string), which means the if here won't catch it:string
, not undefined
), and then fail when it tries to index the string. translationJSONobj
should be initialized to undefined
, but I have no idea how can you get the path to your js file (if it's possible at all).I really like this card so far, thank you very much for it!
My suggestion is to rearrange the table columns to achieve a more streamlined look that could help digesting the information easier.
The column order could be:
|icon1| |icon2| |description| |date| |weekday| |numberofdays|
Left: Current
Right: Suggestion (with one_icon: true and w_day: false)
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.