Giter Site home page Giter Site logo

fhem-abfall's Introduction

ABFALL for FHEM

ABFALL is a fhem modul, which creates readings based on one or more calendar devices, based on the fhem modul 57_Calendar

How to install

The Perl module can be loaded directly into your FHEM installation. For this please copy the below command into the FHEM command line.

update all https://raw.githubusercontent.com/uniqueck/fhem-abfall/master/controls_fhemabfall.txt

Create a device

define myABFALL ABFALL <name of a calendar device>

Attributes

  • abfall_clear_reading_regex

    regex to delete a part of the summary of an event

  • disable

    valid values 0 and 1, set to 1 to disable device

  • weekday_mapping

    set a map of names for the weekdays, for example Su Mo Tue Wed Thu Fr Sa start with Sunday default value is Sonntag Montag Dienstag Mittwoch Donnerstag Freitag Samstag

  • calendarname_praefix

    only useful for multiple calendars, add calendar name as preafix on readingname, if you define a new abfall device with only one calendar device, it is set to 0

  • delimiter_text_reading

    if more than one event exist on the same day, this is the delimiter to join these events only for the readings next_text, next_location, next_description, now_text, now_location and now_description

  • delimiter_reading

    same as delimiter_text_reading, but only for the reading next and now

  • filter include only events, which match these filter condition, the filter condition can be a normale text or regex expression

  • enable_counting_pickups

    activate support for counting pickups

  • enable_old_readingnames

    add old deprecated german readings, in the future, all readings are english

  • date_style

    valid values are date and dateTime, date is the default value control the style of all date reading

How to Update

The Perl module can be update directly with standard fhem update process. For this please copy the below command into the FHEM command line.

update add https://raw.githubusercontent.com/uniqueck/fhem-abfall/master/controls_fhemabfall.txt

To check if a new version is available execute follow command

update check fhemabfall

To update to a new version if available execute follow command

update all

or

update all fhemabfall

fhem-abfall's People

Contributors

funknerger avatar rene79 avatar uniqueck avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

fhem-abfall's Issues

PERL WARNING bei ABFALL-Modul

Hallo uniqueck,

ich erhalte die folgenden Perl Warnings, die mir im Zusammenhang mit dem CALENDAR-Modul zu stehen scheinen:

2020.01.27 08:23:39 3: ABFALL myMuell - CALENDAR:Muelltonnen.Kalender.AVEA triggered, updating ABFALL myMuell ...
2020.01.27 08:23:39 1: PERL WARNING: Use of uninitialized value $cleanReadingName in concatenation (.) or string at FHEM/ABFALL_getEvents.pm line 563.
2020.01.27 08:23:39 1: PERL WARNING: Use of uninitialized value $summarys[0] in substitution (s///) at FHEM/ABFALL_getEvents.pm line 570.
2020.01.27 08:23:39 1: PERL WARNING: Use of uninitialized value $summarys[0] in concatenation (.) or string at FHEM/ABFALL_getEvents.pm line 597.

Fhem ist aktuell, Perl-Version ist die folgende:
This is perl 5, version 28, subversion 1 (v5.28.1) built for x86_64-linux-gnu-thread-multi

Viele Grüße Gisbert

Deprecated syntax warnings in the logfile for Calendar queries

The latest version of the 57_Calendar module issues warnings in the logfile if a now deprecated syntax is used. It seems that 57_ABFALL is making use of these old syntax:

2018.05.17 13:54:12 3: ABFALL Muelltermine - CALENDAR:Abfallkalender triggered, updating ABFALL Muelltermine .
2018.05.17 13:54:12 2: get Abfallkalender uid is deprecated and will be removed soon. Use get Abfallkalender events instead.
2018.05.17 13:54:12 2: get Abfallkalender start is deprecated and will be removed soon. Use get Abfallkalender events instead.
2018.05.17 13:54:12 2: get Abfallkalender summary is deprecated and will be removed soon. Use get Abfallkalender events instead.
2018.05.17 13:54:12 2: get Abfallkalender location is deprecated and will be removed soon. Use get Abfallkalender events instead.
2018.05.17 13:54:12 2: get Abfallkalender description is deprecated and will be removed soon. Use get Abfallkalender events instead.

"Abfallkalender" is in my installation the Calendar Device dedicated to the ABFALL Device "Muelltermine" and is - to my knowledge - not queried by any other routines in my FHEM.

Commit entfernt "now-***" Daten

Hallo,
seit Commit b9b9d9d sind keine aktuellen Termine ("now-***") mehr verfügbar. Das hängt offenbar mit der Umgestaltung zusammen, ist aber auch im Developer Branch noch nicht behoben.
MfG Rene

Unknown module ABFALL

I installed the module and updateted it. FHEM was restartet but always when i try to define a calender I get an
. "Unknown module ABFALL"

controls_fhemabfall.txt im develop fehlerhaft

Fehlerhafte Behandlung in ABFALL_getEvents.pm wurden vor 3 Monaten behoben.

Bitte das controls_fhemabfall.txt entsprechend anpassen-

von UPD 2018-06-13_12:34:34 23027 FHEM/ABFALL_getEvents.pm
nach UPD 2018-06-13_12:34:34 24742 FHEM/ABFALL_getEvents.pm

Wrong filesize

Hey,
i tried to install fhem-abfall on my fhem_5.8.-raspberry and got this error message:

2017.08.16 13:06:38 1 : fhemabfall
2017.08.16 13:06:38 1 : UPD FHEM/57_ABFALL.pm
2017.08.16 13:06:38 1 : Got 20744 bytes for FHEM/57_ABFALL.pm, expected 20080
2017.08.16 13:06:38 1 : aborting.

It seems the defined filesize does not match the actual size of the file.
Danke dir schon mal :)

-Merlin

WiKi Änderungen

Hallo,

ich habe gerade das Modul installiert und eingerichtet. Vielen Dank dafür!
2 Fehler sind mir in der WIKI aufgefallen:
attr myABFALL userReadings ftui_datum {ReadingsVal("myABFALL","now_text","") eq "" ? datumHeuteMorgen(ReadingsVal("myABFALL","next_datum","")) : "heute";},ftui_next {ReadingsVal("myABFALL","now_text","") eq "" ? ReadingsVal("myABFALL","next","") : ReadingsVal("myABFALL","now","")."_0";;}
Das reading "next_datum" existiert nicht. Hier muss stattdessen "next_date" hin.

Das zweite ist die Definition der Farben:
data-on-colors='["#8B4513","#8B4513","#8B4513","#f4e946","#f4e946","#f4e946","#2d9e1c","#2d9e1c","#2d9e1c","#696969","#696969","#696969"]'
Darf nicht data-on-colors sein, sondern muss "data-colors" sein.
Wäre super, wenn Du das im Wiki ändern könntest.

Danke!
Gruß
Bismosa

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.